/* =============================================================
   Zibi Modern – Template Stylesheet
   Zittauer Bildungsgesellschaft gGmbH
   Kompatibel: Joomla 5 / 6
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
	--zibi-primary: #0345BF;
	--zibi-primary-dark: #022e80;
	--zibi-accent: #f68e13;
	--zibi-topbar-bg: #174b69;
	--zibi-footer-bg: #171717;
	--zibi-container: 1200px;

	--zibi-ink: #1c2430;
	--zibi-muted: #5b6675;
	--zibi-line: #e6e9ef;
	--zibi-bg: #f5f7fb;
	--zibi-card: #ffffff;

	--zibi-radius: 14px;
	--zibi-radius-sm: 9px;
	--zibi-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
	--zibi-shadow-lg: 0 12px 40px rgba(16,24,40,.12);
	--zibi-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--zibi-header-h: 78px;
	--zibi-space: clamp(2rem, 5vw, 4.5rem);

	--zibi-boxed-max: 1280px;
	--zibi-page-bg-color: #237c9f;
	--zibi-page-bg-image: none;
	--zibi-boxed-bg: #ffffff;
}

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

html { scroll-behavior: smooth; }

body.tpl-zibi-modern {
	margin: 0;
	font-family: var(--zibi-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--zibi-ink);
	background: var(--zibi-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.tpl-zibi-modern img { max-width: 100%; height: auto; }

/* ---------- Layout: Wide / Boxed ---------- */
.zibi-page { position: relative; background: var(--zibi-bg); }

/* Wide (Standard): volle Breite */
body.tpl-zibi-modern.layout-wide { background: var(--zibi-bg); }
.layout-wide .zibi-page { background: transparent; }

/* Boxed: zentrierte Box auf farbigem/gemustertem Hintergrund */
body.tpl-zibi-modern.layout-boxed {
	background-color: var(--zibi-page-bg-color);
	background-image: var(--zibi-page-bg-image);
	background-position: center top;
	background-repeat: repeat;
	background-attachment: fixed;
}
.layout-boxed .zibi-page {
	max-width: var(--zibi-boxed-max);
	margin: 0 auto;
	background: var(--zibi-boxed-bg);
	box-shadow: 0 0 50px rgba(0, 0, 0, .28);
	min-height: 100vh;
}
/* Footer im Boxed-Modus buendig mit der Box */
.layout-boxed .zibi-footer { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.tpl-zibi-modern a {
	color: var(--zibi-primary);
	text-decoration: none;
	transition: color .18s ease;
}
.tpl-zibi-modern a:hover { color: var(--zibi-primary-dark); }

.tpl-zibi-modern h1, .tpl-zibi-modern h2, .tpl-zibi-modern h3,
.tpl-zibi-modern h4, .tpl-zibi-modern h5, .tpl-zibi-modern h6 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--zibi-ink);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
.tpl-zibi-modern h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.tpl-zibi-modern h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.tpl-zibi-modern h3 { font-size: 1.35rem; }
.tpl-zibi-modern p  { margin: 0 0 1.1em; }

.zibi-container {
	width: 100%;
	max-width: var(--zibi-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.zibi-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--zibi-primary);
	color: #fff;
	padding: .6rem 1rem;
	z-index: 2000;
	border-radius: 0 0 var(--zibi-radius-sm) 0;
}
.zibi-skip-link:focus { left: 0; color: #fff; }

/* ---------- Topbar ---------- */
.zibi-topbar {
	background: var(--zibi-topbar-bg);
	color: rgba(255,255,255,.85);
	font-size: .86rem;
}
.zibi-topbar a { color: rgba(255,255,255,.9); }
.zibi-topbar a:hover { color: #fff; }
.zibi-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 42px;
	flex-wrap: wrap;
}
.zibi-topbar-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.zibi-topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.zibi-topbar-modules { display: flex; align-items: center; gap: 1rem; }
.zibi-topbar-modules ul { list-style: none; display: flex; gap: .7rem; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.zibi-header {
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--zibi-line);
	z-index: 900;
}
.zibi-header.is-sticky { position: sticky; top: 0; }
.zibi-header.zibi-scrolled { box-shadow: var(--zibi-shadow); }
.zibi-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--zibi-header-h);
}
.zibi-logo img { max-height: 56px; width: auto; display: block; transition: max-height .25s ease; }
.zibi-scrolled .zibi-logo img { max-height: 46px; }
.zibi-logo-text { font-weight: 800; font-size: 1.3rem; color: var(--zibi-primary); }
.zibi-header-tools { display: flex; align-items: center; gap: .75rem; }

