/* Schuhhaus24 Content - front-end styles for the custom shortcodes. */

.sh24-claim {
	display: inline-block;
}

.sh24-empty {
	opacity: 0.7;
	font-style: italic;
}

/* Branch grid ([filialen]) */
.sh24-filialen {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sh24-cols-1 { grid-template-columns: 1fr; }
.sh24-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sh24-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sh24-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.sh24-filialen { grid-template-columns: 1fr; }
}

/* Branch card ([filialen]) */
.sh24-filiale-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--global-palette7, #edf2f7);
	transition: border-color 0.18s ease;
}

a.sh24-filiale-card:hover {
	border-color: var(--global-palette1, #d4a027);
}

.sh24-filiale-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f1ece6;
}

.sh24-filiale-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sh24-filiale-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 700;
	color: var(--global-palette1, #d4a027);
	background: linear-gradient(135deg, #fbf9f6, #efe7df);
}

.sh24-filiale-body {
	padding: 1.1rem 1.25rem 1.3rem;
}

.sh24-filiale-name {
	margin: 0 0 0.25rem;
}

.sh24-filiale-city {
	margin: 0 0 0.6rem;
	opacity: 0.8;
}

.sh24-filiale-link {
	font-weight: 600;
	color: var(--global-palette1, #d4a027);
}

/* Branch details ([filialen_detail]) */
.sh24-filialen-detail {
	display: grid;
	gap: 2.5rem;
}

.sh24-filiale-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2rem;
	align-items: center;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--global-palette7, #edf2f7);
	scroll-margin-top: 90px;
}

.sh24-filiale-detail:nth-child(even) .sh24-filiale-media {
	order: 2;
}

.sh24-filiale-media {
	aspect-ratio: 4 / 3;
	height: 100%;
	background: #f1ece6;
}

.sh24-filiale-info {
	padding: 1.75rem 2rem;
}

.sh24-filiale-detail p {
	margin: 0.25rem 0;
}

.sh24-filiale-hours {
	margin-top: 0.6rem;
	line-height: 1.6;
}

.sh24-filiale-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.1rem;
}

.sh24-btn {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.sh24-btn-primary {
	background: var(--global-palette1, #d4a027);
	color: var(--global-palette3, #1a202c);
	border: 2px solid var(--global-palette1, #d4a027);
}

.sh24-btn-ghost {
	background: transparent;
	color: var(--global-palette1, #d4a027);
	border: 2px solid var(--global-palette1, #d4a027);
}

.sh24-btn:hover {
	opacity: 0.85;
}

@media (max-width: 768px) {
	.sh24-filiale-detail {
		grid-template-columns: 1fr;
	}
	.sh24-filiale-detail:nth-child(even) .sh24-filiale-media {
		order: 0;
	}
}

/* News ([aktuelles]) - compact cards like the location cards */
.sh24-aktuelles {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.sh24-aktuelles-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--global-palette7, #edf2f7);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.18s ease;
}

.sh24-aktuelles-item:hover {
	border-color: var(--global-palette1, #d4a027);
}

.sh24-aktuelles-body {
	padding: 0.8rem 1rem 1rem;
}

.sh24-aktuelles-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f1ece6;
}

.sh24-aktuelles-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Site logo used as default image: contained on its own white background,
   no padding so the card shows no visible frame around the logo. */
.sh24-img-logo {
	object-fit: contain !important;
	padding: 0;
	background: #fff;
}

.sh24-aktuelles-title {
	margin: 0 0 0.2rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.sh24-aktuelles-date {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	opacity: 0.7;
}

.sh24-aktuelles-excerpt {
	font-size: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sh24-aktuelles-more {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Highlighted posts ([highlights] / flagged in [aktuelles]) */
.sh24-aktuelles-item.sh24-highlight {
	position: relative;
	border: 2px solid var(--global-palette1, #d4a027);
	border-radius: 12px;
	background: #fff;
}

.sh24-aktuelles-thumb {
	position: relative;
	display: block;
}

.sh24-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	background: var(--global-palette1, #d4a027);
	color: var(--global-palette3, #1a202c);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
}

.sh24-badge-flat {
	position: static;
	display: inline-block;
	margin-bottom: 0.5rem;
}

/* Highlights section ([highlights]) - brand (gold) accent */
.sh24-highlights-section {
	--sh24-brand: var(--global-palette1, #d4a027);
	margin-bottom: 2.75rem;
}

.sh24-section-title {
	display: inline-block;
	margin: 0 0 1.1rem;
	color: var(--sh24-brand, #d4a027);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom: 3px solid var(--sh24-brand, #d4a027);
	padding-bottom: 0.15rem;
}

/* Highlight = full-width hero banner */
.sh24-heroes {
	display: grid;
	gap: 1.25rem;
}

.sh24-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	border-radius: 14px;
	overflow: hidden;
	background-color: var(--global-palette4, #2d3748);
	background-size: cover;
	background-position: center;
	text-decoration: none;
	color: #fff;
}

.sh24-hero--nobg {
	background-image: linear-gradient(135deg, var(--global-palette1, #d4a027), var(--global-palette2, #b8891e));
}

.sh24-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%);
}

.sh24-hero-content {
	position: relative;
	padding: 2.25rem 2.5rem;
	max-width: 640px;
}

.sh24-hero-badge {
	position: static;
	display: inline-block;
	margin-bottom: 0.85rem;
	background: var(--sh24-brand, #d4a027);
	color: var(--global-palette3, #1a202c);
	font-size: 0.85rem;
}

.sh24-hero-title {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.12;
}

.sh24-hero-text {
	margin: 0 0 1.2rem;
	max-width: 48ch;
	font-size: 1.05rem;
	opacity: 0.95;
}

.sh24-hero-cta {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	background: var(--sh24-brand, #d4a027);
	color: var(--global-palette3, #1a202c);
	font-weight: 700;
	transition: opacity 0.15s ease;
}

.sh24-hero:hover .sh24-hero-cta {
	opacity: 0.9;
}

@media (max-width: 600px) {
	.sh24-hero {
		min-height: 260px;
	}
	.sh24-hero-content {
		padding: 1.5rem;
	}
}
