/*
Theme Name: KG EJJ Karneval
Theme URI: https://kgejj.de
Author: KG Et Jecke Jrüppche e.V.
Description: Buntes, modernes Vereinstheme für die KG Et Jecke Jrüppche e.V. Läuft eigenständig neben dem bisherigen Theme (HitMag) und lässt dieses unverändert.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kgejj
*/

/* ==========================================================================
   1. Grundlagen
   ========================================================================== */
:root {
	--red: #e31e24;
	--gold: #ffc72c;
	--green: #2e9e5b;
	--deep: #4a1019;
	--burgundy: #7a1219;
	--cream: #fff7ec;
	--ink: #2a1519;
	--muted: #6f5a5e;
	--line: #efe1d4;
	--radius: 20px;
	--shadow: 0 10px 30px rgba(60, 10, 16, .12);
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
	--narrow: 920px;
	--zig-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0h28L14 14z'/%3E%3C/svg%3E");
	--zig-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14h28L14 0z'/%3E%3C/svg%3E");
}

/* Dunklere Töne passend zur gewählten Vereinsfarbe (moderne Browser) */
@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--deep: color-mix(in srgb, var(--red) 34%, #14070a);
		--burgundy: color-mix(in srgb, var(--red) 52%, #1a0609);
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 4.5rem;
}

body {
	margin: 0;
	font: 400 1.0625rem/1.7 var(--font-body);
	color: var(--ink);
	background-color: var(--cream);
	background-image: radial-gradient(rgba(227, 30, 36, .07) 1.5px, transparent 1.7px);
	background-size: 26px 26px;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--red);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--burgundy);
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

.topbar :focus-visible,
.site-nav :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--gold);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	left: .75rem;
	top: .75rem;
	z-index: 100000;
	padding: .8rem 1.2rem;
	background: #fff;
	color: var(--ink);
	font-weight: 800;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.container {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.container.narrow {
	width: min(100% - 2.5rem, var(--narrow));
}

.container--wide {
	width: min(100% - 2.5rem, 1280px);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink);
}

/* ==========================================================================
   2. Kopfbereich
   ========================================================================== */
.topbar {
	background: var(--burgundy);
	color: #fff;
	font-size: .875rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.6rem;
	padding-block: .3rem;
}

.topbar__msg {
	margin: 0;
	font-weight: 700;
	letter-spacing: .03em;
}

.topbar__msg a {
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.social {
	display: flex;
	gap: .3rem;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
}

.social a {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	color: #fff;
	transition: background .15s, color .15s, transform .15s;
}

.social a:hover,
.social a:focus-visible {
	background: var(--gold);
	color: var(--ink);
	transform: rotate(-8deg) scale(1.08);
}

.social svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-header {
	background: #fff;
	padding-block: 1.1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 1.1rem;
	color: inherit;
	text-decoration: none;
}

.brand__logo {
	width: 5.2rem;
	height: 5.2rem;
	object-fit: contain;
	flex: none;
}

.brand__name {
	display: block;
	font: 900 clamp(1.35rem, 3.6vw, 2.15rem)/1.1 var(--font-display);
	letter-spacing: -.015em;
	color: var(--ink);
}

.brand__tag {
	display: block;
	margin-top: .3rem;
	font-size: .98rem;
	color: var(--muted);
}

/* ==========================================================================
   3. Hauptmenü (klebt oben, Zickzack-Kragen wie bei einem Narrenkostüm)
   ========================================================================== */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--red);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.admin-bar .site-nav {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: 0;
	}
}

.site-nav::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 14px;
	background: var(--red);
	-webkit-mask-image: var(--zig-down);
	mask-image: var(--zig-down);
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	-webkit-mask-size: 28px 14px;
	mask-size: 28px 14px;
	pointer-events: none;
}

.site-nav__inner {
	display: flex;
	align-items: center;
}

