/* ==========================================================================
   StadtLandFluss – Theme-Styles
   Basis: Bootstrap 5.3 Reboot + Grid. Werte aus dem bisherigen Semplice-Layout.
   Semplice-Breakpoints: xs <544 · sm 544–767 · md 768–991 · lg 992–1169 · xl ≥1170
   ========================================================================== */

:root {
	--slf-cream: #FAF5ED;
	--slf-brown: #442F23;
	--slf-green: #51A291;
	--slf-black: #000;
	--slf-font: "Lexend Exa", sans-serif;
	--slf-script: "Montana", cursive;
	--slf-header-h: 166px;
	--slf-pad: 30px;
}

@media (max-width: 543.98px) {
	:root { --slf-pad: 20px; }
}

/* Basis ------------------------------------------------------------------ */

html {
	font-size: 112.5%; /* 18px wie bisher */
	scroll-behavior: smooth;
	scroll-padding-top: var(--slf-header-h);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	font-family: var(--slf-font);
	font-size: 1rem;
	line-height: 1.667;
	color: var(--slf-brown);
	background: var(--slf-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Überlange Wörter/Links umbrechen statt seitlich zu überstehen */
	overflow-wrap: break-word;
}

p { margin: 0 0 1.667rem; }
strong, b { font-weight: 700; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }
address { font-style: normal; margin: 0 0 1.667rem; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.slf-skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 1000;
	padding: .5rem 1rem;
	background: var(--slf-brown);
	color: var(--slf-cream);
}
.slf-skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Raster wie Semplice: max. 1230 px, 30 px Rand, 30 px Spaltenabstand */
.container {
	max-width: 1230px;
	padding-left: var(--slf-pad);
	padding-right: var(--slf-pad);
}
.row { --bs-gutter-x: 30px; }
.text-center { text-align: center; }

/* Kopf ------------------------------------------------------------------- */

.slf-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	padding: 26px 0;
	text-align: center;
	background: url("../img/header-wave.png") 50% 100% / cover no-repeat;
	pointer-events: none;
}
.slf-header__logo {
	display: block;
	width: max-content;
	margin: 0 auto 14px;
	pointer-events: auto;
}
.slf-header__logo img { display: block; width: 90px; height: 100px; }


.admin-bar .slf-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .slf-header { top: 46px; }
}

/* Unterseiten beginnen unter dem Kopf */
body:not(.home) .slf-main { padding-top: var(--slf-header-h); }

/* Hero ------------------------------------------------------------------- */

