/**
 * Solidarische Ökonomie Bremen — layout and brand colours.
 * Matches the former Joomla template (at_global_free_v5).
 */

:root {
	--soe-blue: #0051cc;
	--soe-yellow: #fad956;
	--soe-yellow-active: #ffcc01;
	--soe-gold: #d4a005;
	--soe-white: #ffffff;
	--soe-text: #222222;
}

body {
	color: var(--soe-text);
}

/* Header + footer (Joomla: header, footer { background-color: #0051cc }) */
.site-header,
.site-footer {
	background-color: var(--soe-blue);
	color: var(--soe-white);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
	width: 100vw;
}

.site-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	padding-top: 1.25rem;
}

.site-header .wp-block-site-title,
.site-header .wp-block-site-title a {
	color: var(--soe-white);
	font-weight: 700;
	text-decoration: none;
}

.site-header .wp-block-site-logo img {
	background-color: var(--soe-white);
	border-radius: 3px;
	display: block;
	height: auto;
	max-width: min(480px, 100%);
	padding: 10px;
}
@media (max-width: 541px) {
	.site-header .wp-block-site-logo img {
		padding: 10px 0;
	}
}

.site-header .wp-block-site-title a:hover {
	color: var(--soe-yellow);
}

.site-header .wp-block-navigation {
	font-weight: 600;
	margin-top: 0.75rem;
}

.site-header .wp-block-navigation a {
	border-radius: 3px;
	color: var(--soe-white);
	padding: 0.35rem 0.75rem;
	text-decoration: none;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item > a,
.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	background-color: var(--soe-yellow);
	color: var(--soe-text);
}

/* Footer (Joomla: #copr) */
.site-footer {
	font-size: 0.85rem;
	font-weight: 700;
	margin-top: 2.5rem;
	padding-bottom: 1.25rem;
	padding-top: 1.25rem;
	text-align: center;
	text-transform: uppercase;
}
.site-footer,
.site-footer p {
	color: var(--soe-gold);
}

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

.site-footer a:hover {
	color: var(--soe-yellow);
}

/* Main content */
.soe-content {
	padding-bottom: 1rem;
}

.soe-content h1 {
	color: var(--soe-blue);
	margin-bottom: 0.75rem;
}

.soe-content a {
	color: var(--soe-blue);
}

.soe-content a:hover {
	color: var(--soe-gold);
}

/* Sidebar modules (Joomla: .crate) */
.soe-sidebar {
	background-color: var(--soe-white);
	background-image: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin-bottom: 1.25rem;
	padding: 1rem;
}

.soe-sidebar figure,
.soe-sidebar .wp-block-image,
.soe-sidebar .soe-sidebar-module {
	margin: 0;
	text-align: center;
}

.soe-sidebar img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
	width: auto;
}

.soe-sidebar figcaption {
	background-color: var(--soe-blue);
	border-radius: 3px;
	color: var(--soe-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 2;
	margin: 0.75rem 0 0;
	padding: 3px 10px;
	text-transform: uppercase;
}

.soe-sidebar p {
	margin: 0 0 1rem;
	text-align: center;
}

.soe-sidebar p:last-child {
	margin-bottom: 0;
}

.soe-content img.alignright,
.soe-content .wp-block-image.alignright,
.soe-content img[style*="float: right"],
.soe-content img[style*="float:right"] {
	float: right;
	margin: 0.5rem 0 0.5rem 0.5rem;
	max-width: 45%;
}

.soe-logo-row {
	margin-bottom: 0.75rem;
}

.soe-logo-row .wp-block-image {
	margin-bottom: 0;
}

.soe-logo-row .wp-block-image img {
	height: auto;
	max-width: 100%;
	width: auto;
}

@media (max-width: 781px) {
	main.soe-content {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.soe-content img.alignright,
	.soe-content .wp-block-image.alignright,
	.soe-content img[style*="float: right"],
	.soe-content img[style*="float:right"] {
		float: none;
		margin: 0 auto 1rem;
		max-width: 100%;
	}

	.site-header .wp-block-navigation .wp-block-navigation__container {
		flex-wrap: wrap;
		gap: 0.25rem;
	}
}