.site-nav__menu {
	flex: 1;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.menu li {
	position: relative;
}

.menu a {
	display: block;
	padding: 1rem 1.05rem;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: .86rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background .15s;
}

.menu > li > a:hover,
.menu > li > a:focus-visible,
.menu > li:focus-within > a {
	background: rgba(255, 255, 255, .16);
}

.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu .current_page_item > a,
.menu .current_page_ancestor > a {
	background: rgba(0, 0, 0, .18);
	box-shadow: inset 0 -4px 0 var(--gold);
}

.menu .menu-item-has-children > a::after,
.menu .page_item_has_children > a::after {
	content: "";
	display: inline-block;
	margin-left: .5rem;
	border: 4px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
	vertical-align: middle;
}

.menu .sub-menu,
.menu .children {
	list-style: none;
	margin: 0;
	padding: .4rem 0;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 15.5rem;
	background: var(--burgundy);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 10;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu,
.menu li:hover > .children,
.menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.menu .sub-menu a,
.menu .children a {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	font-size: .96rem;
	padding: .6rem 1.2rem;
}

.menu .sub-menu a:hover,
.menu .sub-menu a:focus-visible,
.menu .children a:hover {
	background: var(--gold);
	color: var(--ink);
}

.menu .sub-menu .sub-menu,
.menu .children .children {
	left: 100%;
	top: 0;
	border-radius: 14px;
}

.menu > li:nth-last-child(-n+2) > .sub-menu,
.menu > li:nth-last-child(-n+2) > .children {
	left: auto;
	right: 0;
}

.nav-toggle,
.sub-toggle {
	display: none;
}

@media (max-width: 900px) {
	.site-nav__inner {
		flex-wrap: wrap;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: .8rem;
		padding: .95rem 0;
		background: none;
		border: 0;
		color: #fff;
		font: 800 .95rem/1 var(--font-body);
		letter-spacing: .06em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 1.5rem;
		height: 3px;
		border-radius: 3px;
		background: currentColor;
		transition: transform .2s, opacity .2s;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before {
		top: -7px;
	}

	.nav-toggle__bars::after {
		top: 7px;
	}

	.site-nav.is-open .nav-toggle__bars {
		background: transparent;
	}

	.site-nav.is-open .nav-toggle__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.site-nav.is-open .nav-toggle__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.site-nav__menu {
		flex-basis: 100%;
	}

	.js .site-nav__menu {
		display: none;
		padding-bottom: .8rem;
	}

	.js .site-nav.is-open .site-nav__menu {
		display: block;
	}

	.menu {
		display: block;
	}

	.menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.menu li > a {
		flex: 1;
		padding: .85rem .4rem;
		border-top: 1px solid rgba(255, 255, 255, .2);
		font-size: .95rem;
	}

	.menu .menu-item-has-children > a::after,
	.menu .page_item_has_children > a::after {
		display: none;
	}

	.menu .current-menu-item > a,
	.menu .current-menu-ancestor > a,
	.menu .current_page_item > a {
		box-shadow: inset 4px 0 0 var(--gold);
		padding-left: .9rem;
	}

	.sub-toggle {
		display: grid;
		place-items: center;
		flex: none;
		width: 3rem;
		background: rgba(0, 0, 0, .14);
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .2);
		color: #fff;
		cursor: pointer;
	}

	.sub-toggle span {
		width: .6rem;
		height: .6rem;
		border-right: 3px solid currentColor;
		border-bottom: 3px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
	}

	li.is-open > .sub-toggle span {
		transform: translateY(2px) rotate(-135deg);
	}

	.menu .sub-menu,
	.menu .children {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: rgba(0, 0, 0, .2);
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}

	.menu li.is-open > .sub-menu,
	.menu li.is-open > .children {
		display: block;
	}

	.menu .sub-menu a,
	.menu .children a {
		padding: .7rem 1rem .7rem 1.4rem;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}

	.menu .sub-menu .sub-menu a {
		padding-left: 2.4rem;
	}
}

/* ==========================================================================
   4. Titelbereich der Startseite
   ========================================================================== */
.hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(7rem, 13vw, 10rem);
	background:
		radial-gradient(900px 420px at 88% 18%, rgba(227, 30, 36, .75), transparent 65%),
		linear-gradient(160deg, var(--deep), var(--burgundy));
}

.hero .confetti {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: .85;
	/* Links (beim Text) dezent, rechts kräftig */
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, .3) 45%, #000 78%);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, .3) 45%, #000 78%);
}

