/*
Theme Name: Fastighet
Description: Theme für schwedenmakler.com
Author: Joerrens Online Marketing AB
Author URI: https://www.joerrens.com
Version: 1.0.0
Requires PHP: 8.0
Text Domain: fastighet
*/

/* ==========================================================================
   SCHRIFT (lokal, variable Open Sans 300 bis 800)
   ========================================================================== */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('assets/fonts/open-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('assets/fonts/open-sans-symbols.woff2') format('woff2');
	unicode-range: U+2190-2199;
}

/* ==========================================================================
   FARBEN UND GRUNDWERTE
   ========================================================================== */

:root {
	--sm-navy: #003366;
	--sm-ink: #193250;
	--sm-yellow: #fccb16;
	--sm-blue: #0568a2;
	--sm-text: #023347;
	--sm-body: #3f4a55;
	--sm-muted: #5f6b76;
	--sm-soft: #c5d4e3;
	--sm-soft-2: #dbe6f0;
	--sm-line: #e3e9ef;
	--sm-bg: #eef3f8;
	--sm-placeholder: #dfe7ef;
	--sm-dash: #b9c6d3;
	--sm-ink-line: #2c4a6e;
	--sm-white: #ffffff;

	--sm-wrap: 1180px;
	--sm-gutter: 32px;
	--sm-radius: 14px;
	--sm-radius-s: 10px;
	--sm-ease: cubic-bezier(.2, .7, .2, 1);
	--sm-shadow: 0 12px 28px rgba(0, 51, 102, .12);

	/* Newsletter-Plugin liest diese Werte */
	--jnl-accent: #003366;
	--jnl-accent-hover: #193250;
	--jnl-accent-text: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	color: var(--sm-body);
	background: var(--sm-white);
	-webkit-font-smoothing: antialiased;
}

body.sm-locked {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sm-blue);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover,
a:focus {
	color: var(--sm-navy);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-weight: 800;
	line-height: 1.25;
	color: var(--sm-navy);
}

h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

p {
	margin: 0 0 1.1em;
}

ul, ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}

li {
	margin-bottom: .4em;
}

hr {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--sm-line);
}

table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 15px;
}

th,
td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--sm-line);
	text-align: left;
	vertical-align: top;
}

th {
	color: var(--sm-navy);
	font-weight: 700;
}

input,
select,
textarea,
button {
	font: inherit;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sm-dash);
	border-radius: var(--sm-radius-s);
	background: var(--sm-white);
	color: var(--sm-text);
	font-size: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--sm-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(5, 104, 162, .15);
}

:focus-visible {
	outline: 3px solid var(--sm-yellow);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	border-radius: var(--sm-radius-s);
	background: var(--sm-yellow);
	color: var(--sm-navy);
	font-weight: 700;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.sm-wrap {
	max-width: var(--sm-wrap);
	margin: 0 auto;
	padding: 0 var(--sm-gutter);
}

.sm-section {
	padding: 80px 0;
}

.sm-section--tight-top {
	padding-top: 40px;
}

.sm-section--tight-bottom {
	padding-bottom: 40px;
}

.sm-section--soft {
	background: var(--sm-bg);
}

.sm-section--navy {
	background: var(--sm-navy);
	color: var(--sm-soft);
}

.sm-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
}

.sm-section__head h2 {
	margin: 0;
}

.sm-section__more {
	font-size: 15px;
	font-weight: 700;
}

.sm-lead {
	max-width: 640px;
	margin-bottom: 28px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--sm-body);
}

.sm-eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--sm-blue);
}

/* Seiten mit Sidebar */
.sm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	padding-top: 56px;
	padding-bottom: 80px;
}

.sm-layout--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
}

.sm-main > :first-child {
	margin-top: 0;
}

.sm-block {
	margin: 0 0 56px;
}

.sm-block:last-child {
	margin-bottom: 0;
}

/* Seitenkopf auf Unterseiten */
.sm-pagehead {
	position: relative;
	overflow: hidden;
	background: var(--sm-ink);
}

.sm-pagehead .sm-wrap {
	position: relative;
	padding-top: 56px;
	padding-bottom: 52px;
}

.sm-pagehead h1 {
	max-width: 820px;
	margin: 0;
	color: var(--sm-white);
}

.sm-pagehead__meta {
	margin: 12px 0 0;
	font-size: 16px;
	color: var(--sm-soft-2);
}

.sm-pagehead__meta a {
	color: var(--sm-white);
	font-weight: 600;
}

