/* ==========================================================================
   OEFFENTLICHE SUCHE 2027  -  design2025/suche2027.css (fuer /suche.php)
   Teil 1: Grundstil der 2027-Vorlagen (.smv2, Karten sm-card, Chips, Knoepfe), 1:1 aus 2027_thema.php uebernommen,
           damit die Profilkarten genauso aussehen wie auf Themen- und Stadtseiten. Dunkelmodus kommt aus kopf2027.css (.smv2-Variablen).
   Teil 2: Suchformular und Hinweise (Klassen smq-).
   AENDERUNGEN:
     07.11.2026 Erste Fassung.
     07.11.2026 Hinweisfenster (.smq-dialog) fuer Ort/PLZ, Umkreis und Vorlieben.
     07.11.2026 Stadtsuche im Kopf (.smq-stadt, Feld aus stadtsuche2027.css).
   ========================================================================== */
/* =====================================================================
   SEX-MICH STAEDTESEITE V2 (Nov 2026)
   Alles ist auf .smv2 begrenzt, Header und Footer bleiben unveraendert.
   Zwei Themes ueber CSS-Variablen:
     .smv2            -> HELL (Standard, passt zum bestehenden Seitenlook)
     .smv2.sm-dark    -> DUNKEL (Premium-Variante fuer spaeter / Switcher)
   ===================================================================== */

/* ---------- HELL (Standard) ---------- */
.smv2 {
	--sm-bg: #FFFFFF;
	--sm-card: #FFFFFF;
	--sm-card-2: #EEF1F4;
	--sm-line: #E2E6EA;
	--sm-line-2: #EDF0F3;
	--sm-shadow: 0 1px 2px rgba(22,35,43,0.04), 0 4px 14px rgba(22,35,43,0.06);
	--sm-text: #16232B;
	--sm-text-2: #3C4A55;
	--sm-muted: #66727D;
	--sm-link: #324C5D;
	--sm-link-hover: #1E3341;
	--sm-hl: #324C5D;             /* Hervorhebung: Badges, Schritte, Hover-Rand */
	--sm-hl-soft: #E9EFF3;
	--sm-accent: #324C5D;         /* Hauptbutton = bestehendes Seiten-Blau */
	--sm-accent-hover: #283D4A;
	--sm-ok: #2F855A;
	--sm-chip-bg: #FFFFFF;
	--sm-chip-line: #D5DBE1;
	--sm-chip-active-bg: #324C5D;
	--sm-chip-active-text: #FFFFFF;
	--sm-badge-bg: rgba(255,255,255,0.92);
	--sm-cta-bg: linear-gradient(160deg, #EAF0F4 0%, #FFFFFF 75%);
	--sm-cta-line: #C9D6DF;
	--sm-font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--sm-font-body: inherit;
	--sm-head-weight: 600;
	--sm-head-spacing: 0;
	background: var(--sm-bg);
	color: var(--sm-text);
	font-family: var(--sm-font-body);
	font-size: 16px;
	line-height: 1.6;
	padding: 8px 0 64px;
}

/* ---------- DUNKEL ---------- */
.smv2.sm-dark {
	--sm-bg: #0F1216;
	--sm-card: #171C23;
	--sm-card-2: #222934;
	--sm-line: rgba(255,255,255,0.08);
	--sm-line-2: rgba(255,255,255,0.06);
	--sm-shadow: none;
	--sm-text: #F3EFEA;
	--sm-text-2: #C9CFD6;
	--sm-muted: #9AA3AD;
	--sm-link: #E8A4B8;
	--sm-link-hover: #F3C4D2;
	--sm-hl: #E8A4B8;
	--sm-hl-soft: rgba(232,164,184,0.14);
	--sm-accent: #C8325A;
	--sm-accent-hover: #B02A4F;
	--sm-ok: #5BD39A;
	--sm-chip-bg: #171C23;
	--sm-chip-line: rgba(255,255,255,0.1);
	--sm-chip-active-bg: #F3EFEA;
	--sm-chip-active-text: #0F1216;
	--sm-badge-bg: rgba(15,18,22,0.82);
	--sm-cta-bg: linear-gradient(160deg, #2A1420 0%, #171C23 70%);
	--sm-cta-line: rgba(232,164,184,0.25);
	--sm-font-head: 'Fraunces', Georgia, serif;
	--sm-font-body: 'Manrope', system-ui, sans-serif;
	--sm-head-weight: 600;
	--sm-head-spacing: -0.015em;
}

/* ---------- Grundtypografie ---------- */
.smv2 h1, .smv2 h2, .smv2 .sm-serif { font-family: var(--sm-font-head); font-weight: var(--sm-head-weight); letter-spacing: var(--sm-head-spacing); }
.smv2 h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; margin: 0 0 14px; }
.smv2 h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 40px 0 12px; }
.smv2 h2:first-child { margin-top: 0; }
.smv2 p { color: var(--sm-text-2); }
.smv2 strong { color: var(--sm-text); }