/* ---------- Navigation (Desktop) ---------- */
.zibi-nav { flex: 1; display: flex; justify-content: flex-end; }
.zibi-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; align-items: center; }
.zibi-nav ul.menu > li { position: relative; }
.zibi-nav ul li a,
.zibi-nav ul li span.nav-header,
.zibi-nav ul li > span {
	display: block;
	padding: .6rem .85rem;
	font-weight: 600;
	font-size: .96rem;
	color: var(--zibi-ink);
	border-radius: var(--zibi-radius-sm);
	white-space: nowrap;
}
.zibi-nav ul li a:hover,
.zibi-nav ul li.active > a,
.zibi-nav ul li.current > a {
	color: var(--zibi-primary);
	background: rgba(3,69,191,.08);
}

/* Dropdown */
.zibi-nav ul li ul {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 235px;
	flex-direction: column;
	gap: 0;
	background: #fff;
	border: 1px solid var(--zibi-line);
	border-radius: var(--zibi-radius-sm);
	box-shadow: var(--zibi-shadow-lg);
	padding: .4rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s ease;
	z-index: 50;
}
.zibi-nav ul li:hover > ul,
.zibi-nav ul li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.zibi-nav ul li ul li a { padding: .5rem .7rem; font-weight: 500; }
.zibi-nav ul li ul li a:hover { background: rgba(3,69,191,.08); }
.zibi-nav ul li ul ul { top: -.4rem; left: 100%; }

/* Hamburger */
.zibi-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	background: var(--zibi-primary);
	border: 0;
	border-radius: var(--zibi-radius-sm);
	cursor: pointer;
}
.zibi-nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: #fff; transition: .25s; }
.zibi-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zibi-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.zibi-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Off-canvas ---------- */
.zibi-offcanvas {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(340px, 86vw);
	background: #fff;
	box-shadow: var(--zibi-shadow-lg);
	transform: translateX(100%);
	transition: transform .3s ease;
	z-index: 1100;
	overflow-y: auto;
}
.zibi-offcanvas.is-open { transform: translateX(0); }
.zibi-offcanvas-inner { padding: 1.5rem 1.25rem 2.5rem; }
.zibi-offcanvas-close { position: absolute; top: .5rem; right: .8rem; font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--zibi-ink); cursor: pointer; }
.zibi-offcanvas ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.zibi-offcanvas ul li a,
.zibi-offcanvas ul li > span {
	display: block;
	padding: .7rem .4rem;
	font-weight: 600;
	color: var(--zibi-ink);
	border-bottom: 1px solid var(--zibi-line);
}
.zibi-offcanvas ul li ul { margin: 0 0 0 .6rem; }
.zibi-offcanvas ul li ul li a { font-weight: 500; font-size: .95rem; color: var(--zibi-muted); }
.zibi-offcanvas-contact { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.zibi-offcanvas-contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--zibi-muted); }
.zibi-offcanvas-overlay { position: fixed; inset: 0; background: rgba(10,15,25,.5); z-index: 1050; }