.sm-pagehead .sm-eyebrow {
	color: var(--sm-yellow);
}

/* Raster aus dem Hero, nur als Dekor */
.sm-gridlines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(17, 102, 159, .55) 1px, transparent 1px), linear-gradient(0deg, rgba(17, 102, 159, .55) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: .5;
	pointer-events: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.sm-btn,
.jlm-cta-button,
.lead-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 26px;
	border: 2px solid transparent;
	border-radius: var(--sm-radius-s);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--sm-ease), box-shadow .2s var(--sm-ease), background-color .2s ease, color .2s ease;
}

.sm-btn:hover,
.sm-btn:focus,
.jlm-cta-button:hover,
.lead-cta-button:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.sm-btn--yellow {
	background: var(--sm-yellow);
	color: var(--sm-navy);
}

.sm-btn--yellow:hover,
.sm-btn--yellow:focus {
	color: var(--sm-navy);
}

.sm-btn--navy,
.jlm-cta-button,
.lead-cta-button {
	background: var(--sm-navy);
	color: var(--sm-white);
}

.sm-btn--navy:hover,
.sm-btn--navy:focus,
.jlm-cta-button:hover,
.lead-cta-button:hover {
	background: var(--sm-ink);
	color: var(--sm-white);
}

.sm-btn--outline-light {
	border-color: var(--sm-white);
	background: transparent;
	color: var(--sm-white);
}

.sm-btn--outline-light:hover,
.sm-btn--outline-light:focus {
	background: var(--sm-white);
	color: var(--sm-navy);
}

.sm-btn--light {
	background: var(--sm-bg);
	color: var(--sm-navy);
}

.sm-btn--light:hover,
.sm-btn--light:focus {
	background: var(--sm-line);
	color: var(--sm-navy);
}

.sm-btn--small {
	padding: 10px 18px;
	font-size: 15px;
	border-radius: 8px;
}

.sm-btn--block {
	width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.sm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--sm-line);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(8px);
}

.admin-bar .sm-header {
	top: 32px;
}

.sm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.sm-logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--sm-navy);
	text-transform: uppercase;
	white-space: nowrap;
}

.sm-logo:hover,
.sm-logo:focus {
	color: var(--sm-navy);
	text-decoration: none;
}

.sm-logo span {
	color: var(--sm-yellow);
}

.sm-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.sm-nav ul {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-nav li {
	margin: 0;
}

.sm-nav ul a {
	position: relative;
	font-size: 15px;
	font-weight: 600;
	color: var(--sm-text);
	white-space: nowrap;
}

.sm-nav .sm-btn {
	white-space: nowrap;
}

.sm-nav ul a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--sm-yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--sm-ease);
}

.sm-nav ul a:hover,
.sm-nav ul a:focus {
	color: var(--sm-navy);
	text-decoration: none;
}

.sm-nav ul a:hover::after,
.sm-nav ul a:focus::after,
.sm-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.sm-nav__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--sm-navy);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.sm-nav__burger,
.sm-nav__burger::before,
.sm-nav__burger::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s var(--sm-ease), opacity .2s ease;
}

.sm-nav__burger {
	position: relative;
}

.sm-nav__burger::before,
.sm-nav__burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.sm-nav__burger::before { top: -7px; }
.sm-nav__burger::after { top: 7px; }

.sm-nav-open .sm-nav__burger { background: transparent; }
.sm-nav-open .sm-nav__burger::before { transform: translateY(7px) rotate(45deg); }
.sm-nav-open .sm-nav__burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */

.sm-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--sm-ink);
	background-position: 70% center;
	background-size: cover;
}

.sm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(25, 50, 80, .88) 0%, rgba(25, 50, 80, .62) 48%, rgba(25, 50, 80, .15) 100%);
}

.sm-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	padding-top: 110px;
	padding-bottom: 96px;
}

.sm-hero h1 {
	max-width: 640px;
	margin: 0;
	font-size: 52px;
	line-height: 1.1;
	color: var(--sm-white);
}

.sm-hero__text {
	max-width: 560px;
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--sm-soft-2);
}

.sm-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}

/* ==========================================================================
   FLIESSTEXT (Inhalte aus dem Editor)
   ========================================================================== */

.sm-prose {
	color: var(--sm-body);
}

.sm-prose > * + h2 {
	margin-top: 1.6em;
}

.sm-prose > * + h3 {
	margin-top: 1.4em;
}

.sm-prose a {
	font-weight: 600;
}

.sm-prose img {
	border-radius: var(--sm-radius-s);
}

