/*
Theme Name: Magerquark 2026
Theme URI: https://blog.magerquark.de/
Description: Modernes Block-Child-Theme für Magerquark.de auf Basis von Twenty Twenty-Five.
Author: Zeta Software GmbH
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: magerquark-2026
*/

:root {
	--mq-shadow: 0 18px 55px rgba(35, 49, 47, 0.09);
	--mq-rule: color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-wrap: break-word;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.14em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
	color: var(--wp--preset--color--petrol);
	text-decoration-color: currentColor;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--saffron);
	outline-offset: 3px;
}

.mq-site-header {
	border-top: 8px solid transparent;
	border-image: linear-gradient(
		90deg,
		var(--wp--preset--color--coral) 0 25%,
		var(--wp--preset--color--saffron) 25% 50%,
		var(--wp--preset--color--moss) 50% 75%,
		var(--wp--preset--color--sky) 75% 100%
	) 1;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mq-site-header .wp-block-site-title {
	margin: 0;
}

.mq-site-header .wp-block-site-title a {
	text-decoration: none;
}

.mq-brandline {
	margin: 0;
	opacity: 0.76;
}

.mq-header-search {
	min-width: min(16rem, 100%);
}

.mq-header-search .wp-block-search__inside-wrapper {
	border-color: rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	padding: 0.25rem;
}

.mq-header-search .wp-block-search__input {
	background: transparent;
	color: var(--wp--preset--color--cream);
}

.mq-header-search .wp-block-search__input::placeholder {
	color: rgba(255, 255, 255, 0.68);
}

.mq-header-search .wp-block-search__button {
	border-radius: 999px;
}

.mq-main {
	min-height: 60vh;
}

.mq-section-heading {
	border-bottom: 1px solid var(--mq-rule);
}

.mq-section-heading .wp-block-heading {
	margin: 0;
}

.mq-layout {
	align-items: flex-start;
}

.mq-post-list {
	margin: 0;
	padding: 0;
}

.mq-post-list > li {
	list-style: none;
}

.mq-post-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--mq-rule);
	border-top: 6px solid var(--wp--preset--color--coral);
	border-radius: 0.35rem;
	background: var(--wp--preset--color--paper);
	box-shadow: var(--mq-shadow);
}

.mq-post-list > li:nth-child(4n + 2) .mq-post-card {
	border-top-color: var(--wp--preset--color--saffron);
}

.mq-post-list > li:nth-child(4n + 3) .mq-post-card {
	border-top-color: var(--wp--preset--color--moss);
}

.mq-post-list > li:nth-child(4n + 4) .mq-post-card {
	border-top-color: var(--wp--preset--color--sky);
}

.mq-post-card .wp-block-post-featured-image {
	margin: -1.7rem -1.7rem 0;
}

.mq-post-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.mq-post-card .wp-block-post-title {
	margin-top: 0;
}

.mq-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.mq-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--coral);
}

.mq-post-meta {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mq-post-meta a {
	color: inherit;
}

.mq-post-card .wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.5rem;
	font-weight: 700;
	text-decoration: none;
}

.mq-post-card .wp-block-post-excerpt__more-link::after {
	content: "→";
	transition: transform 160ms ease;
}

.mq-post-card .wp-block-post-excerpt__more-link:hover::after {
	transform: translateX(0.25rem);
}

.mq-sidebar {
	position: sticky;
	top: 2rem;
}

.admin-bar .mq-sidebar {
	top: calc(2rem + 32px);
}

.mq-sidebar__panel {
	border-left: 4px solid var(--wp--preset--color--saffron);
	border-radius: 0.2rem;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 10px 35px rgba(35, 49, 47, 0.07);
}

.mq-sidebar__panel:nth-child(2) {
	border-left-color: var(--wp--preset--color--moss);
}

.mq-sidebar__panel:nth-child(3) {
	border-left-color: var(--wp--preset--color--coral);
}

.mq-sidebar__panel:nth-child(4) {
	border-left-color: var(--wp--preset--color--sky);
}

.mq-sidebar__panel .wp-block-heading {
	margin-top: 0;
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mq-sidebar :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mq-sidebar li {
	border-bottom: 1px solid var(--mq-rule);
	padding: 0.48rem 0;
}

.mq-sidebar li:last-child {
	border-bottom: 0;
}

.mq-sidebar a {
	text-decoration: none;
}

.mq-sidebar .wp-block-search__inside-wrapper {
	flex-wrap: nowrap;
}

.mq-sidebar .wp-block-search__input {
	min-width: 0;
	width: 100%;
}

.mq-sidebar .wp-block-search__button {
	flex: 0 0 auto;
	margin-left: 0.4rem;
	padding: 0.7rem;
}

.mq-blogroll__list {
	font-size: 0.92rem;
	line-height: 1.35;
}

.mq-article-header {
	border-bottom: 1px solid var(--mq-rule);
}

.mq-article .wp-block-post-title {
	text-wrap: balance;
}

.mq-article .wp-block-post-content {
	font-size: clamp(1.08rem, 1.5vw, 1.2rem);
}

.mq-article .wp-block-post-content > :where(p, ul, ol, figure, blockquote) {
	margin-block-end: 1.35em;
}

.mq-article .wp-block-post-content :where(h2, h3, h4) {
	margin-block-start: 1.7em;
	text-wrap: balance;
}

.mq-article .wp-block-post-content img {
	border-radius: 0.25rem;
}

.mq-article blockquote {
	border-left: 6px solid var(--wp--preset--color--saffron);
	background: color-mix(in srgb, var(--wp--preset--color--saffron) 10%, transparent);
	padding: 1.2rem 1.4rem;
}

.mq-article pre,
.mq-article code {
	overflow-x: auto;
}

.mq-article pre {
	border-radius: 0.3rem;
	padding: 1.2rem;
}

.mq-taxonomy-title {
	text-wrap: balance;
}

.mq-pagination {
	border-top: 1px solid var(--mq-rule);
}

.mq-pagination .page-numbers {
	display: inline-grid;
	min-width: 2rem;
	min-height: 2rem;
	place-items: center;
	border-radius: 999px;
	text-decoration: none;
}

.mq-pagination .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

.mq-site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mq-site-footer a {
	color: inherit;
}

@media (max-width: 900px) {
	.mq-layout {
		flex-wrap: wrap !important;
	}

	.mq-layout > .wp-block-column {
		flex-basis: 100% !important;
	}

	.mq-sidebar {
		position: static;
	}
}

@media (max-width: 600px) {
	.mq-site-header__inner {
		align-items: flex-start !important;
		flex-direction: column;
	}

	.mq-header-search {
		width: 100%;
	}

	.mq-post-card {
		padding: 1.2rem !important;
	}

	.mq-post-card .wp-block-post-featured-image {
		margin: -1.2rem -1.2rem 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}

html[data-darkreader-scheme="dark"] .mq-post-card,
html[data-darkreader-scheme="dark"] .mq-sidebar__panel {
	box-shadow: none;
}