/* ---------- Hero ---------- */
.zibi-hero {
	position: relative;
	color: #fff;
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(255,255,255,.14), transparent 60%),
		linear-gradient(135deg, var(--zibi-primary) 0%, var(--zibi-primary-dark) 100%);
	overflow: hidden;
}
.zibi-hero-inner { padding: clamp(3rem, 8vw, 6rem) 0; max-width: 760px; }
.zibi-hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.8); margin: 0 0 .8rem; }
.zibi-hero-title { color: #fff; margin: 0 0 1rem; }
.zibi-hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.92); margin: 0 0 1.8rem; }
.zibi-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Buttons */
.zibi-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.5rem;
	font-weight: 700; font-size: 1rem;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .18s ease, color .18s ease;
}
.zibi-btn:hover { transform: translateY(-2px); }
.zibi-btn-primary { background: #fff; color: var(--zibi-primary); }
.zibi-btn-primary:hover { color: var(--zibi-primary-dark); }
.zibi-btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.zibi-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Banner / Slider ---------- */
.zibi-banner { background: #fff; }
.zibi-banner img { width: 100%; display: block; }
.zibi-banner .moduletable { margin: 0; }

/* ---------- Home-Row ---------- */
.zibi-home-row { padding: var(--zibi-space) 0 0; }
.zibi-home-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
.zibi-home-grid:has(> div + div) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) { .zibi-home-grid:has(> div + div) { grid-template-columns: 1fr; } }

/* ---------- Main / Grid ---------- */
.zibi-main { padding: var(--zibi-space) 0; }
.zibi-main-grid { display: block; }
.zibi-main-grid.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}
.zibi-main-grid.has-sidebar .zibi-sidebar-right { order: 3; }
.zibi-main-grid.has-sidebar:has(.zibi-sidebar-left):has(.zibi-sidebar-right) {
	grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
}
/* Inhaltsbereich = weisse Karte. Unabhaengig von der Box-Farbe, damit
   Komponenten (Login, Profil, jDownloads) immer lesbar auf Weiss sitzen. */
.zibi-content {
	min-width: 0;
	background: var(--zibi-card);
	border: 1px solid var(--zibi-line);
	border-radius: var(--zibi-radius);
	box-shadow: var(--zibi-shadow);
	padding: clamp(1.4rem, 3vw, 2.6rem);
}

/* Einzelne Beitragselemente nicht nochmals karten (kein Karte-in-Karte) */
.zibi-content .item-page,
.zibi-content .blog,
.zibi-content .com-content-article {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}
.zibi-content .page-header h1,
.zibi-content .page-header h2 { margin-top: 0; }
.zibi-content .item-page + .item-page { margin-top: 1.5rem; }

/* Fieldsets (z. B. Benutzerprofil / com_users) */
.zibi-content fieldset {
	border: 1px solid var(--zibi-line);
	border-radius: var(--zibi-radius-sm);
	padding: 1.2rem 1.4rem;
	margin: 0 0 1.5rem;
	min-width: 0;
}
.zibi-content legend {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--zibi-primary);
	padding: 0 .5rem;
	width: auto;
	border: 0;
	margin-bottom: .4rem;
}
.zibi-content dl { margin: 0; }
.zibi-content dt { font-weight: 600; margin-top: .7rem; }
.zibi-content dd { margin: 0 0 .3rem; color: var(--zibi-muted); }

/* Icons in Formular-Buttons begrenzen (z. B. riesiges WebAuthn-Icon) */
.zibi-content form img,
.zibi-content form svg { max-width: 2.4em; max-height: 2.4em; }
.zibi-content button img,
.zibi-content .btn img,
.zibi-content button svg,
.zibi-content .btn svg {
	max-width: 1.5em;
	max-height: 1.5em;
	width: auto;
	height: auto;
	vertical-align: middle;
}

/* ---------- Module Card Chrome ---------- */
.zibi-card-module,
.moduletable.zibi-card {
	background: var(--zibi-card);
	border: 1px solid var(--zibi-line);
	border-radius: var(--zibi-radius);
	box-shadow: var(--zibi-shadow);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	transition: transform .18s ease, box-shadow .18s ease;
}
.zibi-card-module:hover { box-shadow: var(--zibi-shadow-lg); }
.zibi-card-title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	padding-bottom: .7rem;
	border-bottom: 2px solid var(--zibi-primary);
	display: inline-block;
}
/* Sidebar-Karten scrollen normal mit – KEIN sticky, sonst schieben sich
   mehrere Karten (z. B. Menue + Login) beim Scrollen uebereinander. */