.sm-prose figure {
	margin: 1.6em 0;
}

.sm-prose figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--sm-muted);
}

.sm-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--sm-yellow);
	color: var(--sm-text);
	font-size: 18px;
}

.sm-prose .alignleft {
	float: left;
	margin: .3em 1.5em 1em 0;
}

.sm-prose .alignright {
	float: right;
	margin: .3em 0 1em 1.5em;
}

.sm-prose .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.sm-prose::after {
	content: "";
	display: table;
	clear: both;
}

.sm-intro {
	max-width: 820px;
}

.sm-intro .sm-prose > h2:first-child {
	font-size: 34px;
	line-height: 1.2;
}

.sm-intro .sm-prose h2 {
	font-size: 26px;
}

/* Gutenberg-Grundelemente */
.wp-block-button__link {
	display: inline-block;
	padding: 13px 24px;
	border-radius: var(--sm-radius-s);
	background: var(--sm-navy);
	color: var(--sm-white);
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s var(--sm-ease);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: var(--sm-ink);
	color: var(--sm-white);
	text-decoration: none;
	transform: translateY(-2px);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.4em 0;
}

.wp-block-separator {
	height: 1px;
	border: 0;
	background: var(--sm-line);
}

.wp-block-image {
	margin: 1.6em 0;
}

.wp-block-table {
	overflow-x: auto;
}

/* Tipp der Redaktion, Gruppen-Block mit Klasse tipp-box */
.tipp-box {
	margin: 40px 0;
	padding: 24px 28px;
	border-radius: var(--sm-radius);
	background: var(--sm-bg);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sm-text);
}

.tipp-box p {
	margin: 0;
}

.tipp-box p + p {
	margin-top: .8em;
}

.tipp-box .tipp-box-label {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sm-navy);
}

.tipp-box a {
	color: var(--sm-navy);
	font-weight: 600;
}

/* ==========================================================================
   OBJEKTKARTEN
   ========================================================================== */

.sm-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sm-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-cards + .sm-cards {
	margin-top: 24px;
}

.sm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	background: var(--sm-white);
	color: var(--sm-text);
	transition: transform .25s var(--sm-ease), box-shadow .25s var(--sm-ease), border-color .25s ease;
}

a.sm-card:hover,
a.sm-card:focus,
.sm-card--static:hover {
	color: var(--sm-text);
	text-decoration: none;
	border-color: var(--sm-soft);
	box-shadow: var(--sm-shadow);
	transform: translateY(-4px);
}

.sm-card__sign {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 118px;
	padding: 22px 22px 20px;
	background: var(--sm-navy);
}

.sm-card__visual {
	display: block;
	color: inherit;
}

.sm-card__visual:hover {
	text-decoration: none;
}

.sm-card__photo {
	display: block;
	height: 118px;
	overflow: hidden;
	background: var(--sm-placeholder);
}

.sm-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--sm-ease);
}

.sm-card:hover .sm-card__photo img {
	transform: scale(1.04);
}

.sm-card__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--sm-yellow);
	text-transform: uppercase;
}

.sm-card__type {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sm-white);
}

.sm-card__sqm {
	font-size: 13px;
	color: var(--sm-soft);
}

.sm-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px 22px;
}

.sm-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sm-navy);
}

.sm-card__title a {
	color: inherit;
}

.sm-card__loc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sm-muted);
}

.sm-card__loc a {
	color: var(--sm-muted);
}

.sm-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: auto;
	padding-top: 12px;
}

.sm-card__fact {
	display: flex;
	flex-direction: column;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.sm-card__fact span {
	font-size: 12px;
	font-weight: 400;
	color: var(--sm-muted);
}

/* Hinweiskachel (Inserieren, Werbung) */
.sm-card--promo .sm-card__sign {
	justify-content: center;
	background: var(--sm-bg);
}

.sm-card--promo .sm-card__label {
	color: var(--sm-muted);
}

.sm-card--promo .sm-card__cta {
	margin-top: auto;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--sm-blue);
}

.sm-source {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--sm-muted);
}

.sm-source a {
	color: var(--sm-muted);
}

.sm-source--top {
	margin: 0 0 12px;
	text-align: right;
}

.sm-empty {
	padding: 28px;
	border: 1px dashed var(--sm-dash);
	border-radius: var(--sm-radius);
	color: var(--sm-muted);
	text-align: center;
}

/* ==========================================================================
   REGIONEN
   ========================================================================== */

.sm-regions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-regions li {
	margin: 0;
}

