/* ==========================================================================
   LRS Segeln – Joomla 5 / 6 Site-Template · v1.1 „Regatta“
   Lindower Regattasegler e.V. · Vereinsfarbe #2B5AC5
   Klar, kantig, sportlich: Condensed-Überschriften, feine Linien, wenig Effekte.
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-freundlich) ---------- */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-sc-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-sc-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); }
@font-face { font-family: "LRS Playfair"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-600.woff2") format("woff2"); }
@font-face { font-family: "LRS Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "LRS Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
	/* werden in index.php aus den Template-Parametern überschrieben */
	--lrs-brand: #2b5ac5;
	--lrs-brand-600: #234aa2;
	--lrs-brand-800: #18326c;
	--lrs-brand-900: #0f1f45;
	--lrs-brand-300: #8aa6e2;
	--lrs-brand-50: #f0f4fc;
	--lrs-accent: #f2b33d;
	--lrs-accent-50: #fcf0d8;
	--lrs-cta-bg: #f2b33d;
	--lrs-cta-fg: #0f1f45;
	--lrs-tag-bg: #f2b33d;
	--lrs-tag-fg: #0f1f45;

	--lrs-bg: #f4f7fb; /* Fallback, s. --lrs-soft */
	--lrs-band: #eef1f5;
	--lrs-surface: #ffffff;
	--lrs-ink: #111a2e;
	--lrs-text: #2a3446;
	--lrs-muted: #637085;
	--lrs-line: #dce2ea;

	--lrs-radius: 4px;
	--lrs-radius-sm: 3px;
	--lrs-shadow: 0 1px 2px rgba(17, 26, 46, .05);
	--lrs-shadow-lg: 0 12px 32px -12px rgba(17, 26, 46, .28);

	--lrs-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--lrs-font-head: "Barlow Semi Condensed", "Arial Narrow", "Inter", sans-serif;
	--lrs-container: 1240px;
	--lrs-gutter: clamp(16px, 4vw, 32px);
	--lrs-ease: cubic-bezier(.2, .7, .2, 1);
	--lrs-overlap: clamp(56px, 7vw, 96px);
	--lrs-soft: color-mix(in srgb, var(--lrs-brand) 3%, #fafbfd);
	--lrs-main-bg: #ffffff;
	--lrs-footer-head: color-mix(in srgb, var(--lrs-brand) 35%, #fff);
	--lrs-footer-hover: #ffffff;
	--lrs-news-bg-top: color-mix(in srgb, var(--lrs-brand) 9%, #fff);
	--lrs-news-bg: color-mix(in srgb, var(--lrs-brand) 15%, #fff);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0; overflow-x: clip;
	font-family: var(--lrs-font); font-size: 1rem; line-height: 1.65;
	color: var(--lrs-text); background: var(--lrs-soft, var(--lrs-bg));
	-webkit-font-smoothing: antialiased;
}
img, video, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }

a { color: var(--lrs-brand); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s; }
a:hover { color: var(--lrs-brand-800); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lrs-font-head); font-weight: 600; color: var(--lrs-ink);
	line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

hr { border: 0; border-top: 1px solid var(--lrs-line); margin: 1.5rem 0; opacity: 1; }
:focus-visible { outline: 2px solid var(--lrs-brand); outline-offset: 2px; }

.visually-hidden, .element-invisible {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.lrs-container { width: 100%; max-width: var(--lrs-container); margin-inline: auto; padding-inline: var(--lrs-gutter); }
.lrs-skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: #fff; color: var(--lrs-ink); padding: .6rem 1rem; box-shadow: var(--lrs-shadow-lg); }
.lrs-skip:focus { top: 1rem; }

/* ---------- Topbar ---------- */
.lrs-topbar { background: var(--lrs-brand-900); color: #c9d3e6; font-size: .85rem; }
.lrs-topbar .lrs-container { display: flex; gap: 1rem; justify-content: flex-end; align-items: center; min-height: 36px; }
.lrs-topbar a { color: #fff; }
.lrs-topbar p { margin: 0; }

/* ==========================================================================
   Header – eine schlanke Kopfleiste: Logo · Name · Menü · Button
   ========================================================================== */
.lrs-container--wide { max-width: 1440px; }

.lrs-header {
	background: var(--lrs-brand); color: #fff; z-index: 60;
	border-bottom: 3px solid var(--lrs-accent);
	transition: box-shadow .25s;
}
.has-sticky .lrs-header { position: sticky; top: 0; }
.lrs-header.is-stuck { box-shadow: 0 8px 24px -10px rgba(15, 31, 69, .6); }

.lrs-header__inner {
	display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
	min-height: 84px; transition: min-height .25s var(--lrs-ease);
}
.lrs-header.is-stuck .lrs-header__inner { min-height: 62px; }

/* Marke */
.lrs-brand { display: inline-flex; align-items: center; gap: .8rem; flex: none; color: #fff; text-decoration: none; min-width: 0; }
.lrs-brand:hover { color: #fff; }
.lrs-brand__logo { display: block; height: 62px; width: auto; max-width: 240px; object-fit: contain; transition: height .25s var(--lrs-ease); }
.lrs-header.is-stuck .lrs-brand__logo { height: 46px; }
.lrs-brand__mark { flex: none; display: grid; place-items: center; }
.lrs-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.lrs-brand__title { font: 700 1.45rem/1.02 var(--lrs-font-head); letter-spacing: .01em; white-space: nowrap; }
.brandfont-playfair .lrs-brand__title, .brandfont-playfair .lrs-footer__title { font-family: "LRS Playfair", Georgia, serif; font-weight: 600; letter-spacing: .005em; }
.brandfont-playfair .lrs-brand__title { font-size: 1.55rem; }
.brandfont-montserrat .lrs-brand__title, .brandfont-montserrat .lrs-footer__title { font-family: "LRS Montserrat", "Inter", sans-serif; font-weight: 600; letter-spacing: -.005em; }
.brandfont-montserrat .lrs-brand__title { font-size: 1.28rem; }
.brandfont-raleway .lrs-brand__title, .brandfont-raleway .lrs-footer__title { font-family: "LRS Raleway", "Inter", sans-serif; font-weight: 600; letter-spacing: .01em; }
.brandfont-raleway .lrs-brand__title { font-size: 1.4rem; }
.lrs-brand__slogan { font-size: .78rem; opacity: .78; margin-top: .3rem; white-space: nowrap; transition: opacity .2s, max-height .25s; max-height: 2em; overflow: hidden; }
.lrs-header.is-stuck .lrs-brand__slogan { opacity: 0; max-height: 0; margin-top: 0; }

/* Aktionen rechts */
.lrs-header__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.lrs-header__right { display: flex; align-items: center; gap: .75rem; }
.lrs-header__right a { color: #fff; }
.lrs-header__right p { margin: 0; }
.lrs-header__extra { padding-bottom: 1rem; }

.lrs-cta {
	display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
	padding: .7rem 1.15rem; border-radius: var(--lrs-radius-sm);
	background: var(--lrs-cta-bg); color: var(--lrs-cta-fg);
	font: 700 .9rem/1 var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
	transition: background-color .15s, color .15s;
}
.lrs-cta:hover, .lrs-cta:focus-visible { background: color-mix(in srgb, var(--lrs-cta-bg) 82%, #fff); color: var(--lrs-cta-fg); }
.lrs-cta--inmenu { display: none; }

/* ---------- Navigation ---------- */
.lrs-nav { flex: 1; display: flex; justify-content: flex-end; align-self: stretch; }
.lrs-nav ul { list-style: none; margin: 0; padding: 0; }
.lrs-nav > ul, .lrs-nav .mod-menu { display: flex; flex-wrap: nowrap; align-items: stretch; }
.lrs-nav li { position: relative; }
.lrs-nav > ul > li { display: flex; }

.lrs-nav > ul > li > a,
.lrs-nav > ul > li > span {
	display: inline-flex; align-items: center; gap: .35rem; padding: 0 .8rem;
	font: 600 .95rem/1 var(--lrs-font-head); text-transform: uppercase; letter-spacing: .06em;
	color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; position: relative;
	transition: color .15s;
}
/* Unterstreichung von der Mitte aus */
.lrs-nav > ul > li > a::before,
.lrs-nav > ul > li > span::before {
	content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px;
	background: #fff; transform: scaleX(0); transition: transform .25s var(--lrs-ease);
}
.lrs-nav > ul > li:hover > a::before,
.lrs-nav > ul > li:hover > span::before,
.lrs-nav > ul > li:focus-within > a::before { transform: scaleX(1); opacity: .5; }
.lrs-nav > ul > li.active > a::before,
.lrs-nav > ul > li.current > a::before,
.lrs-nav > ul > li.active > span::before { transform: scaleX(1); opacity: 1; background: var(--lrs-accent); }

.lrs-nav li.parent > a::after, .lrs-nav li.parent > span::after,
.lrs-nav li.deeper > a::after, .lrs-nav li.deeper > span::after {
	content: ""; width: .36em; height: .36em; margin-left: .1rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .75;
}

/* Dropdown */
.lrs-nav ul ul {
	position: absolute; top: calc(100% + 3px); left: 0; min-width: 240px; z-index: 70;
	padding: .35rem 0; background: #fff; border-top: 3px solid var(--lrs-accent);
	box-shadow: var(--lrs-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.lrs-nav ul ul::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
.lrs-nav > ul > li:nth-last-child(-n+2) > ul,
.lrs-nav li.lrs-dd-right > ul { left: auto; right: 0; }
.lrs-nav li:hover > ul, .lrs-nav li:focus-within > ul, .lrs-nav li.is-open > ul { opacity: 1; visibility: visible; transform: none; }
.lrs-nav ul ul ul { top: -.35rem; left: 100%; }

.lrs-nav ul ul a, .lrs-nav ul ul span {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	padding: .6rem 1.1rem; color: var(--lrs-ink); text-decoration: none; font-size: .95rem; font-weight: 500;
	border-left: 3px solid transparent;
}
.lrs-nav ul ul a:hover, .lrs-nav ul ul li.active > a { background: var(--lrs-band); color: var(--lrs-brand); border-left-color: var(--lrs-brand); }
.lrs-nav ul ul li.parent > a::after { transform: rotate(-45deg); }
.lrs-subtoggle { display: none; }

/* Burger */
.lrs-burger {
	display: none; align-items: center; gap: .6rem;
	background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--lrs-radius-sm);
	padding: .6rem .85rem; font: 600 .95rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .07em; cursor: pointer;
}
.lrs-burger__bars { display: grid; gap: 4px; width: 18px; }
.lrs-burger__bars span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.lrs-burger[aria-expanded="true"] .lrs-burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lrs-burger[aria-expanded="true"] .lrs-burger__bars span:nth-child(2) { opacity: 0; }
.lrs-burger[aria-expanded="true"] .lrs-burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* etwas enger, bevor das Burger-Menü greift */
@media (max-width: 1360px) {
	.lrs-nav > ul > li > a, .lrs-nav > ul > li > span { padding: 0 .6rem; letter-spacing: .04em; font-size: .92rem; }
	.lrs-nav > ul > li > a::before, .lrs-nav > ul > li > span::before { left: .6rem; right: .6rem; }
	.lrs-brand__slogan { display: none; }
}

/* ---------- Mobile / Tablet: Burger-Menü ---------- */
@media (max-width: 1199.98px) {
	.lrs-header__inner, .lrs-header.is-stuck .lrs-header__inner { min-height: 64px; }
	.lrs-brand__logo { height: 48px; }
	.lrs-header.is-stuck .lrs-brand__logo { height: 40px; }
	.lrs-brand { flex: 1 1 auto; min-width: 0; }
	.lrs-brand__logo { max-width: 34vw; }
	.lrs-brand__text { min-width: 0; flex: 1 1 auto; }
	.lrs-brand__title { font-size: clamp(1rem, 4vw, 1.35rem) !important; white-space: normal; line-height: 1.1; overflow-wrap: anywhere; }
	.lrs-header__actions { margin-left: auto; flex: none; }
	.lrs-burger { display: inline-flex; }

	.lrs-nav {
		position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px;
		background: var(--lrs-brand-800); box-shadow: 0 20px 36px -16px rgba(0, 0, 0, .5);
		max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain;
		padding: .25rem var(--lrs-gutter) 1.25rem; display: none;
	}
	.lrs-nav.is-open { display: block; }
	.lrs-nav > ul, .lrs-nav .mod-menu { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
	.lrs-nav > ul > li { display: block; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.lrs-nav > ul > li > a, .lrs-nav > ul > li > span { display: flex; min-height: 50px; padding: 0 3.25rem 0 0; white-space: normal; font-size: .98rem; letter-spacing: .06em; }
	.lrs-nav > ul > li > a::before, .lrs-nav > ul > li > span::before { display: none; }
	.lrs-nav > ul > li.active > a, .lrs-nav > ul > li.current > a { box-shadow: inset 3px 0 0 #fff; padding-left: .8rem; }
	.lrs-nav li.parent > a::after, .lrs-nav li.parent > span::after, .lrs-nav li.deeper > a::after, .lrs-nav li.deeper > span::after { display: none; }

	.lrs-nav ul ul, .lrs-nav ul ul ul {
		position: static; min-width: 0; box-shadow: none; background: rgba(0, 0, 0, .18); border-top: 0;
		padding: .25rem 0; margin: 0 0 .75rem; opacity: 1; visibility: visible; transform: none; display: none;
	}
	.lrs-nav ul ul::before { display: none; }
	.lrs-nav li:hover > ul, .lrs-nav li:focus-within > ul { display: none; }
	.lrs-nav li.is-open > ul { display: block; }
	.lrs-nav ul ul a, .lrs-nav ul ul span { color: #dfe6f5; padding: .65rem 1rem; border-left: 0; }
	.lrs-nav ul ul a:hover, .lrs-nav ul ul li.active > a { background: rgba(255, 255, 255, .08); color: #fff; }

	.lrs-subtoggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 4px;
		width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--lrs-radius-sm); background: transparent; color: #fff; cursor: pointer;
	}
	.lrs-subtoggle::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.lrs-nav li.is-open > .lrs-subtoggle::before { transform: translateY(2px) rotate(-135deg); }
	.lrs-nav ul ul .lrs-subtoggle { top: 2px; width: 38px; height: 38px; }
}
@media (max-width: 640px) {
	.lrs-header__actions .lrs-cta { display: none; }
	.lrs-cta--inmenu { display: flex; justify-content: center; margin-top: 1rem; padding: .9rem; }
	.lrs-brand { gap: .55rem; }
	.lrs-brand__logo, .lrs-header.is-stuck .lrs-brand__logo { height: 40px; max-width: 30vw; }
	.lrs-brand__title { font-size: clamp(.92rem, 4.2vw, 1.1rem) !important; }
	.lrs-burger { padding: .55rem .7rem; }
}

.lrs-banner { padding-block: 1.5rem 0; }

/* ==========================================================================
   Abschnitts-Überschriften
   ========================================================================== */
.lrs-section-head { margin-bottom: 1.5rem; }
.lrs-section-title {
	display: flex; align-items: center; gap: 1rem; margin: 0;
	font: 700 clamp(1.35rem, 2vw, 1.65rem)/1.1 var(--lrs-font-head);
	text-transform: uppercase; letter-spacing: .06em; color: var(--lrs-ink);
}
.lrs-section-title::before { content: ""; flex: none; width: 6px; height: 1.15em; background: var(--lrs-brand); }
.lrs-section-title::after { content: ""; flex: 1; height: 1px; background: var(--lrs-line); }

/* ==========================================================================
   News & aktuelle Infos – helles Band mit Welle
   ========================================================================== */
.lrs-news {
	position: relative; isolation: isolate; display: flow-root;
	background: linear-gradient(180deg, var(--lrs-news-bg-top) 0%, var(--lrs-news-bg) 100%);
	padding-block: clamp(2.25rem, 4.5vw, 3.5rem) 0;
	color: var(--lrs-text);
}
/* Welle am unteren Rand: hintere Welle (Vereinsblau, transparent) + vordere Welle (helle Folgefläche) */
.lrs-news::before,
.lrs-news::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; pointer-events: none;
	height: clamp(48px, 7vw, 110px);
	-webkit-mask-size: 100% 100%; mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.lrs-news::before {
	z-index: 0; background: var(--lrs-brand); opacity: .12;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C180,18 360,14 560,38 C760,62 940,78 1140,56 C1280,40 1370,30 1440,34 L1440,90 L0,90 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C180,18 360,14 560,38 C760,62 940,78 1140,56 C1280,40 1370,30 1440,34 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
}
.lrs-news::after {
	z-index: 1; background: var(--lrs-main-bg);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,66 C220,40 430,82 660,64 C880,46 1060,36 1260,58 C1340,67 1400,70 1440,66 L1440,90 L0,90 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,66 C220,40 430,82 660,64 C880,46 1060,36 1260,58 C1340,67 1400,70 1440,66 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
}
.lrs-news > .lrs-container { position: relative; z-index: 2; }
.lrs-news .lrs-section-head { margin-bottom: 1.75rem; }
.lrs-news .lrs-section-title { color: var(--lrs-ink); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.lrs-news .lrs-section-title::before { background: var(--lrs-accent); width: 8px; }
.lrs-news .lrs-section-title::after { background: color-mix(in srgb, var(--lrs-brand) 22%, transparent); }
.lrs-news__tag {
	flex: none; padding: .3rem .6rem; border-radius: var(--lrs-radius-sm);
	background: var(--lrs-tag-bg); color: var(--lrs-tag-fg);
	font: 700 .78rem/1 var(--lrs-font-head); letter-spacing: .1em; text-transform: uppercase;
}
.lrs-news .lrs-card {
	color: var(--lrs-text);
	border: 1px solid color-mix(in srgb, var(--lrs-brand) 14%, #fff); border-top: 4px solid var(--lrs-accent);
	box-shadow: 0 14px 34px -20px rgba(15, 31, 69, .35);
	transition: transform .2s var(--lrs-ease), box-shadow .2s;
}
.lrs-news .lrs-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(15, 31, 69, .45); }
.lrs-news .lrs-card--blue { color: #e9eefa; background: var(--lrs-brand); border-color: var(--lrs-brand); border-top-color: var(--lrs-accent); }
.lrs-news .lrs-card--sand { border-color: color-mix(in srgb, var(--lrs-accent) 45%, #fff); border-top-color: var(--lrs-brand); }
.lrs-news__grid,
.lrs-news__top:last-child { position: relative; z-index: 2; margin-bottom: calc(var(--lrs-overlap) * -1); }
.lrs-news__top:has(+ .lrs-news__grid) { margin-bottom: 1.5rem; }
.lrs-news + .lrs-main { padding-top: calc(var(--lrs-overlap) + clamp(2rem, 4vw, 3rem)); }

.lrs-news__top { margin-bottom: 1.5rem; }
.lrs-news__grid, .lrs-bottom__grid { display: grid; gap: clamp(16px, 2vw, 24px); align-items: start; }
.lrs-cols-1 { grid-template-columns: 1fr; }
.lrs-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lrs-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lrs-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lrs-news__col, .lrs-bottom__col { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); min-width: 0; }
.lrs-bottom__col > .lrs-card { flex: 1; }
.lrs-bottom__grid { align-items: stretch; }

/* ---------- Modul-Karte ---------- */
.lrs-card {
	background: var(--lrs-surface); border: 1px solid var(--lrs-line); border-radius: var(--lrs-radius);
	box-shadow: var(--lrs-shadow); padding: 1.25rem 1.3rem 1.35rem; overflow: hidden;
}
.lrs-card__title {
	margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--lrs-line);
	font: 700 1.05rem/1.2 var(--lrs-font-head); text-transform: uppercase; letter-spacing: .07em; color: var(--lrs-brand);
}
.lrs-card__body { font-size: .95rem; }
.lrs-card__body > :last-child { margin-bottom: 0; }
.lrs-card__body img, .lrs-card__body video, .lrs-card__body iframe { border-radius: var(--lrs-radius-sm); }
.lrs-card__body video, .lrs-card__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; display: block; }
.lrs-card__body ul { padding-left: 1.1rem; }
.lrs-card__body ul.mod-menu, .lrs-card__body ul.mod-list, .lrs-card__body ul.mod-articles { list-style: none; padding: 0; margin: 0; }
.lrs-card__body ul.mod-menu li a, .lrs-card__body ul.mod-list li a {
	display: flex; align-items: center; justify-content: space-between; gap: .6rem;
	padding: .6rem 0; border-bottom: 1px solid var(--lrs-line);
	color: var(--lrs-ink); text-decoration: none; font-weight: 500;
}
.lrs-card__body ul.mod-menu li:last-child a, .lrs-card__body ul.mod-list li:last-child a { border-bottom: 0; }
.lrs-card__body ul.mod-menu li a::after, .lrs-card__body ul.mod-list li a::after {
	content: ""; flex: none; width: .45em; height: .45em; border-right: 2px solid var(--lrs-brand); border-top: 2px solid var(--lrs-brand); transform: rotate(45deg); transition: transform .15s;
}
.lrs-card__body ul.mod-menu li a:hover, .lrs-card__body ul.mod-list li a:hover { color: var(--lrs-brand); }
.lrs-card__body ul.mod-menu li a:hover::after, .lrs-card__body ul.mod-list li a:hover::after { transform: translateX(3px) rotate(45deg); }

/* Varianten über Modulklasse: " lrs-card--blue" · " lrs-card--sand" · " lrs-card--flat" */
.lrs-card--blue { background: var(--lrs-brand); border-color: var(--lrs-brand); color: #e9eefa; }
.lrs-card--blue .lrs-card__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .25); }
.lrs-card--blue h1, .lrs-card--blue h2, .lrs-card--blue h3, .lrs-card--blue h4 { color: #fff; }
.lrs-card--blue a { color: #fff; }
.lrs-card--sand { background: var(--lrs-accent-50); border-color: var(--lrs-accent); }
.lrs-card--flat { border: 0; box-shadow: none; background: transparent; padding: 0; }

/* ==========================================================================
   Hauptbereich
   ========================================================================== */
.lrs-main { padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); outline: none; background: var(--lrs-main-bg); }
.lrs-layout { display: grid; gap: clamp(24px, 3vw, 40px); }
.lrs-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.lrs-content { min-width: 0; }
.lrs-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.lrs-main-top, .lrs-main-bottom { display: grid; gap: 24px; margin-block: 0 2rem; }
.lrs-main-bottom { margin-block: 2rem 0; }

.lrs-breadcrumbs { margin-bottom: 1.25rem; font-size: .85rem; }
.lrs-breadcrumbs .breadcrumb { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; margin: 0; background: none; }
.lrs-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 .45rem; color: var(--lrs-line); float: none; }
.lrs-breadcrumbs a { color: var(--lrs-muted); text-decoration: none; }
.lrs-breadcrumbs a:hover { color: var(--lrs-brand); }

/* ==========================================================================
   Beitrags-Listing
   ========================================================================== */
.lrs-blog__desc { margin-bottom: 2rem; color: var(--lrs-muted); max-width: 70ch; }
.lrs-empty { padding: 2rem; border: 1px solid var(--lrs-line); text-align: center; color: var(--lrs-muted); }

.lrs-lead { display: grid; gap: clamp(20px, 2.4vw, 28px); margin-bottom: clamp(20px, 2.4vw, 28px); }
.lrs-grid { display: grid; gap: clamp(20px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

.lrs-post {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--lrs-surface); border: 1px solid var(--lrs-line); border-radius: var(--lrs-radius); overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.lrs-post:hover { border-color: #c5cfdc; box-shadow: 0 10px 28px -16px rgba(17, 26, 46, .35); }
.lrs-post.system-unpublished { opacity: .65; outline: 2px dashed var(--lrs-accent); }

.lrs-post__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--lrs-brand-800); }
.lrs-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--lrs-ease); }
.lrs-post:hover .lrs-post__media img { transform: scale(1.03); }
.lrs-post__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); }

.lrs-post__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.lrs-post__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .45rem;
	font: 600 .8rem/1.3 var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--lrs-muted);
}
.lrs-post__cat { color: var(--lrs-brand); }
.lrs-post__meta time + .lrs-post__cat::before { content: "·"; margin-right: .6rem; color: var(--lrs-muted); }

.lrs-post__title { font-size: 1.4rem; font-weight: 600; line-height: 1.15; margin: 0 0 .55rem; }
.lrs-post__title a { color: var(--lrs-ink); text-decoration: none; }
.lrs-post__title a:hover { color: var(--lrs-brand); }
.lrs-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.lrs-post__teaser { margin: 0 0 1rem; color: var(--lrs-muted); font-size: .94rem; }
.lrs-post__intro { margin-bottom: 1rem; font-size: .95rem; }
.lrs-post__intro video, .lrs-post__intro iframe { position: relative; z-index: 2; width: 100%; aspect-ratio: 16 / 9; height: auto; }

.lrs-post__more {
	position: relative; z-index: 2; margin-top: auto; align-self: flex-start;
	display: inline-flex; align-items: center; gap: .35rem;
	font: 700 .88rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em;
	color: var(--lrs-brand); text-decoration: none;
}
.lrs-post__more svg { transition: transform .2s; }
.lrs-post:hover .lrs-post__more svg { transform: translateX(3px); }

/* Top-Beitrag */
@media (min-width: 900px) {
	.lrs-post--lead { flex-direction: row; }
	.lrs-post--lead .lrs-post__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
	.lrs-post--lead .lrs-post__body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
	.lrs-post--lead .lrs-post__title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; }
	.lrs-post--lead .lrs-post__teaser { font-size: 1rem; }
	.lrs-post--lead .lrs-post__more {
		margin-top: .5rem; padding: .75rem 1.25rem; border-radius: var(--lrs-radius-sm);
		background: var(--lrs-brand); color: #fff;
	}
	.lrs-post--lead .lrs-post__more:hover { background: var(--lrs-brand-800); color: #fff; }
	.lrs-post--lead.lrs-post--noimg .lrs-post__media { flex-basis: 30%; min-height: 0; }
	/* weitere Top-Beiträge abwechselnd gespiegelt */
	.lrs-lead .lrs-post--lead:nth-child(even) { flex-direction: row-reverse; }
}

.lrs-morelinks { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--lrs-line); border-radius: var(--lrs-radius); }
.lrs-morelinks ol, .lrs-morelinks ul { margin: 0; padding-left: 1.2rem; }
.lrs-morelinks li { padding: .25rem 0; }

/* Pagination */
.lrs-pagination { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--lrs-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.lrs-pagination__counter { margin: 0; font: 600 .85rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--lrs-muted); }
.lrs-pagination .pagination { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.lrs-pagination .page-link {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .7rem; margin: 0;
	border: 1px solid var(--lrs-line); border-radius: var(--lrs-radius-sm) !important; background: #fff;
	color: var(--lrs-ink); font: 600 1rem var(--lrs-font-head); text-decoration: none; transition: all .15s;
}
.lrs-pagination a.page-link:hover { border-color: var(--lrs-brand); color: var(--lrs-brand); background: #fff; }
.lrs-pagination .page-item.active .page-link, .lrs-pagination .page-link[aria-current] { background: var(--lrs-brand); border-color: var(--lrs-brand); color: #fff; }
.lrs-pagination .page-item.disabled .page-link { opacity: .45; }
.lrs-pagination .icon-angle-left::before { content: "‹"; }
.lrs-pagination .icon-angle-right::before { content: "›"; }
.lrs-pagination .icon-angle-double-left::before { content: "«"; }
.lrs-pagination .icon-angle-double-right::before { content: "»"; }
.lrs-pagination [class^="icon-"] { font-style: normal; font-size: 1.15rem; line-height: 1; }

/* ==========================================================================
   Einzelbeitrag & allgemeiner Inhalt
   ========================================================================== */
.com-content-article, .item-page { max-width: 900px; margin-inline: auto; background: #fff; border: 1px solid var(--lrs-line); border-radius: var(--lrs-radius); padding: clamp(1.25rem, 4vw, 2.75rem); }
.lrs-layout--sidebar .com-content-article, .lrs-layout--sidebar .item-page { max-width: none; }
.item-page .page-header h1, .item-page .page-header h2 { margin-bottom: .35rem; }
.item-page .article-info, .com-content-article .article-info {
	display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--lrs-line);
	font: 600 .82rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--lrs-muted);
}
.item-page .article-info dt { display: none; }
.item-page .article-info dd { margin: 0; }
.com-content-article__body, .item-page [itemprop="articleBody"] { overflow-wrap: break-word; }
.com-content-article__body::after, .item-page [itemprop="articleBody"]::after { content: ""; display: table; clear: both; }
.item-page img, .item-page video, .item-page iframe { border-radius: var(--lrs-radius-sm); }
@media (max-width: 640px) {
	.item-page img[style*="float"], .lrs-card img[style*="float"] { float: none !important; display: block; width: 100% !important; padding: 0 !important; margin: 0 0 1rem; }
}
.pagenavigation .pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; }

blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--lrs-brand); color: var(--lrs-ink); font-size: 1.08rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--lrs-line); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--lrs-ink); font: 600 .9rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--lrs-ink); }
.table-responsive, .lrs-scroll-x { overflow-x: auto; }

.lrs-btn, .btn-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	padding: .7rem 1.3rem; border-radius: var(--lrs-radius-sm); border: 0;
	background: var(--lrs-brand); color: #fff !important; text-decoration: none;
	font: 700 .92rem var(--lrs-font-head); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
	transition: background-color .15s;
}
.lrs-btn:hover, .btn-primary:hover, .btn-primary:focus { background: var(--lrs-brand-800); }
.btn { border-radius: var(--lrs-radius-sm); }
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], textarea, select {
	border-radius: var(--lrs-radius-sm); border: 1px solid #c9d1dc; padding: .6rem .8rem; font: inherit; background: #fff; color: var(--lrs-ink);
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
	border-color: var(--lrs-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lrs-brand) 18%, transparent); outline: none;
}

/* Unterer Bereich */
.lrs-bottom { background: var(--lrs-band); border-top: 1px solid var(--lrs-line); padding-block: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   Footer
   ========================================================================== */
.lrs-footer { color: #b9c4da; background: var(--lrs-brand-900); border-top: 4px solid var(--lrs-brand); font-size: .95rem; }
.lrs-footer__main { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.lrs-footer__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1.2fr 1fr 1.4fr; }
.lrs-footer a { color: #dfe5f2; text-decoration: none; transition: color .15s; }
.lrs-footer a:hover { color: var(--lrs-footer-hover); }
.lrs-footer p { margin: 0 0 .5rem; }
.lrs-footer [style*="color: #f5f5f5"] { color: inherit !important; }
.lrs-footer a[style*="color: #f5f5f5"] { color: #dfe5f2 !important; }
.lrs-footer a[style*="color: #f5f5f5"]:hover { color: var(--lrs-footer-hover) !important; }

.lrs-footer__title { font: 600 1.45rem/1.15 var(--lrs-font-head); color: #fff; margin-bottom: .6rem !important; }
.lrs-footer__claim { color: #8f9dba; max-width: 34ch; }

.lrs-footer__heading, .lrs-plain__title {
	font: 700 .85rem/1.2 var(--lrs-font-head); text-transform: uppercase; letter-spacing: .12em;
	color: var(--lrs-footer-head) !important; margin-bottom: 1rem !important; padding-bottom: .6rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.lrs-footer__linklist { display: flex; flex-direction: column; }
.lrs-footer__linklist p { margin: 0; }
.lrs-footer__linklist br { display: none; }
.lrs-footer__linklist a { display: inline-block; padding: .35rem 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; text-decoration-thickness: 2px; transition: color .15s, text-decoration-color .15s; }
.lrs-footer__linklist a:hover { text-decoration-color: var(--lrs-tag-bg); }
.lrs-footer__linklist ul { list-style: none; padding: 0; margin: 0; }

.lrs-footer__contact img { border-radius: var(--lrs-radius-sm); margin-bottom: .5rem; }
.lrs-footer__contact hr { border-top-color: rgba(255, 255, 255, .12); margin: 1rem 0; }

.lrs-footer__bottom { background: rgba(0, 0, 0, .22); }
.lrs-footer__bottominner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 52px; padding-block: .75rem; font-size: .83rem; color: #8090ae; }
.lrs-copy { margin: 0 !important; }
.lrs-footer__extra p { margin: 0; }

.lrs-backtop {
	position: fixed; right: clamp(14px, 3vw, 24px); bottom: clamp(14px, 3vw, 24px); z-index: 80;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--lrs-radius-sm);
	background: var(--lrs-brand); color: #fff;
	border: 2px solid #fff; /* bleibt auch auf dem dunklen Footer sichtbar */
	box-shadow: 0 6px 20px -4px rgba(15, 31, 69, .55);
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background-color .15s;
}
.lrs-backtop.is-visible { opacity: 1; visibility: visible; }
.lrs-backtop:hover, .lrs-backtop:focus-visible { background: var(--lrs-brand-600); color: #fff; }

/* ==========================================================================
   Fehler- / Offline-Seite
   ========================================================================== */
.lrs-error-page { min-height: 100vh; background: var(--lrs-brand-900); }
.lrs-error { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.lrs-error__card { width: 100%; max-width: 520px; background: #fff; border-top: 4px solid var(--lrs-brand); border-radius: var(--lrs-radius); padding: 2.5rem 2rem; text-align: center; }
.lrs-error__mark { color: var(--lrs-brand); margin-bottom: .5rem; }
.lrs-error__code { font: 700 4.5rem/1 var(--lrs-font-head); color: var(--lrs-brand); margin: 0 0 .5rem; }
.lrs-error__title { font-size: 1.6rem; }
.lrs-error__msg { color: var(--lrs-muted); margin-bottom: 1.5rem; }
.lrs-error__site { color: #8f9dba; margin-top: 1.5rem; font-family: var(--lrs-font-head); text-transform: uppercase; letter-spacing: .1em; }
.lrs-error__debug { text-align: left; margin-top: 1.5rem; font-size: .8rem; overflow: auto; }
.lrs-login { display: grid; gap: .5rem; text-align: left; margin-top: 1rem; }
.lrs-login button { margin-top: .75rem; }
.lrs-component-view { background: #fff; padding: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.lrs-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lrs-layout--sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 991.98px) {
	.lrs-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lrs-cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lrs-layout--sidebar { grid-template-columns: 1fr; }
	.lrs-sidebar { position: static; }
	.lrs-footer__grid { grid-template-columns: 1fr 1fr; }
	.lrs-footer__brand { grid-column: 1 / -1; }

}

@media (max-width: 640px) {
	.lrs-cols-2, .lrs-cols-3, .lrs-cols-4 { grid-template-columns: 1fr; }
	.lrs-cols-3 > :last-child:nth-child(odd) { grid-column: auto; }
	.lrs-footer__grid { grid-template-columns: 1fr; }
	.lrs-burger__label { display: none; }
	.lrs-pagination { justify-content: center; }
	.lrs-footer__bottominner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.lrs-nav, .lrs-header__actions, .lrs-backtop, .lrs-news, .lrs-sidebar { display: none !important; }
	.lrs-post, .lrs-card { box-shadow: none; }
}