/* Breadcrumb */
.smv2 .breadcrumb { background: transparent; padding: 12px 0; margin: 0; font-size: 14px; }
.smv2 .breadcrumb-item, .smv2 .breadcrumb-item a, .smv2 .breadcrumb-item.active { text-decoration: none; }

/* Hero */
.sm-hero { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; margin-bottom: 28px; }
.sm-hero-text { flex: 999 1 520px; min-width: 0; }
.sm-hero-text p { font-size: 1.1rem; max-width: 62ch; margin: 0; }
.sm-hero-box { flex: 1 1 300px; min-width: 260px; background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 20px; padding: 20px; box-shadow: var(--sm-shadow); }
.sm-hero-box strong { display: block; font-size: 15px; margin-bottom: 10px; }
.sm-check { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--sm-text-2); }
.sm-check li { display: flex; gap: 10px; align-items: flex-start; }
.sm-check svg { flex-shrink: 0; margin-top: 3px; color: var(--sm-ok); }

/* Buttons */
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.sm-btn:active { transform: scale(0.98); }
.sm-btn-primary { background: var(--sm-accent); color: #fff; }
.sm-btn-primary:hover { background: var(--sm-accent-hover); }
.sm-btn-ghost { background: transparent; color: var(--sm-text); border: 1px solid var(--sm-chip-line); }
.sm-btn-block { width: 100%; }
.sm-btn[hidden] { display: none; }
/* Mobil: Registrier-Box im Hero ausblenden, damit die Profile frueher kommen */
@media (max-width: 767.98px) { .sm-hero-box { display: none; } .sm-hero-text p { font-size: 1rem; } .sm-hero { margin-bottom: 16px; } }

/* Kategorie- und Filter-Chips */
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 20px; border-top: 1px solid var(--sm-line); margin-bottom: 12px; }
.sm-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--sm-chip-bg); border: 1px solid var(--sm-chip-line); text-decoration: none; cursor: pointer; font-family: inherit; }
.sm-chip:hover { border-color: var(--sm-hl); }
.sm-chip.is-active { background: var(--sm-chip-active-bg); border-color: var(--sm-chip-active-bg); }
.sm-chips-label { font-size: 13px; color: var(--sm-muted); margin-right: 4px; }
.sm-chips-filter { border-top: 0; padding-top: 0; margin-bottom: 20px; }
.sm-chip-foto { margin-left: 8px; }
.sm-chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; margin-left: 8px; padding: 0 7px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; background: var(--sm-hl-soft); color: var(--sm-hl); }
.sm-chip.is-active .sm-chip-n { background: #fff; color: var(--sm-chip-active-bg); }
.sm-chip { padding-right: 12px; }
.sm-chip:not(:has(.sm-chip-n)) { padding-right: 16px; }
.sm-reg-ende { text-align: center; margin: 32px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sm-btn-gross { min-height: 56px; padding: 0 32px; font-size: 17px; max-width: 100%; text-align: center; }
.sm-btn-gross b { font-weight: 800; }
/* Lebenszeichen auf der Karte */
.sm-flags { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sm-flag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.94); color: var(--sm-text); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.sm-flag-aktiv i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.sm-flag-neu { background: var(--sm-accent); color: #fff; }
/* Handy: Lebenszeichen nicht ueber das kleine Foto legen, sondern in die Ortszeile */
.sm-meta-flags { display: none; }
@media (max-width: 767.98px) {
	.sm-card-img .sm-flags { display: none; }
	.sm-meta-flags { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
	.sm-meta-aktiv { display: inline-flex; align-items: center; gap: 5px; color: #15803D; font-weight: 600; }
	.sm-meta-aktiv i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
	.sm-meta-neu { background: var(--sm-accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
}
/* Fotokarten: Name und Ort im Bild (ab 768px, wenn die Karte hochkant ist) */
.sm-card-overlay { display: none; }
@media (min-width: 768px) {
	.sm-card-foto .sm-card-overlay { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(to top, rgba(10,14,18,0.82) 0%, rgba(10,14,18,0.35) 60%, rgba(10,14,18,0) 100%); color: #fff; pointer-events: none; }
	.sm-overlay-name { font-size: 17px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
	.sm-overlay-name span { font-weight: 500; opacity: .85; }
	.sm-overlay-ort { font-size: 13px; opacity: .85; }
	.sm-card-foto .sm-card-name, .sm-card-foto .sm-card-meta { display: none; }
	.sm-card-foto .sm-card-body { padding-top: 12px; }
	.sm-card-foto .sm-card-text { margin-top: 0; }
}
.sm-reg-hinweis { font-size: 14px; color: var(--sm-muted); }

/* Profilkarten: mobil horizontal, ab 768px vertikal im Raster */
.smv2 .sm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .smv2 .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.sm-card { display: flex; background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 18px; overflow: hidden; text-decoration: none; box-shadow: var(--sm-shadow); transition: border-color .15s ease, transform .15s ease; }
.sm-card:hover { border-color: var(--sm-hl); transform: translateY(-2px); }
.sm-card-img { flex: 0 0 34%; background: var(--sm-card-2); position: relative; overflow: hidden; }
.sm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5; }
.sm-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sm-card-name { font-size: 16px; font-weight: 700; margin: 0; font-family: inherit; letter-spacing: 0; }
.sm-card-name span { color: var(--sm-muted); font-weight: 500; }
.sm-card-meta { font-size: 14px; color: var(--sm-muted); }
.sm-card-text-leer { color: var(--sm-muted); font-style: italic; }
.sm-card-text { font-size: 15px; color: var(--sm-text-2); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sm-badge { position: absolute; top: 8px; left: 8px; background: var(--sm-badge-bg); color: var(--sm-hl); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.sm-card-fnz { display: inline-block; align-self: flex-start; width: auto; margin: 6px 0 0; padding: 2px 9px; border: 1px solid var(--sm-chip-line); border-radius: 999px; background: var(--sm-chip-bg); font-size: 12px; font-weight: 600; line-height: 1.5; }
@media (min-width: 768px) {
	.sm-card { flex-direction: column; }
	.sm-card-img { flex: none; }
}
.smv2 .sm-card.is-hidden { display: none !important; }

/* Registrierungs-Kachel im Raster */
.sm-cta-card { background: var(--sm-cta-bg); border: 1px solid var(--sm-cta-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.sm-cta-card strong { font-size: 17px; line-height: 1.3; color: var(--sm-text); }
.sm-cta-card span { font-size: 14px; color: var(--sm-muted); }

.sm-more { text-align: center; margin: 24px 0 8px; }
.sm-empty { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 18px; padding: 24px; color: var(--sm-text-2); }

/* Boxen in der Seitenleiste */
.sm-box { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--sm-shadow); }
.smv2 .sm-box-title { font-family: var(--sm-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }

.sm-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--sm-text-2); }
.sm-steps li { display: flex; gap: 12px; align-items: flex-start; }
.sm-steps b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sm-hl-soft); color: var(--sm-hl); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* Layout: Profile + mitlaufende Seitenleiste (ab 992px) */
.sm-layout { display: block; }
.sm-side { display: none; }
@media (min-width: 992px) {
	.sm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
	.sm-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
	.sm-chips-umland { display: none !important; }
}

.sm-umland-list { list-style: none; margin: 0; padding: 0; }
.sm-umland-list li { border-bottom: 1px solid var(--sm-line-2); }
.sm-umland-list li:last-child { border-bottom: 0; }
.smv2 .sm-umland-list a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; font-weight: 600; text-decoration: none; }
.smv2 .sm-umland-list a::after { content: "›"; color: var(--sm-muted); font-size: 18px; }
.sm-umland-list a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Text unter den Profilen */
.smv2 .sm-article { margin-top: 56px; max-width: 760px; }
.sm-article p { font-size: 17px; line-height: 1.7; max-width: 68ch; }

/* Mobil: Chip-Reihen wischbar statt umbrechend */
@media (max-width: 991.98px) {
	.sm-scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
	.sm-scroll::-webkit-scrollbar { display: none; }
	.sm-scroll .sm-chip, .sm-scroll .sm-chips-label { flex-shrink: 0; white-space: nowrap; }
	.sm-chips-umland { border-top: 0; padding-top: 0; }
}

/* ---------------------------------------------------------------------
   Gegenregeln zu sm_style.css: dort sind a und h1-h6 mit !important
   auf #16232B gesetzt. Hier werden die Theme-Farben durchgesetzt.
   --------------------------------------------------------------------- */
.smv2 h1, .smv2 h2, .smv2 h3, .smv2 h4 { color: var(--sm-text) !important; }
.smv2 .sm-box-title { color: var(--sm-muted) !important; }
.smv2 a { color: var(--sm-link) !important; }
.smv2 a:hover { color: var(--sm-link-hover) !important; }
.smv2 .sm-article a { text-decoration: underline; text-underline-offset: 2px; }
.smv2 .sm-chip, .smv2 a.sm-chip, .smv2 a.sm-card, .smv2 .sm-umland-list a { color: var(--sm-text) !important; }
.smv2 a.sm-chip:hover, .smv2 .sm-umland-list a:hover { color: var(--sm-hl) !important; }
.smv2 .sm-chip.is-active { color: var(--sm-chip-active-text) !important; }
.smv2 a.sm-btn-primary, .smv2 a.sm-btn-primary:hover { color: #fff !important; }
.smv2 .sm-btn-ghost { color: var(--sm-text) !important; }
.smv2 .breadcrumb-item a { color: var(--sm-muted) !important; }
.smv2 .breadcrumb-item.active { color: var(--sm-text) !important; }
.smv2 .breadcrumb-item + .breadcrumb-item::before { color: var(--sm-muted) !important; content: "›" !important; }

/* Platzhalterbilder: nur im dunklen Theme abdunkeln */
.smv2.sm-dark .sm-card img[src*="/images/profil_300_350_"] { filter: invert(1) brightness(.32) sepia(.35) hue-rotate(290deg); }

/* Optional: Klasse sm-blur am <main> weichzeichnet echte Fotos fuer Gaeste. Aktuell nicht gesetzt. */
.smv2.sm-blur .sm-card img[src*="/thumbs/"] { filter: blur(12px); transform: scale(1.1); }

/* ---------------------------------------------------------------------
   AUFWERTUNG (Nov 2026): Akzentfarbe, Hero, Karten, Uebergaenge.
   Nur helles Theme. Zum Abschalten diesen Block entfernen.
   --------------------------------------------------------------------- */
.smv2:not(.sm-dark) {
	--sm-accent: #C8506E;          /* warmes Rosé fuer Buttons und aktive Chips */
	--sm-accent-hover: #B03F5C;
	--sm-hl: #C8506E;              /* Badges, Schritt-Nummern, Zahlen-Badges */
	--sm-hl-soft: #FBEDF1;
	--sm-chip-active-bg: #C8506E;
	--sm-cta-bg: linear-gradient(160deg, #FBEDF1 0%, #FFFFFF 70%);
	--sm-cta-line: #F0C9D5;
	--sm-shadow: 0 1px 2px rgba(22,35,43,0.04), 0 6px 18px rgba(22,35,43,0.07);
}
.smv2:not(.sm-dark) .sm-chip.is-active .sm-chip-n { color: var(--sm-accent); }

/* Hero als Buehne: weicher Verlauf mit Rosé-Schimmer oben rechts */
.smv2 .sm-hero {
	position: relative;
	padding: 32px 32px 28px;
	margin: 8px 0 28px;
	border-radius: 24px;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(200,80,110,0.10) 0%, rgba(200,80,110,0) 60%),
		linear-gradient(135deg, #F3F6F9 0%, #FFFFFF 70%);
	border: 1px solid var(--sm-line);
}
.smv2 h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.01em; }
.smv2 h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--sm-accent); margin-top: 14px; }
.smv2 .sm-hero-box { box-shadow: 0 10px 30px rgba(22,35,43,0.10); border-color: #fff; }
@media (max-width: 767.98px) { .smv2 .sm-hero { padding: 20px 18px 18px; border-radius: 18px; } .smv2 h1 { font-size: 1.85rem; line-height: 1.1; } .smv2 h1::after { margin-top: 10px; } }

/* Karten: Bild zoomt beim Hover, Karte hebt sich, Badge in Akzentfarbe */
.smv2 .sm-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.smv2 .sm-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,35,43,0.12); border-color: var(--sm-line); }
.smv2 .sm-card-img img { transition: transform .35s ease; }
.smv2 .sm-card:hover .sm-card-img img { transform: scale(1.04); }
.smv2 .sm-badge { background: var(--sm-accent); color: #fff; }
.smv2 .sm-card:hover .sm-card-name { color: var(--sm-accent) !important; }

/* Filterwechsel: Karten blenden weich ein */
@keyframes sm-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.smv2 .sm-card:not(.is-hidden) { animation: sm-fade-in .22s ease both; }

/* Chips: aktiver Chip mit kleinem Schatten, Hover deutlicher */
.smv2 .sm-chip { transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .1s ease; }
.smv2 .sm-chip:hover { transform: translateY(-1px); }
.smv2 .sm-chip.is-active { box-shadow: 0 4px 12px rgba(200,80,110,0.25); }

/* Buttons: leichter Schatten, Hover hebt */
.smv2 .sm-btn-primary { box-shadow: 0 6px 16px rgba(200,80,110,0.28); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; }
.smv2 .sm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(200,80,110,0.32); }

/* Seitenleiste: Umland-Links mit Akzent beim Hover */
.smv2 .sm-umland-list a:hover::after { color: var(--sm-accent); }

@media (prefers-reduced-motion: reduce) {
	.smv2 .sm-card:not(.is-hidden) { animation: none; }
	.smv2 .sm-card-img img, .smv2 .sm-chip, .smv2 .sm-btn-primary { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sm-card, .sm-btn { transition: none; }
	.sm-card:hover { transform: none; }
}
/* ---------- STARTSEITE 2027 ---------- */
/* Profilnamen auf der Startseite als Absatz statt H3 (saubere Ueberschriften-Struktur fuer Google) */
.smv2 p.sm-card-name { color: var(--sm-text); }
.smv2 .sm-staedte, .smv2 .sm-start-rubriken, .smv2 .sm-start-schritte, .smv2 .sm-faq { margin-top: 56px; }
.smv2 .sm-staedte-titel { margin: 0 0 18px; }
.smv2 .sm-staedte-sub { font-family: var(--sm-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sm-muted); margin: 0 0 12px; }
.sm-staedte-top { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smv2 .sm-staedte-top a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--sm-chip-line); border-radius: 999px; background: var(--sm-chip-bg); color: var(--sm-text) !important; font-size: 15px; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, transform .1s ease; }
.smv2 .sm-staedte-top a:hover { border-color: var(--sm-hl); background: var(--sm-hl-soft); transform: translateY(-1px); }
.smv2 .sm-box-link, .smv2 .sm-start-mehr a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--sm-link) !important; }
.smv2 .sm-start-h2 { margin: 0 0 14px; }
.smv2 .sm-start-hero { align-items: center; padding-top: 44px; padding-bottom: 40px; }
.smv2 .sm-start-hero h1 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.sm-stadtsuche { display: flex; gap: 10px; margin-top: 22px; max-width: 520px; }
.sm-stadtsuche-feld { position: relative; flex: 1 1 auto; min-width: 0; }
.sm-stadtsuche input { width: 100%; min-width: 0; min-height: 50px; padding: 0 18px; border: 1px solid var(--sm-chip-line); border-radius: 999px; font-size: 16px; background: #fff; color: var(--sm-text); }
.sm-stadtsuche input:focus { outline: none; border-color: var(--sm-accent); box-shadow: 0 0 0 4px rgba(200,80,110,0.15); }
.sm-start-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sm-start-kachel { border: 1px solid var(--sm-line); border-radius: 20px; padding: 22px 22px 6px; background: var(--sm-card); box-shadow: var(--sm-shadow); }
.smv2 .sm-start-kachel h3 { font-family: var(--sm-font-head); font-weight: 600; font-size: 1.5rem; margin: 0 0 4px; }
.sm-start-kachel p { margin: 0 0 14px; }
.sm-start-drei { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sm-start-drei li { position: relative; padding: 22px; border-radius: 20px; background: var(--sm-cta-bg); border: 1px solid var(--sm-cta-line); }
.sm-start-drei b { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sm-accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.smv2 .sm-start-drei h3 { font-family: var(--sm-font-head); font-weight: 600; font-size: 1.35rem; margin: 0 0 6px; }
.sm-start-drei p { margin: 0; }
.smv2 .sm-article { margin-top: 56px; max-width: 820px; }
.smv2 .sm-start-artikel { max-width: none; }
.sm-start-zeile { margin-bottom: 48px; }
.sm-start-zeile:not(.has-bild) .sm-start-zeile-text { max-width: 820px; }
.sm-start-zeile.has-bild { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sm-start-zeile.has-bild:nth-child(even) .sm-start-zeile-bild { order: -1; }
.smv2 .sm-start-zeile h2 { margin-top: 0; }
.sm-start-zeile-bild { position: relative; isolation: isolate; }
.sm-start-zeile-bild img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px rgba(22,35,43,0.14); }
.sm-faq { max-width: 820px; }
.sm-faq-item { border: 1px solid var(--sm-line); border-radius: 16px; background: var(--sm-card); margin-bottom: 10px; }
.sm-faq-item > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--sm-text); display: flex; justify-content: space-between; gap: 12px; }
.sm-faq-item > summary::-webkit-details-marker { display: none; }
.sm-faq-item > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--sm-muted); }
.sm-faq-item[open] > summary::after { content: "\2212"; }
.sm-faq-item p { padding: 0 20px 16px; margin: 0; }
.smv2 .sm-start-fakten { margin-top: 56px; }
.sm-start-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.sm-start-dl div { border: 1px solid var(--sm-line); border-radius: 16px; padding: 14px 16px; background: var(--sm-card); }
.sm-start-dl dt { font-size: 13px; font-weight: 600; color: var(--sm-muted); margin: 0 0 2px; }
.sm-start-dl dd { font-family: var(--sm-font-head); font-size: 1.35rem; font-weight: 600; color: var(--sm-text); margin: 0; line-height: 1.2; }
.smv2 .sm-start-themen { margin-top: 56px; }
.sm-start-themen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.smv2 .sm-start-thema { display: block; padding: 20px 22px; border: 1px solid var(--sm-line); border-radius: 18px; background: var(--sm-card); box-shadow: var(--sm-shadow); text-decoration: none; color: var(--sm-text-2) !important; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.smv2 .sm-start-thema:hover { transform: translateY(-2px); border-color: var(--sm-hl); box-shadow: 0 12px 26px rgba(22,35,43,0.10); }
.smv2 .sm-start-thema strong { display: block; font-family: var(--sm-font-head); font-size: 1.4rem; font-weight: 600; color: var(--sm-text); margin-bottom: 4px; }
.smv2 .sm-start-thema strong::after { content: " \203A"; color: var(--sm-accent); }
.sm-start-thema span { font-size: 15px; }
.sm-stadt-vorschlaege { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--sm-card); /* 17.11.2026: Kartenfarbe statt festem Weiss, sonst im Dunkelmodus weisse Liste mit heller Schrift */ border: 1px solid var(--sm-line); border-radius: 16px; box-shadow: 0 14px 34px rgba(22,35,43,0.14); max-height: 320px; overflow-y: auto; }
.sm-stadt-vorschlaege li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--sm-text); }
.sm-stadt-vorschlaege li span { color: var(--sm-muted); font-size: 13px; white-space: nowrap; }
.sm-stadt-vorschlaege li[aria-selected="true"], .sm-stadt-vorschlaege li:hover { background: var(--sm-hl-soft); }
.smv2 .sm-start-vl { margin-top: 56px; }
.sm-start-vl-sub { margin: -8px 0 18px; color: var(--sm-muted); }
.sm-start-vl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.smv2 .sm-vl-kachel { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; text-decoration: none; isolation: isolate;
	background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 55%), linear-gradient(150deg, var(--sm-vl-farbe, #8E4A6B) 0%, #1B222B 100%);
	box-shadow: var(--sm-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.smv2 .sm-vl-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.smv2 .sm-vl-kachel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,18,22,0) 35%, rgba(15,18,22,0.78) 100%); }
.smv2 .sm-vl-kachel:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(22,35,43,0.18); }
.smv2 .sm-vl-kachel:hover img { transform: scale(1.05); }
.sm-vl-kachel-text { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.smv2 .sm-vl-kachel-text strong { display: block; font-family: var(--sm-font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: #fff; }
.sm-vl-kachel-text span { display: block; font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.smv2 .sm-start-ssi-titel { margin-top: 24px; }
@media (max-width: 991.98px) { .sm-start-vl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .smv2 .sm-vl-kachel, .smv2 .sm-vl-kachel img { transition: none; } }
@media (max-width: 767.98px) {
	.smv2 .sm-staedte, .smv2 .sm-start-rubriken, .smv2 .sm-start-schritte, .smv2 .sm-faq, .smv2 .sm-article { margin-top: 40px; }
	.sm-stadtsuche { flex-direction: column; }
	.sm-stadtsuche .sm-btn { width: 100%; }
	.sm-start-kacheln { grid-template-columns: 1fr; }
	.sm-start-vl-grid { gap: 10px; }
	.sm-start-zeile.has-bild { grid-template-columns: 1fr; gap: 20px; }
	.sm-start-zeile.has-bild:nth-child(even) .sm-start-zeile-bild { order: 0; }
		.sm-vl-kachel-text { left: 12px; right: 12px; bottom: 10px; }
	.smv2 .sm-vl-kachel-text strong { font-size: 1.1rem; }
	.sm-vl-kachel-text span { font-size: 12px; }
}
/* ---------- THEMENSEITE 2027 ---------- */
.smv2 .sm-thema-reiter { border-top: 0; padding-top: 0; margin: 20px 0 0; }

/* ---------- Teil 2: Suche ---------- */
.smq-form { background: var(--sm-card, #fff); border: 1px solid var(--sm-line, #E2E6EA); border-radius: 22px; padding: 22px 24px; margin: 0 0 22px; box-shadow: 0 10px 30px rgba(22,35,43,.06); }
.smq-zeile { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 18px 22px; align-items: end; }
.smq-feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.smq-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sm-muted, #66727D); }
.smq-typen { display: flex; flex-wrap: wrap; gap: 8px; }
.smq-typen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smq-typen label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sm-chip-line, #D5DBE1);
	background: var(--sm-chip-bg, #fff); font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; color: var(--sm-text, #16232B); }
.smq-typen input:checked + label { background: var(--sm-chip-active-bg, #324C5D); border-color: var(--sm-chip-active-bg, #324C5D); color: #fff; }
.smq-typen input:focus-visible + label { outline: 3px solid rgba(200,80,110,.45); outline-offset: 2px; }
.smq-alter { display: flex; align-items: center; gap: 8px; }
.smq-alter select { flex: 1 1 0; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--sm-chip-line, #D5DBE1); background: var(--sm-chip-bg, #fff);
	color: var(--sm-text, #16232B); padding: 0 10px; font: inherit; font-size: 15px; }
.smq-alter span { color: var(--sm-muted, #66727D); font-size: 14px; }
.smq-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sm-line, #E2E6EA); }
.smq-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; color: var(--sm-text, #16232B); }
.smq-check input { width: 20px; height: 20px; accent-color: #C8506E; }
.smq-gesperrt { display: flex; flex-wrap: wrap; gap: 10px; }
.smq-schloss { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--sm-chip-line, #C9D1D8);
	color: var(--sm-muted, #66727D) !important; text-decoration: none !important; font-size: 14.5px; font-weight: 600; background: transparent; }
.smq-schloss:hover { border-color: #C8506E; color: #C8506E !important; }
.smq-schloss svg { flex: none; }
.smq-los { min-height: 46px; padding: 0 26px; white-space: nowrap; }
.smq-ergebnis { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 14px; }
.smv2 .smq-ergebnis h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.smq-ergebnis p { margin: 0; color: var(--sm-muted, #66727D); font-size: 15px; }
.smq-werbung { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px 32px; align-items: center; margin: 30px 0 10px; padding: 30px 32px;
	border-radius: 24px; border: 1px solid var(--sm-line, #E2E6EA);
	background: radial-gradient(70% 120% at 100% 0%, rgba(200,80,110,.14) 0%, rgba(200,80,110,0) 60%), var(--sm-card, #fff); }
.smv2 .smq-werbung h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.smq-werbung p { margin: 0 0 16px; color: var(--sm-text-2, #3E4C57); }
.smq-vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.smq-vorteile li { display: flex; gap: 10px; align-items: flex-start; color: var(--sm-text, #16232B); font-weight: 600; }
.smq-vorteile svg { flex: none; margin-top: 3px; color: #C8506E; }
.smq-klein { font-size: 13.5px; color: var(--sm-muted, #66727D); margin-top: 10px !important; }
@media (max-width: 991.98px) { .smq-zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .smq-zeile .smq-feld:first-child { grid-column: 1 / -1; } .smq-werbung { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) {
	.smq-form { padding: 18px 16px; border-radius: 18px; }
	.smq-zeile { grid-template-columns: minmax(0, 1fr); }
	.smq-los { width: 100%; }
	.smq-unten { flex-direction: column; align-items: stretch; }
	.smq-werbung { padding: 22px 18px; }
}
html[data-smd-thema="dunkel"] .smq-form { background: #17222A; border-color: #2B3944; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
html[data-smd-thema="dunkel"] .smq-typen label, html[data-smd-thema="dunkel"] .smq-alter select { background: #1D2932; border-color: #3A4A56; color: #E7ECF0; }
html[data-smd-thema="dunkel"] .smq-typen input:checked + label { background: #C8506E; border-color: #C8506E; color: #fff; }
html[data-smd-thema="dunkel"] .smq-check, html[data-smd-thema="dunkel"] .smq-vorteile li { color: #E7ECF0; }
html[data-smd-thema="dunkel"] .smq-unten { border-top-color: #2B3944; }
html[data-smd-thema="dunkel"] .smq-schloss { border-color: #3A4A56; color: #93A1AD !important; }
html[data-smd-thema="dunkel"] .smq-schloss:hover { border-color: #EE93AB; color: #EE93AB !important; }
html[data-smd-thema="dunkel"] .smq-werbung { border-color: #2B3944; background: radial-gradient(70% 120% at 100% 0%, rgba(200,80,110,.18) 0%, rgba(200,80,110,0) 60%), #17222A; }
html[data-smd-thema="dunkel"] .smq-werbung p { color: #C2CCD4; }

/* ---------- Hinweisfenster fuer Mitglieder-Filter ---------- */
.smq-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #E2E6EA; border-radius: 22px; padding: 22px 24px 24px;
	background: #fff; color: #3E4C57; box-shadow: 0 24px 60px rgba(10,18,24,.35); font-family: var(--sm-font-body); }
.smq-dialog::backdrop { background: rgba(10,18,24,.55); }
.smq-dialog[open] { animation: smq-auf .18s ease-out; }
@keyframes smq-auf { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.smq-dialog-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.smq-dialog-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #FBEDF1; color: #C8506E; }
.smv2 .smq-dialog h2 { flex: 1; margin: 0; font-size: 1.4rem; line-height: 1.2; color: #16232B !important; font-family: var(--sm-font-head); }
.smq-dialog-zu { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #66727D; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.smq-dialog-zu:hover { background: #F3F6F9; color: #16232B; }
.smq-dialog p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; }
.smq-dialog .smq-vorteile { margin-bottom: 18px; }
.smq-dialog .smq-vorteile li { font-weight: 500; font-size: 15px; }
.smq-dialog-knoepfe { display: grid; gap: 10px; }
.smq-dialog-knoepfe .sm-btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .smq-dialog[open] { animation: none; } }
html[data-smd-thema="dunkel"] .smq-dialog { background: #17222A; border-color: #2B3944; color: #C2CCD4; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
html[data-smd-thema="dunkel"] .smv2 .smq-dialog h2 { color: #E7ECF0 !important; }
html[data-smd-thema="dunkel"] .smq-dialog-icon { background: #3A1F29; color: #EE93AB; }
html[data-smd-thema="dunkel"] .smq-dialog-zu { color: #93A1AD; }
html[data-smd-thema="dunkel"] .smq-dialog-zu:hover { background: #1D2932; color: #E7ECF0; }
html[data-smd-thema="dunkel"] .smq-dialog .smq-vorteile li { color: #E7ECF0; }

/* ---------- Stadtsuche im Kopf ---------- */
.smq-stadt { margin-top: 20px; }
.smq-stadt .smq-label { display: block; margin-bottom: 8px; }
.smq-stadt .sm27-stadtsuche { align-items: flex-start; }
.smv2 .smq-stadt .sm27-stadtsuche-leer { margin: 8px 4px 0; font-size: 14px; }
.smq-hinweis { margin: -4px 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--sm-hl-soft, #FBEDF1); color: var(--sm-text, #16232B); font-size: 15px; }
html[data-smd-thema="dunkel"] .smq-hinweis { background: #3A1F29; color: #E7ECF0; }