.sm-regions a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-radius: var(--sm-radius-s);
	background: var(--sm-white);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sm-navy);
	transition: transform .2s var(--sm-ease), box-shadow .2s var(--sm-ease);
}

.sm-regions a::after {
	content: "→";
	color: var(--sm-blue);
	transition: transform .2s var(--sm-ease);
}

.sm-regions a:hover,
.sm-regions a:focus {
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 51, 102, .1);
	transform: translateY(-2px);
}

.sm-regions a:hover::after {
	transform: translateX(3px);
}

.sm-section:not(.sm-section--soft) .sm-regions a,
.sm-main .sm-regions a {
	background: var(--sm-bg);
}

.sm-main .sm-regions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-pills li {
	margin: 0;
}

.sm-pills a {
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid var(--sm-navy);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sm-navy);
	transition: background-color .2s ease, color .2s ease;
}

.sm-pills a:hover,
.sm-pills a:focus {
	background: var(--sm-navy);
	color: var(--sm-white);
	text-decoration: none;
}

.sm-subhead {
	margin: 40px 0 12px;
	font-size: 18px;
	font-weight: 700;
}

/* Linklisten (weitere Objekte, Orte) */
.sm-linklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.sm-linklist > div,
.sm-linklist li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--sm-line);
}

/* ==========================================================================
   BAND (Hausbesitzer, Makler)
   ========================================================================== */

.sm-band {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
}

.sm-band__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.sm-band__item .sm-eyebrow {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.5px;
	color: var(--sm-yellow);
}

.sm-band__item h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.3;
	color: var(--sm-white);
}

.sm-band__item p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--sm-soft);
}

.sm-band__item .sm-btn {
	margin-top: 6px;
	padding: 13px 22px;
	font-size: 15px;
}

/* ==========================================================================
   HINWEISBOX (Checkliste)
   ========================================================================== */

.sm-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding: 36px 40px;
	border-radius: 16px;
	background: var(--sm-bg);
}

.sm-box__text {
	flex: 1 1 480px;
}

.sm-box__text .sm-eyebrow {
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 1.5px;
	color: var(--sm-navy);
}

.sm-box__text p:last-child {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--sm-text);
}

.sm-box p:has(> .jlm-cta-button) {
	margin: 0;
}

/* ==========================================================================
   PAKETE (Shortcode [sm_pakete] auf /annons/angebot)
   ========================================================================== */

.sm-packages {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 2em 0 1em;
	padding-top: 14px;
}

.sm-package {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px 24px;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	background: var(--sm-white);
}

.sm-package--featured {
	border: 2px solid var(--sm-navy);
	box-shadow: var(--sm-shadow);
}

.sm-package__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--sm-navy);
	color: var(--sm-white);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transform: translateX(-50%);
}

.sm-prose .sm-package__name {
	margin: 0 0 8px;
	font-size: 20px;
}

.sm-package__price {
	margin: 0 0 18px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--sm-navy);
}

.sm-package__price span {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 400;
	color: var(--sm-muted);
}

.sm-prose .sm-package__items {
	flex: 1 1 auto;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.sm-package__items li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 26px;
	font-size: 15px;
	line-height: 1.5;
}

.sm-package__items li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--sm-blue);
}

.sm-prose .sm-package .sm-btn {
	font-weight: 700;
}

.sm-package-form {
	margin-top: 48px;
	scroll-margin-top: 100px;
}

/* ==========================================================================
   AD NETWORK: CONTENT-RASTER UND SIDEBAR-BANNER
   ========================================================================== */

.content-grid-headline {
	margin: 0 0 20px;
	font-size: 26px;
}

.content-promo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 0;
}

.content-promo-grid.cg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-promo-grid.cg-cols-3,
.content-promo-grid.cg-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sm-wide .content-promo-grid.cg-cols-2,
.sm-wide .content-promo-grid.cg-cols-4 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-promo-grid .promo-item {
	position: static;
	overflow: visible;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.content-promo-grid .promo-item a {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--sm-text);
	text-decoration: none;
}

.content-promo-grid .promo-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border-radius: var(--sm-radius);
	background: var(--sm-placeholder);
	object-fit: cover;
	transition: transform .35s var(--sm-ease), box-shadow .35s var(--sm-ease);
}

.content-promo-grid .promo-item a:hover img,
.content-promo-grid .promo-item a:focus img {
	box-shadow: var(--sm-shadow);
	transform: translateY(-4px);
}

.content-promo-grid .promo-item h3 {
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sm-navy);
}

