/*
Theme Name: Relevante Ökonomik
Theme URI: https://www.relevante-oekonomik.com/
Author: Relevante Ökonomik
Description: Ruhiges redaktionelles Hybrid-Theme für Relevante Ökonomik.
Version: 0.5.10
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: relevante-oekonomik
*/

:root {
	--ro-color-ink: #17212b;
	--ro-color-muted: #5f6670;
	--ro-color-paper: #fffdf8;
	--ro-color-surface: #f3f0e8;
	--ro-color-line: #d8d3c8;
	--ro-color-accent: #8d2f2f;
	--ro-color-accent-dark: #672020;
	--ro-color-secondary: #3d6075;
	--ro-content-width: 48rem;
	--ro-wide-width: 76rem;
	--ro-radius: 0.2rem;
	--ro-shadow: 0 0.8rem 2.4rem rgb(23 33 43 / 8%);
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--ro-color-paper);
	color: var(--ro-color-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
}

a {
	color: var(--ro-color-accent-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--ro-color-accent);
}

:focus-visible {
	outline: 0.2rem solid var(--ro-color-secondary);
	outline-offset: 0.2rem;
}

img,
iframe {
	display: block;
	max-width: 100%;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.screen-reader-text:focus {
	background: var(--ro-color-paper);
	clip: auto;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.ro-wrap {
	margin-inline: auto;
	max-width: var(--ro-wide-width);
	padding-inline: clamp(1rem, 3vw, 2rem);
}

.ro-site-header {
	background: var(--ro-color-paper);
	border-bottom: 1px solid var(--ro-color-line);
}

.ro-brand-row {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	padding-block: 1.3rem 1rem;
}

.ro-brand {
	color: var(--ro-color-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.45rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
	text-decoration: none;
}

.ro-tagline {
	color: var(--ro-color-muted);
	font-size: 0.82rem;
	margin: 0.3rem 0 0;
}

.ro-search .search-form {
	display: flex;
	gap: 0.35rem;
}

.ro-search label {
	margin: 0;
}

.ro-search .search-field {
	background: #fff;
	border: 1px solid var(--ro-color-line);
	font: inherit;
	max-width: 14rem;
	padding: 0.55rem 0.7rem;
}

.ro-search .search-submit,
.ro-button,
.ro-video-load {
	background: var(--ro-color-accent-dark);
	border: 1px solid var(--ro-color-accent-dark);
	border-radius: var(--ro-radius);
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 700;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
}

.ro-search .search-submit:hover,
.ro-search .search-submit:focus-visible,
.ro-button:hover,
.ro-button:focus-visible,
.ro-video-load:hover,
.ro-video-load:focus-visible {
	background: var(--ro-color-accent);
	color: #fff;
}

.ro-primary-nav {
	border-top: 1px solid var(--ro-color-line);
}

.ro-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem clamp(0.9rem, 2vw, 1.6rem);
	list-style: none;
	margin: 0;
	padding: 0.75rem 0;
}

.ro-primary-nav a {
	color: var(--ro-color-ink);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.ro-main {
	padding-block: clamp(2rem, 5vw, 4.5rem);
}

.ro-kicker,
.ro-card__meta,
.ro-article__meta {
	color: var(--ro-color-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.ro-home-hero {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
}

.ro-hero-copy {
	align-self: center;
}

.ro-hero-copy h1,
.ro-page-title,
.ro-article__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.25rem, 5vw, 4.8rem);
	letter-spacing: -0.035em;
	line-height: 1.03;
	margin: 0.35rem 0 1rem;
}

.ro-hero-copy h1.ro-hero-title--long {
	font-size: clamp(2rem, 4.25vw, 4rem);
}

.ro-hero-copy h1.ro-hero-title--very-long {
	font-size: clamp(1.75rem, 3.6vw, 3.35rem);
}

.ro-hero-copy h1 a,
.ro-card__title a {
	color: inherit;
	text-decoration: none;
}

.ro-hero-copy h1 a:hover,
.ro-card__title a:hover {
	color: var(--ro-color-accent);
}

.ro-hero-copy p {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	max-width: 46rem;
}

.ro-video {
	background: var(--ro-color-surface);
	border-top: 0.3rem solid var(--ro-color-secondary);
	box-shadow: var(--ro-shadow);
	padding: clamp(1rem, 3vw, 1.5rem);
}

.ro-video__frame {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: var(--ro-color-ink);
	color: #fff;
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
	overflow: hidden;
}

.ro-video__frame iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.ro-video__notice {
	font-size: 0.8rem;
	margin: 0.7rem 0 0;
}

.ro-section {
	border-top: 1px solid var(--ro-color-line);
	margin-top: clamp(2.5rem, 7vw, 5.5rem);
	padding-top: 1.2rem;
}

.ro-section__heading {
	align-items: baseline;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.4rem;
}

.ro-section__heading h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	margin: 0;
}

.ro-section__info {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: flex-start;
	position: relative;
	width: fit-content;
}

.ro-info-trigger {
	align-items: center;
	background: transparent;
	border: 1px solid var(--ro-color-muted);
	border-radius: 50%;
	color: var(--ro-color-muted);
	cursor: help;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.82rem;
	font-style: italic;
	font-weight: 700;
	height: 1.45rem;
	justify-content: center;
	line-height: 1;
	padding: 0 0 0.08rem;
	width: 1.45rem;
}

.ro-info-trigger:hover,
.ro-info-trigger:focus-visible {
	background: var(--ro-color-accent);
	border-color: var(--ro-color-accent);
	color: #fff;
	outline: 0;
}

.ro-info-trigger:focus-visible {
	box-shadow: 0 0 0 0.2rem rgb(141 47 47 / 20%);
}

.ro-info-bubble {
	background: var(--ro-color-ink);
	border-radius: var(--ro-radius);
	box-shadow: var(--ro-shadow);
	color: #fff;
	font-size: 0.9rem;
	left: 0;
	line-height: 1.55;
	margin: 0;
	opacity: 0;
	padding: 1rem 1.1rem;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 0.65rem);
	transform: translateY(-0.25rem);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
	visibility: hidden;
	width: min(34rem, calc(100vw - 2rem));
	z-index: 20;
}

.ro-info-bubble::before {
	border-bottom: 0.45rem solid var(--ro-color-ink);
	border-left: 0.4rem solid transparent;
	border-right: 0.4rem solid transparent;
	content: "";
	left: 1.25rem;
	position: absolute;
	top: -0.43rem;
}

.ro-section__info:hover .ro-info-bubble,
.ro-section__info:focus-within .ro-info-bubble {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.ro-section__info--right .ro-info-bubble {
	left: auto;
	right: 0;
}

.ro-section__info--right .ro-info-bubble::before {
	left: auto;
	right: 1.25rem;
}

.ro-section__info--corner {
	display: block;
	padding-right: 2.7rem;
	position: static;
	width: 100%;
}

.ro-section__info--corner .ro-info-trigger {
	position: absolute;
	right: clamp(1.2rem, 3vw, 2rem);
	top: clamp(1.2rem, 3vw, 2rem);
}

.ro-section__info--corner .ro-info-bubble {
	left: auto;
	right: clamp(1.2rem, 3vw, 2rem);
	top: calc(clamp(1.2rem, 3vw, 2rem) + 2.1rem);
}

.ro-section__info--corner .ro-info-bubble::before {
	left: auto;
	right: 0.35rem;
}

.ro-important-list {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ro-important-list li {
	border-left: 1px solid var(--ro-color-line);
	padding: 0.2rem 1rem 0.2rem 1.25rem;
}

.ro-important-list li:first-child {
	border-left: 0;
	padding-left: 0;
}

.ro-important-list a {
	color: var(--ro-color-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	text-decoration: none;
}

.ro-editorial-pair,
.ro-graphic-topics {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ro-card-grid {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ro-card {
	border-top: 0.2rem solid var(--ro-color-ink);
	padding-top: 0.85rem;
}

.ro-card--accent {
	border-color: var(--ro-color-accent);
}

.ro-column-list {
	display: grid;
	gap: 1.2rem;
}

.ro-column-list .ro-card + .ro-card {
	border-top-width: 1px;
}

.ro-editorial-note {
	background: #fff8df;
	border: 1px dashed #b28a32;
	color: #5d481d;
	font-size: 0.9rem;
	margin: 0 0 1.2rem;
	padding: 0.85rem 1rem;
}

.ro-graphic-preview {
	border-top: 0.2rem solid var(--ro-color-accent);
	padding-top: 0.85rem;
}

.ro-graphic-preview figure {
	margin: 0 0 1rem;
}

.ro-graphic-preview img {
	background: #fff;
	border: 1px solid var(--ro-color-line);
	display: block;
	height: auto;
	width: 100%;
}

.ro-graphic-preview figcaption {
	color: var(--ro-color-muted);
	font-size: 0.78rem;
	margin-top: 0.45rem;
}

.ro-graphic-card__image {
	background: #fff;
	border: 1px solid var(--ro-color-line);
	display: block;
	margin-bottom: 1rem;
	overflow: hidden;
}

.ro-graphic-card__image img {
	height: auto;
	width: 100%;
}

.ro-article__graphic figcaption {
	color: var(--ro-color-muted);
	display: grid;
	font-size: 0.82rem;
	gap: 0.2rem;
}

.ro-text-link {
	display: inline-block;
	font-weight: 700;
	margin-top: 0.8rem;
}

.ro-card__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.2;
	margin: 0.35rem 0 0.7rem;
}

.ro-card__excerpt {
	color: #2d3640;
	margin-bottom: 0;
}

.ro-foundations {
	background: var(--ro-color-surface);
	padding: clamp(1.2rem, 3vw, 2rem);
	position: relative;
}

.ro-foundations ol {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.ro-foundations li + li {
	border-top: 1px solid var(--ro-color-line);
	margin-top: 0.8rem;
	padding-top: 0.8rem;
}

.ro-foundations a,
.ro-topic-list a {
	color: var(--ro-color-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
}

.ro-topic-list {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ro-topic-list li {
	border-bottom: 1px solid var(--ro-color-line);
	padding-bottom: 1rem;
}

.ro-topic-list p {
	color: var(--ro-color-muted);
	margin: 0.35rem 0 0;
}

.ro-topic-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: clamp(2rem, 5vw, 4rem) 0 0;
	padding: 0;
}

.ro-topic-grid li {
	background: var(--ro-color-surface);
	border-top: 0.2rem solid var(--ro-color-secondary);
	padding: clamp(1.1rem, 3vw, 1.8rem);
}

.ro-topic-grid h2 {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.2;
	margin: 0 0 0.7rem;
}

.ro-topic-grid h2 a {
	color: var(--ro-color-ink);
	text-decoration: none;
}

.ro-topic-grid__count {
	color: var(--ro-color-muted);
	font-size: 0.82rem;
	margin-bottom: 0;
}

.ro-bottom-cta {
	background: var(--ro-color-ink);
	color: #fff;
	display: grid;
	gap: 1rem 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: clamp(1.5rem, 4vw, 3rem);
}

.ro-bottom-cta a {
	color: #fff;
}

.ro-bottom-newsletter .ro-newsletter-form {
	margin-top: 1rem;
}

.ro-bottom-newsletter form > p,
.ro-footer-newsletter form > p {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.ro-bottom-newsletter input[type="email"],
.ro-footer-newsletter input[type="email"] {
	background: #fff;
	border: 1px solid var(--ro-color-line);
	font: inherit;
	max-width: 100%;
	padding: 0.75rem;
}

.ro-bottom-newsletter button,
.ro-bottom-newsletter input[type="submit"],
.ro-footer-newsletter button,
.ro-footer-newsletter input[type="submit"] {
	background: var(--ro-color-accent);
	border: 1px solid var(--ro-color-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.75rem 1rem;
}

.ro-bottom-newsletter button,
.ro-footer-newsletter button {
	margin-left: 0 !important;
}

.ro-bottom-newsletter .ro-newsletter-preview-notice {
	color: var(--ro-color-ink);
}

.ro-content,
.ro-article {
	margin-inline: auto;
	max-width: var(--ro-content-width);
}

.ro-article__title,
.ro-page-title {
	font-size: clamp(2rem, 5vw, 4rem);
}

.ro-article__content {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.ro-article__content > * {
	max-width: 100%;
}

.ro-article__video {
	margin: clamp(1.5rem, 4vw, 3rem) 0;
}

.ro-article__content h2,
.ro-article__content h3 {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.2;
	margin-top: 2.2em;
}

.ro-article__graphic {
	margin: clamp(1.5rem, 4vw, 3rem) 0;
}

.ro-article__graphic img {
	background: #fff;
	border: 1px solid var(--ro-color-line);
	height: auto;
	width: 100%;
}

.ro-article__graphic figcaption {
	margin-top: 0.6rem;
}

.ro-pagination {
	margin-top: 3rem;
}

.ro-site-footer {
	background: var(--ro-color-surface);
	border-top: 1px solid var(--ro-color-line);
	margin-top: 4rem;
	padding-block: 2.5rem;
}

.ro-footer-main {
	display: grid;
	gap: 1.5rem 3rem;
	grid-template-columns: 2fr 1fr;
}

.ro-footer-main--compact {
	grid-template-columns: 1fr;
}

.ro-footer-main p {
	color: var(--ro-color-muted);
	margin: 0.35rem 0 0;
}

.ro-footer-newsletter .ro-footer-widget {
	margin: 0;
}

.ro-footer-newsletter .ro-footer-widget + .ro-footer-widget {
	margin-top: 0.5rem;
}

.ro-footer-newsletter h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	margin: 0;
}

.ro-footer-legal {
	border-top: 1px solid var(--ro-color-line);
	margin-top: 2rem;
	padding-top: 1rem;
}

.ro-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ro-footer-menu a {
	color: var(--ro-color-ink);
	font-size: 0.88rem;
}

.ro-footer-attribution {
	color: var(--ro-color-muted);
	font-size: 0.78rem;
	line-height: 1.55;
	margin: 1rem 0 0;
	max-width: 62rem;
}

.ro-footer-attribution a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ro-newsletter-preview-notice {
	background: #fff;
	border-left: 0.25rem solid var(--ro-color-secondary);
	color: var(--ro-color-muted);
	font-size: 0.9rem;
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
}

@media (max-width: 64rem) {
	.ro-home-hero,
	.ro-editorial-pair,
	.ro-graphic-topics {
		grid-template-columns: 1fr;
	}

	.ro-section__info--right .ro-info-bubble {
		left: 0;
		right: auto;
	}

	.ro-section__info--right .ro-info-bubble::before {
		left: 1.25rem;
		right: auto;
	}

	.ro-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ro-important-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ro-important-list li:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 42rem) {
	.ro-brand-row {
		align-items: stretch;
		flex-direction: column;
	}

	.ro-search .search-field {
		max-width: none;
		min-width: 0;
		width: 100%;
	}

	.ro-card-grid,
	.ro-important-list,
	.ro-bottom-cta,
	.ro-footer-main,
	.ro-topic-grid {
		grid-template-columns: 1fr;
	}

	.ro-important-list li,
	.ro-important-list li:nth-child(3) {
		border-left: 0;
		border-top: 1px solid var(--ro-color-line);
		padding: 0.8rem 0 0;
	}

	.ro-primary-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ro-info-bubble {
		transition: none;
	}
}

@media print {
	.ro-site-header,
	.ro-site-footer,
	.ro-bottom-cta,
	.ro-video-load {
		display: none;
	}

	.ro-info-trigger,
	.ro-info-bubble {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}

	.ro-article,
	.ro-content {
		max-width: none;
	}
}