.confetti .c1 { fill: var(--gold); }
.confetti .c2 { fill: #fff; }
.confetti .c3 { fill: #ff6a6f; }
.confetti .c4 { fill: var(--green); }
.confetti .s { fill: none; stroke-width: 3; stroke-linecap: round; }
.confetti .c1.s { stroke: var(--gold); }
.confetti .c2.s { stroke: #fff; }
.confetti .c3.s { stroke: #ff6a6f; }
.confetti .c4.s { stroke: var(--green); }

.hero__inner {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
}

.hero__eyebrow {
	display: inline-block;
	margin: 0 0 1.2rem;
	padding: .4rem 1rem;
	background: var(--gold);
	color: var(--ink);
	font-weight: 800;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 999px;
	transform: rotate(-2deg);
}

.hero__title {
	margin: 0 0 1.2rem;
	color: #fff;
	font-size: clamp(2.2rem, 6vw, 4.3rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	text-wrap: balance;
	text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}

.hero__text {
	max-width: 34rem;
	margin: 0 0 2rem;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: rgba(255, 255, 255, .92);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem;
}

.btn,
.entry-content .wp-block-button__link,
.entry-content input[type="submit"],
.entry-content button[type="submit"],
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .85rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--red);
	color: #fff;
	font: 800 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}

.btn:hover,
.entry-content .wp-block-button__link:hover,
.entry-content input[type="submit"]:hover,
.wpcf7-submit:hover {
	background: var(--burgundy);
	color: #fff;
	transform: translateY(-2px);
}

.btn--gold {
	background: var(--gold);
	color: var(--ink);
	box-shadow: 0 5px 0 rgba(0, 0, 0, .28);
}

.btn--gold:hover {
	background: #ffd45c;
	color: var(--ink);
	box-shadow: 0 7px 0 rgba(0, 0, 0, .28);
}

.btn--ghost {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.btn--ghost:hover {
	background: #fff;
	color: var(--red);
}

.hero__badge {
	justify-self: center;
	display: grid;
	place-items: center;
	width: min(100%, 21rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	transform: rotate(-4deg);
	box-shadow:
		0 0 0 10px var(--gold),
		0 0 0 22px rgba(255, 255, 255, .14),
		0 30px 60px rgba(0, 0, 0, .4);
}

.hero__badge img {
	width: 78%;
	height: 78%;
	object-fit: contain;
}

.hero__badge--photo {
	overflow: hidden;
}

.hero__badge--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 800px) {
	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__badge {
		width: min(62%, 15rem);
		order: -1;
		justify-self: start;
		box-shadow:
			0 0 0 7px var(--gold),
			0 0 0 15px rgba(255, 255, 255, .14),
			0 20px 40px rgba(0, 0, 0, .35);
	}
}

/* ==========================================================================
   5. Kacheln, Abschnitte, Seitenkopf
   ========================================================================== */
.tiles {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(4rem, 9vw, 6rem));
}

.tiles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.4rem 1.4rem 1.5rem;
	background: #fff;
	border-top: 8px solid var(--tile, var(--red));
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
	transition: transform .18s, box-shadow .18s;
}

.tile:hover,
.tile:focus-visible {
	transform: translateY(-6px) rotate(-.6deg);
	box-shadow: 0 18px 40px rgba(60, 10, 16, .22);
	color: var(--ink);
}

.tiles__grid li:nth-child(2) .tile { --tile: var(--gold); }
.tiles__grid li:nth-child(3) .tile { --tile: var(--green); }
.tiles__grid li:nth-child(4) .tile { --tile: var(--burgundy); }

.tile__icon {
	font-size: 2.2rem;
	line-height: 1;
	margin-bottom: .7rem;
}

.tile__title {
	font: 900 1.3rem/1.2 var(--font-display);
	margin-bottom: .35rem;
}

.tile__text {
	color: var(--muted);
	font-size: .98rem;
	line-height: 1.5;
}

.tile__more {
	margin-top: auto;
	padding-top: .9rem;
	font-weight: 800;
	color: var(--red);
}

.section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section__title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.section__title mark { background: linear-gradient(transparent 62%, var(--gold) 62%); color: inherit; }

.section__title::after,
.page-title::after {
	content: "";
	display: block;
	width: 5.5rem;
	height: .4rem;
	margin-top: .8rem;
	border-radius: .4rem;
	background: linear-gradient(90deg, var(--red) 0 62%, var(--gold) 62%);
}

.page-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.page-hero .confetti {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: .38;
}

.page-hero .confetti .c2 { fill: var(--red); }
.page-hero .confetti .c2.s { stroke: var(--red); fill: none; }

.page-title {
	margin: 0;
	font-size: clamp(2rem, 5.5vw, 3.6rem);
}

.page-title::after {
	margin-inline: auto;
}

.page-hero__meta {
	margin: 0 0 .6rem;
	color: var(--muted);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .85rem;
}

.site-main {
	padding-bottom: 1rem;
}

.front-content .entry-content {
	max-width: none;
}

/* ==========================================================================
   6. Inhalt (Seiten, Beiträge, Formulare, Tabellen)
   ========================================================================== */
.content-card {
	background: #fff;
	border-radius: var(--radius);
	padding: clamp(1.25rem, 4.5vw, 3rem);
	box-shadow: var(--shadow);
}

.wide-entry {
	padding-bottom: 1rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	margin: 2.2rem 0 .8rem;
	font-size: clamp(1.5rem, 3.4vw, 2rem);
}

.entry-content h3 {
	margin: 1.8rem 0 .6rem;
	font-size: clamp(1.2rem, 2.6vw, 1.5rem);
	color: var(--red);
}

.entry-content h4 {
	margin: 1.4rem 0 .5rem;
	font-size: 1.1rem;
}

.entry-content ul li::marker,
.entry-content ol li::marker {
	color: var(--red);
	font-weight: 800;
}

.entry-content img,
.post-thumb img {
	border-radius: 14px;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.wp-caption-text {
	color: var(--muted);
	font-size: .9rem;
	margin-top: .4rem;
}

.entry-content iframe {
	max-width: 100%;
	border: 0;
	border-radius: 14px;
}

.entry-content blockquote {
	margin: 1.6rem 0;
	padding: .6rem 1.4rem;
	border-left: 6px solid var(--gold);
	background: var(--cream);
	border-radius: 0 14px 14px 0;
	font-size: 1.1rem;
}

.entry-content hr {
	height: 14px;
	border: 0;
	margin: 2.4rem 0;
	background: var(--gold);
	-webkit-mask-image: var(--zig-down);
	mask-image: var(--zig-down);
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	-webkit-mask-size: 28px 14px;
	mask-size: 28px 14px;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 1.4rem 0;
}

.entry-content th,
.entry-content td {
	padding: .65rem .9rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--red);
	color: #fff;
	font-weight: 800;
}

.entry-content tbody tr:nth-child(even) td {
	background: var(--cream);
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="password"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content input[type="search"],
.entry-content textarea,
.entry-content select,
.search-field {
	width: 100%;
	max-width: 100%;
	padding: .75rem 1rem;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus,
.search-field:focus {
	border-color: var(--red);
	outline: 3px solid rgba(227, 30, 36, .2);
	outline-offset: 0;
}

.entry-content label {
	font-weight: 700;
}

.alignleft {
	float: left;
	margin: .3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: .3rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

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

.post-thumb {
	margin: 0 0 1.6rem;
}

.edit-link {
	margin: 1.5rem 0 0;
	font-size: .9rem;
}

/* ==========================================================================
   7. Beitragsübersicht und Blätterleiste
   ========================================================================== */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
	gap: 1.5rem;
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .18s;
}

.card:hover {
	transform: translateY(-4px);
}

.card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__body {
	padding: 1.2rem 1.4rem 1.6rem;
}

.card__meta {
	margin: 0;
	color: var(--muted);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.card__title {
	margin: .4rem 0 .6rem;
	font-size: 1.3rem;
}

.card__title a {
	color: inherit;
	text-decoration: none;
}

.card__title a:hover {
	color: var(--red);
}

.card__excerpt p {
	margin: 0;
	color: var(--muted);
}

.pagination,
.post-navigation {
	margin-top: 2.4rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: center;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.page-numbers,
.post-navigation a {
	display: inline-block;
	padding: .6rem 1.1rem;
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--shadow);
	color: var(--ink);
	font-weight: 800;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
	background: var(--red);
	color: #fff;
}

/* ==========================================================================
   8. Fußbereich
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: clamp(4rem, 8vw, 6rem);
	padding: 3.4rem 0 1.6rem;
	background: var(--burgundy);
	color: rgba(255, 255, 255, .9);
}

.site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 14px;
	background: var(--burgundy);
	-webkit-mask-image: var(--zig-up);
	mask-image: var(--zig-up);
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	-webkit-mask-size: 28px 14px;
	mask-size: 28px 14px;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem 3rem;
}

.footer__brand {
	margin: 0;
	font: 900 1.5rem/1.2 var(--font-display);
	color: #fff;
}

.footer__tag {
	margin: .4rem 0 1rem;
}

.social--footer {
	margin: 0;
}

.social--footer a {
	background: rgba(255, 255, 255, .12);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a,
.site-footer a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.widget-title {
	font-size: 1.1rem;
	color: #fff;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-top: 2.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255, 255, 255, .2);
	font-size: .9rem;
}

.alaaf {
	color: var(--gold);
	font-weight: 800;
}

@media (max-width: 700px) {
	.footer__grid {
		grid-template-columns: 1fr;
	}

	.brand__logo {
		width: 3.8rem;
		height: 3.8rem;
	}

	.brand {
		gap: .8rem;
	}

	.topbar__inner {
		font-size: .82rem;
	}
}

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

	.tile:hover,
	.card:hover,
	.btn:hover {
		transform: none;
	}
}

@media print {
	.topbar,
	.site-nav,
	.hero .confetti,
	.page-hero .confetti,
	.site-footer {
		display: none;
	}
}