.content-promo-grid .promo-item a:hover h3 {
	color: var(--sm-blue);
}

/* Kennzeichnung "Anzeige" rechts oben auf dem Bild, wie im alten Layout */
.content-promo-grid .promo-item a {
	position: relative;
}

.content-promo-grid .promo-label {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(25, 50, 80, .85);
	font-size: 12px;
	line-height: 1.4;
	color: var(--sm-white);
	transition: transform .35s var(--sm-ease);
}

.content-promo-grid .promo-item a:hover .promo-label {
	transform: translateY(-4px);
}

.joerrens-archive-block {
	padding: 0 !important;
}

.content-promo-grid + .wp-block-spacer,
.sm-adgrid > .wp-block-spacer:first-child {
	display: none;
}

.ad-sidebar a {
	display: block;
	overflow: hidden;
	border-radius: var(--sm-radius-s);
}

.ad-sidebar img {
	transition: transform .35s var(--sm-ease);
}

.ad-sidebar a:hover img {
	transform: scale(1.03);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sm-sidebar {
	font-size: 15px;
	line-height: 1.6;
}

.sm-sidebar__sticky {
	position: sticky;
	top: 104px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sm-sidebar .widget {
	margin: 0;
}

.sm-sidebar .widget-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sm-navy);
}

.sm-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-sidebar li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--sm-line);
}

.sm-sidebar li a {
	color: var(--sm-text);
	font-weight: 600;
}

.sm-sidebar li a:hover {
	color: var(--sm-blue);
}

/* ==========================================================================
   BEITRAEGE UND ARCHIVE
   ========================================================================== */

.sm-posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
}

.sm-post-card a {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--sm-text);
}

.sm-post-card a:hover {
	text-decoration: none;
}

.sm-post-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--sm-radius);
	background: var(--sm-placeholder);
	transition: box-shadow .35s var(--sm-ease), transform .35s var(--sm-ease);
}

.sm-post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sm-post-card a:hover .sm-post-card__image {
	box-shadow: var(--sm-shadow);
	transform: translateY(-4px);
}

.sm-post-card h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
}

.sm-post-card a:hover h3 {
	color: var(--sm-blue);
}

.sm-teaserlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-teaserlist article {
	padding: 14px 0;
	border-bottom: 1px solid var(--sm-line);
}

.sm-teaserlist h3 {
	margin: 0;
	font-size: 17px;
}

.sm-archive-intro {
	margin-bottom: 40px;
}

.sm-entry-meta {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--sm-muted);
}

.sm-entry-meta a {
	color: var(--sm-muted);
	font-weight: 600;
}

.sm-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--sm-line);
}

.sm-postnav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--sm-navy);
	font-weight: 700;
	line-height: 1.4;
}

.sm-postnav span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sm-muted);
}

.sm-postnav__next {
	text-align: right;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius-s);
	color: var(--sm-navy);
	font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--sm-navy);
	background: var(--sm-navy);
	color: var(--sm-white);
	text-decoration: none;
}

.sm-meta-small {
	margin-top: 32px;
	font-size: 12px;
	color: var(--sm-muted);
}

/* Suche */
.sm-search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 0 32px;
}

.sm-search input {
	flex: 1 1 auto;
}

.sm-search .sm-btn {
	flex: 0 0 auto;
	padding: 12px 20px;
}

/* Kommentare */
.sm-comments {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--sm-line);
}

.sm-comments ol {
	padding: 0;
	list-style: none;
}

.sm-comments .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--sm-line);
	font-size: 15px;
}

/* ==========================================================================
   OBJEKTSEITE UND PANEL
   ========================================================================== */

.sm-object__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.sm-object__facts li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--sm-radius-s);
	background: var(--sm-bg);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sm-text);
	overflow-wrap: anywhere;
}

.sm-object__facts span {
	font-size: 12px;
	font-weight: 400;
	color: var(--sm-muted);
}

.sm-object__status {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--sm-yellow);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--sm-navy);
}

.sm-object__status--archived {
	background: var(--sm-line);
}

.sm-object__note {
	font-size: 15px;
	color: var(--sm-muted);
}

.sm-map {
	height: 360px;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sm-radius);
	background: var(--sm-placeholder);
}

.sm-map--small {
	height: 220px;
}

.sm-map-missing {
	padding: 20px;
	border-radius: var(--sm-radius);
	background: var(--sm-bg);
	text-align: center;
	font-size: 15px;
	color: var(--sm-muted);
}