.slf-hero {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100svh;
	/* Platz für den festen Kopf oben und den Pfeil unten */
	padding: calc(var(--slf-header-h) + 24px) 0 90px;
	overflow: hidden;
	color: var(--slf-cream);
}
.slf-hero__media,
.slf-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.slf-hero__media img {
	object-fit: cover;
	object-position: 50% 0;
	max-width: none;
}
.slf-hero__inner {
	position: relative;
	z-index: 1;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
.slf-hero__inner .row { --bs-gutter-x: 0; }

.slf-hero__stripes {
	display: block;
	margin: 0 auto;
	padding-bottom: 31px;
	width: 232px;
	height: auto;
	box-sizing: content-box;
}
.slf-hero__stripes--bottom { padding-bottom: 0; padding-top: 9px; }

.slf-hero__title {
	margin: 0;
	font-weight: 400;
	/* Schräg wie bisher: −11° um die Mitte, beim Laden in 0,4 s eingedreht.
	   Die Balken darüber/darunter geben die Richtung vor und bleiben gerade. */
	transform: rotate(-11deg);
	transform-origin: center center;
	animation: slf-tilt .4s linear .01s both;
}
@keyframes slf-tilt {
	from { transform: rotate(0deg); }
	to   { transform: rotate(-11deg); }
}
@media (prefers-reduced-motion: reduce) {
	.slf-hero__title { animation: none; }
}
/*
 * Gleiche Zeilenlogik wie im bisherigen Layout: Die Zeile selbst hat die
 * Grundschrift (sans-serif), die Schmuckschrift sitzt als Inline-Text darin.
 * Dadurch ergeben sich exakt die bisherigen Zeilenabstände.
 */
.slf-hero__line {
	display: block;
	font-family: Inter, sans-serif;
}
.slf-hero__line--script {
	margin-bottom: 30px;
	/* Zeilenhöhe in em, damit sie bei kleinerer Schrift mitskaliert */
	font-size: min(2.889rem, 12vw, 13vh);
	line-height: .577em;
}
.slf-hero__line--place {
	font-size: min(2.111rem, 10vw, 9vh);
	line-height: 1.026em;
}
.slf-hero__script { font-family: var(--slf-script); }
.slf-hero__place { font-family: var(--slf-font); }

/* Werte je Breakpoint wie bisher (Semplice); min() greift nur auf kleinen/niedrigen Screens */
@media (min-width: 544px) {
	.slf-hero__line--script { font-size: min(3.889rem, 12vw, 13vh); line-height: .543em; }
	.slf-hero__line--place { font-size: min(2.611rem, 10vw, 9vh); line-height: .979em; }
}
@media (min-width: 768px) {
	.slf-hero__line--script { font-size: min(4.5rem, 12vw, 13vh); line-height: .617em; }
	.slf-hero__line--place { font-size: min(2.667rem, 10vw, 9vh); line-height: 1.042em; }
}
@media (min-width: 992px) {
	.slf-hero__line--script { font-size: min(5.167rem, 12vw, 13vh); line-height: .548em; }
	.slf-hero__line--place { font-size: min(2.333rem, 10vw, 9vh); line-height: 1.405em; }
}
@media (min-width: 1170px) {
	.slf-hero__line--script { font-size: min(5.5rem, 12vw, 13vh); line-height: .556em; }
	.slf-hero__line--place { font-size: min(3.5rem, 10vw, 9vh); line-height: 1.587em; }
}

.slf-hero__more {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 1;
	transform: translateX(-50%);
	padding: 30px;
	line-height: 0;
	color: var(--slf-cream);
}
.slf-hero__more svg { width: 2.944rem; fill: currentColor; transition: transform .3s ease; }
.slf-hero__more:hover svg { transform: translateY(4px); }

/* Text-Bereich ------------------------------------------------------------ */

.slf-intro {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(60px, 9vw, 120px) 0;
}

.slf-content h2 {
	margin: 0 0 1.111rem;
	font-size: 1.667rem;
	line-height: 2.222rem;
	font-weight: 700;
}
.slf-content h3 {
	margin: 0 0 .5rem;
	font-size: 1.222rem;
	line-height: 1.667;
	font-weight: 700;
}
.slf-content ul:not(.slf-social), .slf-content ol { margin: 0 0 1.667rem; padding-left: 1.25em; }
.slf-content > :last-child,
.slf-content .wp-block-group > :last-child { margin-bottom: 0; }

/* Social Icons */
.slf-social {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.slf-social a { display: block; line-height: 0; }
.slf-social svg { width: 26px; height: 26px; fill: var(--slf-brown); transition: fill .2s ease; }
.slf-social a:hover svg { fill: var(--slf-green); }
.slf-social--center { justify-content: center; margin-top: 60px; }
.slf-social--light svg { fill: var(--slf-cream); }
.slf-social--light a:hover svg { fill: var(--slf-brown); }

/* Wellen ------------------------------------------------------------------ */

.slf-wave {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: -3px;
	position: relative;
	z-index: 1;
}
.slf-wave--brown {
	margin: -11px 0 0;
	background: var(--slf-brown);
}

/* Marken-Band ------------------------------------------------------------- */

.slf-brands { background: var(--slf-green); }
.slf-brands__list {
	--slf-cols: 3;
	--slf-gap: 32px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 28px var(--slf-gap);
	margin: 0;
	padding: 24px 0 36px;
	list-style: none;
}
.slf-brands__list li {
	flex: 0 0 calc((100% - (var(--slf-cols) - 1) * var(--slf-gap)) / var(--slf-cols));
	max-width: 150px;
}
.slf-brands__list img { display: block; width: 100%; height: auto; margin: 0 auto; }

@media (min-width: 544px) {
	.slf-brands__list { --slf-cols: 4; --slf-gap: 48px; }
}
/* Ab 1170 px: alle 7 in einer Reihe wie bisher */
@media (min-width: 1170px) {
	.slf-brands__list { --slf-cols: 7; --slf-gap: 3.389rem; padding: 15px 0 29px; }
	.slf-brands__list li { max-width: none; }
}

/* Kontakt ----------------------------------------------------------------- */

.slf-contact {
	position: relative;
	background: var(--slf-green);
	color: var(--slf-cream);
}
.slf-contact__text {
	padding-top: 30px;
	font-size: 1rem;
}
.slf-contact__text p,
.slf-contact__text address,
.slf-contact__title {
	font-size: 1rem;
	line-height: 1.667;
	margin: 0 0 1.667rem;
}
/* „Komm vorbei“ + Leerzeile, wie bisher */
.slf-contact__title { font-weight: 700; margin-bottom: 1.667em; }
.slf-contact__text a { text-decoration: none; }
.slf-contact__text a:hover { text-decoration: underline; }
.slf-contact__text address { margin-bottom: 19px; }
.slf-contact__text .slf-social { padding-bottom: 60px; }

@media (min-width: 768px) {
	.slf-contact__text p,
	.slf-contact__text address,
	.slf-contact__title { font-size: 1.222rem; }
}

.slf-contact__map iframe {
	display: block;
	width: 100%;
	height: 450px;
}
@media (max-width: 767.98px) {
	.slf-contact__map { padding-bottom: 45px; }
}

/* Fuß --------------------------------------------------------------------- */

.slf-footer {
	background: var(--slf-brown);
	color: var(--slf-cream);
	padding: 50px 0 100px;
	text-align: center;
	font-weight: 500;
}
.slf-footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.slf-footer-menu li + li::before { content: "\00a0•\00a0"; }
.slf-footer-menu a { text-decoration: underline; }
.slf-footer-menu a:hover { text-decoration: none; }
@media (max-width: 543.98px) {
	.slf-footer { font-size: .722rem; }
}

.slf-to-top {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 40;
	padding: 10px;
	line-height: 0;
	color: var(--slf-black);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .3s ease;
}
.slf-to-top.is-visible { opacity: 1; transform: none; }
.slf-to-top svg { width: 53px; fill: currentColor; }

/* Seiten (Impressum u. a.) ------------------------------------------------ */

.slf-page__content { padding-top: 0; padding-bottom: 0; }
.slf-page__content > .alignfull:first-child { margin-top: 0; }
.slf-page__content > :not(.alignfull):first-child { margin-top: 60px; }
.slf-page__content > :not(.alignfull):last-child { margin-bottom: 60px; }
.slf-page .wp-block-group { margin-top: 0; margin-bottom: 0; }

/* Beiträge / Archiv (Neuigkeiten) ---------------------------------------- */

.slf-archive { padding-top: 60px; padding-bottom: 90px; }
.slf-archive h1 { font-size: 1.667rem; line-height: 2.222rem; font-weight: 700; margin: 0 0 1.667rem; }
.slf-meta { font-size: .833rem; opacity: .8; margin-bottom: 1rem; }
.slf-teaser { padding-bottom: 1.667rem; margin-bottom: 1.667rem; border-bottom: 1px solid rgba(68, 47, 35, .2); }
.slf-teaser h2 { margin-bottom: .5rem; }
.slf-teaser h2 a { text-decoration: none; }
.slf-thumb { display: block; margin-bottom: 1.667rem; }

/* Sanftes Einblenden (nur mit JS und ohne „weniger Bewegung“) ------------- */

.js [data-slf-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .8s ease, transform .8s ease;
}
.js [data-slf-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js [data-slf-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Niedrige Bildschirme (Handy quer): kompakter Kopf */
@media (max-height: 560px) {
	:root { --slf-header-h: 110px; }
	.slf-header { padding: 12px 0 18px; }
	.slf-header__logo { margin-bottom: 10px; }
	.slf-header__logo img { width: 63px; height: 70px; }
	.slf-hero { padding-bottom: 70px; }
	.slf-hero__stripes { width: 160px; padding-bottom: 18px; }
	.slf-hero__stripes--bottom { padding-bottom: 0; padding-top: 6px; }
	.slf-hero__more { padding: 18px; }
}