.zibi-sidebar .zibi-card-module { position: static; }

/* ---------- Beitrags-Tabellen ---------- */
/* Hinweis: Es werden im Beitrag sowohl echte Datentabellen ALS AUCH
   Layout-Tabellen (Bild + Text) verwendet. Daher NIE white-space:nowrap
   erzwingen und Umbruch immer erlauben, sonst laeuft der Inhalt aus dem
   Rahmen. */
.zibi-content table {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1.6rem 0;
	font-size: .96rem;
	border: 1px solid var(--zibi-line);
	border-radius: var(--zibi-radius-sm);
	overflow: hidden;
	box-shadow: var(--zibi-shadow);
	background: #fff;
}
.zibi-content table caption {
	caption-side: top;
	text-align: left;
	font-weight: 700;
	color: var(--zibi-ink);
	padding: 0 0 .6rem;
}
.zibi-content table th,
.zibi-content table td {
	padding: .7rem 1rem;
	border-bottom: 1px solid var(--zibi-line);
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
	white-space: normal;
	overflow-wrap: anywhere;
}
.zibi-content table img { max-width: 100%; height: auto; }
.zibi-content table thead th {
	background: var(--zibi-primary);
	color: #fff;
	font-weight: 700;
	border-bottom: 0;
}
.zibi-content table tbody tr:nth-child(even) td { background: #f5f8fd; }
.zibi-content table tbody tr:hover td { background: rgba(3, 69, 191, .07); }
.zibi-content table tr:last-child td { border-bottom: 0; }

/* ---------- Seitenmenü (Sidebar-Menümodule) ---------- */
.zibi-sidebar .zibi-card-module ul,
.zibi-sidebar .mod-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.zibi-sidebar .zibi-card-module li { margin: 0; padding: 0; }

/* Top-Level-Einträge */
.zibi-sidebar .zibi-card-module > ul > li,
.zibi-sidebar .mod-menu > li { border-top: 1px solid var(--zibi-line); }
.zibi-sidebar .zibi-card-module > ul > li:first-child,
.zibi-sidebar .mod-menu > li:first-child { border-top: 0; }

.zibi-sidebar .zibi-card-module a,
.zibi-sidebar .zibi-card-module > ul span,
.zibi-sidebar .mod-menu a,
.zibi-sidebar .mod-menu span {
	display: block;
	padding: .6rem .35rem .6rem .75rem;
	color: var(--zibi-ink);
	font-weight: 600;
	font-size: .98rem;
	text-decoration: none;
	border-left: 3px solid transparent;
	border-radius: 0 var(--zibi-radius-sm) var(--zibi-radius-sm) 0;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.zibi-sidebar .zibi-card-module a:hover {
	background: rgba(3, 69, 191, .07);
	color: var(--zibi-primary);
	border-left-color: var(--zibi-primary);
}
.zibi-sidebar .zibi-card-module .active > a,
.zibi-sidebar .zibi-card-module .current > a,
.zibi-sidebar .mod-menu .active > a {
	background: rgba(3, 69, 191, .10);
	color: var(--zibi-primary);
	border-left-color: var(--zibi-primary);
	font-weight: 700;
}

/* Untermenüs eingerückt mit Leiste */
.zibi-sidebar .zibi-card-module ul ul {
	margin: .1rem 0 .45rem;
	padding-left: .7rem;
	border-left: 2px solid var(--zibi-line);
}
.zibi-sidebar .zibi-card-module ul ul li { border-top: 0; }
.zibi-sidebar .zibi-card-module ul ul a {
	font-weight: 500;
	font-size: .92rem;
	color: var(--zibi-muted);
	padding: .38rem .35rem .38rem .6rem;
}
.zibi-sidebar .zibi-card-module ul ul a::before {
	content: "›";
	margin-right: .45rem;
	color: var(--zibi-primary);
	font-weight: 700;
}
.zibi-sidebar .zibi-card-module ul ul a:hover { color: var(--zibi-primary); background: rgba(3, 69, 191, .05); }

/* ---------- Bottom (Cards) ---------- */
.zibi-bottom { padding: 0 0 var(--zibi-space); }
.zibi-bottom-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.zibi-bottom-grid.cols-1 { grid-template-columns: 1fr; }
.zibi-bottom-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.zibi-bottom-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.zibi-bottom-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.zibi-bottom-col .zibi-card-module { margin-bottom: 0; height: 100%; }

/* ---------- Footer ---------- */
.zibi-footer { background: var(--zibi-footer-bg); color: rgba(255,255,255,.72); }
.zibi-footer a { color: rgba(255,255,255,.82); }
.zibi-footer a:hover { color: #fff; }
.zibi-footer-grid { display: grid; gap: 2rem; padding: var(--zibi-space) 0 2.5rem; }
.zibi-footer-grid.cols-1 { grid-template-columns: 1fr; }
.zibi-footer-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.zibi-footer-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.zibi-footer-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.zibi-footer h1, .zibi-footer h2, .zibi-footer h3, .zibi-footer h4 { color: #fff; font-size: 1.05rem; }
.zibi-footer ul { list-style: none; margin: 0; padding: 0; }
.zibi-footer ul li { padding: .3rem 0; }
.zibi-footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.zibi-footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; flex-wrap: wrap; }
.zibi-footer-copy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.zibi-footer-copy p { margin: 0; }

/* ---------- Back to top ---------- */
.zibi-back-to-top {
	position: fixed; right: 1.4rem; bottom: 1.4rem;
	width: 48px; height: 48px;
	border: 0; border-radius: 50%;
	background: var(--zibi-primary); color: #fff;
	box-shadow: var(--zibi-shadow-lg);
	cursor: pointer; opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, background .18s ease;
	z-index: 800;
}
.zibi-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.zibi-back-to-top:hover { background: var(--zibi-primary-dark); }

/* ---------- Joomla helpers ---------- */
.tpl-zibi-modern table.category,
.tpl-zibi-modern .table { width: 100%; border-collapse: collapse; }
.tpl-zibi-modern .pagination { display: flex; gap: .3rem; list-style: none; padding: 0; flex-wrap: wrap; margin-top: 1.5rem; }
.tpl-zibi-modern .pagination a,
.tpl-zibi-modern .pagination span { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--zibi-line); border-radius: var(--zibi-radius-sm); }
.tpl-zibi-modern .pagination .active span { background: var(--zibi-primary); color: #fff; border-color: var(--zibi-primary); }
.tpl-zibi-modern .btn,
.tpl-zibi-modern .readmore a {
	display: inline-block; padding: .55rem 1.1rem;
	background: var(--zibi-primary); color: #fff !important;
	border-radius: 999px; font-weight: 600; border: 0;
}
.tpl-zibi-modern .readmore a:hover { background: var(--zibi-primary-dark); }

/* ---------- Domain notice ---------- */
.zibi-domain-notice { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--zibi-bg); }
.zibi-domain-notice h1 { color: var(--zibi-primary); }
.zibi-domain-notice p { color: var(--zibi-muted); max-width: 560px; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.zibi-nav { display: none; }
	.zibi-nav-toggle { display: flex; }
	.zibi-main-grid.has-sidebar,
	.zibi-main-grid.has-sidebar:has(.zibi-sidebar-left):has(.zibi-sidebar-right) { grid-template-columns: 1fr; }
	.zibi-sidebar .zibi-card-module { position: static; }
	.zibi-bottom-grid.cols-3, .zibi-bottom-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.zibi-footer-grid.cols-3, .zibi-footer-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	body.tpl-zibi-modern { font-size: 16px; }
	.zibi-topbar-contact { gap: .9rem; font-size: .8rem; }
	.zibi-bottom-grid.cols-2, .zibi-bottom-grid.cols-3, .zibi-bottom-grid.cols-4,
	.zibi-footer-grid.cols-2, .zibi-footer-grid.cols-3, .zibi-footer-grid.cols-4 { grid-template-columns: 1fr; }
}

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