.sm-map-missing p {
	margin: 0;
}

.leaflet-container {
	font-family: inherit;
}

.sm-panel {
	position: fixed;
	inset: 0;
	z-index: 9000;
	visibility: hidden;
}

.sm-panel.is-open {
	visibility: visible;
}

.sm-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 50, 80, .55);
	opacity: 0;
	transition: opacity .3s ease;
}

.sm-panel.is-open .sm-panel__backdrop {
	opacity: 1;
}

.sm-panel__sheet {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	background: var(--sm-white);
	box-shadow: -20px 0 40px rgba(0, 0, 0, .2);
	transform: translateX(100%);
	transition: transform .35s var(--sm-ease);
}

.sm-panel.is-open .sm-panel__sheet {
	transform: translateX(0);
}

.sm-panel__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--sm-line);
}

.sm-panel__bar a {
	font-size: 14px;
	font-weight: 700;
}

.sm-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--sm-bg);
	color: var(--sm-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}

.sm-panel__close:hover {
	background: var(--sm-line);
}

.sm-panel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 28px 28px 40px;
	-webkit-overflow-scrolling: touch;
}

.sm-panel__loading {
	padding: 40px 0;
	color: var(--sm-muted);
	text-align: center;
}

.sm-panel__head {
	margin: -28px -28px 24px;
	padding: 28px;
	background: var(--sm-navy);
}

.sm-panel__head .sm-card__label {
	display: block;
	margin-bottom: 6px;
}

.sm-panel__head h2 {
	margin: 0;
	font-size: 26px;
	color: var(--sm-white);
}

.sm-panel__head p {
	margin: 6px 0 0;
	font-size: 15px;
	color: var(--sm-soft);
}

.sm-panel .sm-object__facts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.sm-panel .sm-object__facts li {
	padding: 10px 14px;
	font-size: 16px;
}

.sm-panel__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
}

.sm-panel__actions p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sm-muted);
	text-align: center;
}

.sm-panel__booli {
	display: block;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.sm-panel__more {
	margin-top: 20px;
	font-size: 15px;
	font-weight: 700;
}

/* ==========================================================================
   LEAD-ANFRAGE (Hinweis und Modal mit Gravity Form 2)
   ========================================================================== */

.lead-cta {
	margin: 0;
	padding: 32px 36px;
	border-radius: 16px;
	background: var(--sm-navy);
	color: var(--sm-soft);
}

.lead-cta h2 {
	margin: 0 0 10px;
	font-size: 26px;
	color: var(--sm-white);
}

.lead-cta p {
	margin: 0 0 14px;
	color: var(--sm-soft);
}

.lead-cta ul {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.lead-cta li {
	position: relative;
	margin: 0;
	padding: 4px 0 4px 26px;
	color: var(--sm-white);
}

.lead-cta li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--sm-yellow);
}

.lead-cta .lead-cta-button {
	background: var(--sm-yellow);
	color: var(--sm-navy);
}

.lead-cta .lead-cta-button:hover {
	background: var(--sm-yellow);
	color: var(--sm-navy);
}

.lead-modal,
.jlm-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.lead-modal[hidden],
.jlm-modal[hidden] {
	display: none;
}

.lead-modal-overlay,
.jlm-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(25, 50, 80, .6);
}

.lead-modal-box,
.jlm-modal-box {
	position: relative;
	max-width: 600px;
	max-height: 90vh;
	margin: 5vh auto;
	padding: 36px;
	overflow-y: auto;
	border-radius: 16px;
	background: var(--sm-white);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	animation: sm-pop .3s var(--sm-ease);
}

.lead-modal-close,
.jlm-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sm-bg);
	color: var(--sm-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.lead-modal h2,
.jlm-modal-headline {
	margin-top: 0;
	padding-right: 44px;
	font-size: 26px;
	color: var(--sm-navy);
}

.lead-modal-box.is-confirmed #lead-modal-title,
.jlm-modal-box.is-confirmed .jlm-modal-headline,
.jlm-modal-box.is-confirmed .jlm-modal-intro {
	display: none;
}

/* Gravity Forms im Modal */
.lead-modal .gform_wrapper,
.jlm-modal .gform_wrapper {
	margin: 0;
}

.lead-modal .gfield_label,
.jlm-modal .gfield_label {
	font-size: 14px;
	font-weight: 700;
	color: var(--sm-navy);
}

.lead-modal textarea {
	min-height: 100px;
	height: 100px;
	resize: vertical;
}

.lead-modal input::placeholder,
.lead-modal textarea::placeholder {
	color: var(--sm-dash);
	opacity: 1;
}

.lead-modal .gform_button,
.jlm-modal .gform_button,
.gform_wrapper .gform_button {
	padding: 14px 28px;
	border: 0;
	border-radius: var(--sm-radius-s);
	background: var(--sm-navy);
	color: var(--sm-white);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease;
}

.lead-modal .gform_button:hover,
.jlm-modal .gform_button:hover,
.gform_wrapper .gform_button:hover {
	background: var(--sm-ink);
}

.lead-modal .gform_validation_errors {
	display: none;
}

.lead-modal .gfield_error {
	padding: 0;
	border: 0;
	background: transparent;
}

.lead-modal .validation_message {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
}

.lead-modal .gform_confirmation_message {
	font-size: 16px;
	line-height: 1.6;
	color: var(--sm-text);
}

.lead-modal .gform_confirmation_message h2 {
	margin: 0 44px 14px 0;
}

.lead-modal .gform_confirmation_message ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.lead-modal .gform_confirmation_message li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 24px;
}

.lead-modal .gform_confirmation_message li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--sm-blue);
}

.lead-modal .gform_confirmation_message > strong {
	display: block;
	margin: 20px 0 8px;
	color: var(--sm-navy);
}

.lead-modal .gform_confirmation_message .hinweis-box {
	margin: 20px 0 0;
	padding: 15px 18px;
	border-left: 4px solid var(--sm-yellow);
	border-radius: 4px;
	background: var(--sm-bg);
	font-size: 14px;
	line-height: 1.6;
}

.lead-modal .gform_confirmation_message .hinweis-box strong {
	color: var(--sm-navy);
}

/* ==========================================================================
   JOERRENS-PLUGINS (FAQ, Lead Magnets, Newsletter)
   ========================================================================== */

.joerrens-faq {
	margin: 1.5em 0;
}

.joerrens-faq .jfaq-item {
	border-bottom: 1px solid var(--sm-line);
}

.joerrens-faq .jfaq-item:first-child {
	border-top: 1px solid var(--sm-line);
}

.joerrens-faq .jfaq-question {
	position: relative;
	width: 100%;
	padding: 18px 44px 18px 0;
	border: 0;
	background: transparent;
	color: var(--sm-navy);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: color .2s ease;
}

.joerrens-faq .jfaq-question:hover,
.joerrens-faq .jfaq-question:focus {
	color: var(--sm-blue);
}

.joerrens-faq .jfaq-icon {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sm-bg);
	transform: translateY(-50%);
	transition: background-color .2s ease;
}

.joerrens-faq .jfaq-icon::before,
.joerrens-faq .jfaq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--sm-navy);
	transform: translate(-50%, -50%);
}

.joerrens-faq .jfaq-icon::before { width: 12px; height: 2px; }
.joerrens-faq .jfaq-icon::after { width: 2px; height: 12px; transition: transform .2s ease; }

.joerrens-faq .jfaq-question[aria-expanded="true"] .jfaq-icon {
	background: var(--sm-yellow);
}

.joerrens-faq .jfaq-question[aria-expanded="true"] .jfaq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.joerrens-faq .jfaq-answer {
	padding: 0 0 20px;
	font-size: 16px;
	line-height: 1.75;
	animation: sm-fade .25s ease;
}

.joerrens-faq .jfaq-answer p:first-child { margin-top: 0; }
.joerrens-faq .jfaq-answer p:last-child { margin-bottom: 0; }

.jfaq-disclaimer {
	margin-top: 1.2em;
	color: var(--sm-muted);
}

.jlm-modal-intro {
	color: var(--sm-body);
}

.jlm-button-wrapper {
	margin: 30px 0;
}

.jlm-download-button {
	display: inline-block;
	padding: 15px 28px;
	border-radius: var(--sm-radius-s);
	background: var(--sm-navy);
	color: var(--sm-white);
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s var(--sm-ease);
}

.jlm-download-button:hover,
.jlm-download-button:focus {
	background: var(--sm-ink);
	color: var(--sm-white);
	text-decoration: none;
	transform: translateY(-2px);
}

.jlm-tip {
	margin: 60px 0 0;
	padding: 24px 28px;
	border-radius: var(--sm-radius);
	background: var(--sm-bg);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sm-text);
}

.jlm-tip strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sm-navy);
}

.jlm-tip a {
	color: var(--sm-navy);
	font-weight: 600;
}

.sm-newsletter {
	margin: 32px 0 0;
}

/* ==========================================================================
   MARKTSTATISTIK
   ========================================================================== */

.market-statistics section {
	margin: 0 0 28px;
}

.market-statistics h3 {
	margin-top: 0;
}

.market-stats-overview .sm-object__facts {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.market-stats-footer {
	color: var(--sm-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.sm-footer {
	background: var(--sm-ink);
	color: var(--sm-soft);
	font-size: 14px;
	line-height: 1.7;
}

.sm-footer .sm-wrap {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 32px;
}

.sm-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.sm-footer__brand .sm-logo {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 20px;
	color: var(--sm-white);
}

.sm-footer p {
	margin: 0;
}

.sm-footer nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sm-footer__title {
	font-weight: 700;
	color: var(--sm-white);
}

.sm-footer a {
	color: var(--sm-soft);
}

.sm-footer a:hover,
.sm-footer a:focus {
	color: var(--sm-white);
}

.sm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--sm-ink-line);
	font-size: 13px;
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */

@keyframes sm-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sm-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}

@keyframes sm-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

.sm-hero__inner > * {
	animation: sm-rise .7s var(--sm-ease) both;
}

.sm-hero__inner > :nth-child(2) { animation-delay: .08s; }
.sm-hero__inner > :nth-child(3) { animation-delay: .16s; }

.js .sm-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s var(--sm-ease), transform .7s var(--sm-ease);
}

.js .sm-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.js .sm-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
	.sm-nav__toggle {
		display: inline-flex;
	}

	.sm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--sm-gutter) 24px;
		border-bottom: 1px solid var(--sm-line);
		background: var(--sm-white);
		box-shadow: 0 16px 24px rgba(0, 51, 102, .12);
	}

	.sm-nav-open .sm-nav {
		display: flex;
		animation: sm-fade .2s ease;
	}

	.sm-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sm-nav ul li {
		border-bottom: 1px solid var(--sm-line);
	}

	.sm-nav ul a {
		display: block;
		padding: 14px 0;
	}

	.sm-nav ul a::after {
		display: none;
	}

	.sm-nav .sm-btn {
		margin-top: 16px;
	}

	.sm-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.sm-sidebar__sticky {
		position: static;
	}
}

@media (max-width: 960px) {
	.sm-cards,
	.content-promo-grid.cg-cols-3,
	.content-promo-grid.cg-cols-4,
	.sm-wide .content-promo-grid.cg-cols-2,
	.sm-wide .content-promo-grid.cg-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sm-regions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sm-band {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 782px) {
	.admin-bar .sm-header {
		top: 46px;
	}
}

@media (max-width: 680px) {
	:root {
		--sm-gutter: 20px;
	}

	body {
		font-size: 16px;
	}

	h1 { font-size: 30px; }
	h2 { font-size: 24px; }

	.sm-section {
		padding: 56px 0;
	}

	.sm-hero__inner {
		padding-top: 72px;
		padding-bottom: 64px;
	}

	.sm-hero h1 {
		font-size: 36px;
	}

	.sm-hero__text {
		font-size: 17px;
	}

	.sm-intro .sm-prose > h2:first-child {
		font-size: 28px;
	}

	.sm-cards,
	.sm-cards--2,
	.sm-posts,
	.sm-packages,
	.content-promo-grid.cg-cols-2,
	.content-promo-grid.cg-cols-3,
	.content-promo-grid.cg-cols-4,
	.sm-wide .content-promo-grid.cg-cols-2,
	.sm-wide .content-promo-grid.cg-cols-4,
	.sm-linklist,
	.sm-postnav {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-regions,
	.sm-main .sm-regions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sm-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-box {
		padding: 28px 24px;
	}

	.lead-cta {
		padding: 28px 24px;
	}

	.lead-modal-box,
	.jlm-modal-box {
		margin: 0;
		max-height: 100vh;
		min-height: 100vh;
		border-radius: 0;
		padding: 28px 22px;
	}

	.sm-postnav__next {
		text-align: left;
	}

	.sm-panel__sheet {
		top: auto;
		width: 100%;
		height: 92vh;
		border-radius: 18px 18px 0 0;
		transform: translateY(100%);
	}

	.sm-panel.is-open .sm-panel__sheet {
		transform: translateY(0);
	}

	.sm-panel__body {
		padding: 24px 20px 40px;
	}

	.sm-panel__head {
		margin: -24px -20px 20px;
		padding: 24px 20px;
	}

	.sm-logo {
		font-size: 18px;
	}
}