/* ==========================================================================
   Oberhavelkraft – Theme-Stile
   Ergänzt theme.json um alles, was dort nicht abbildbar ist.
   ========================================================================== */

:root {
	--ohk-rot: var(--wp--preset--color--rot, #ff0000);
	--ohk-schwarz: var(--wp--preset--color--schwarz, #000);
	--ohk-text: var(--wp--preset--color--text, #333);
	--ohk-linie: rgba(0, 0, 0, 0.3);
	--ohk-header-hoehe: 64px;
	--ohk-mono: var(--wp--preset--font-family--roboto-mono);
	--ohk-future: var(--wp--preset--font-family--the-future);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ohk-header-hoehe) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Überschriften wie bisher: H2 mit Stilset ss08 der The Future */
h2,
.wp-block-heading:where(h2) {
	font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
	font-feature-settings: "ss08" on, "liga" on, "clig" on, "dlig" on;
}

:where(.wp-block-post-content) h1 {
	color: #000;
}

/* Links im Text: schwarz mit roter Unterstreichung (gut lesbar, Rot bleibt Akzent) */
a:where(:not(.wp-element-button):not(.wp-block-navigation-item__content)) {
	text-decoration-color: var(--ohk-rot);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

a:where(:not(.wp-element-button):not(.wp-block-navigation-item__content)):hover {
	text-decoration-line: underline;
	text-decoration-color: currentColor;
}

.has-rot-background-color a:where(:not(.wp-element-button)),
.is-style-karte-rot a:where(:not(.wp-element-button)) {
	text-decoration-color: #000;
}

strong,
b {
	font-weight: 700;
}

/* Größen wie auf der ClubDesk-Seite */
h3,
.wp-block-heading:where(h3) {
	font-size: 1.25rem;
	font-weight: 700;
}

h6,
.wp-block-heading:where(h6) {
	font-size: 1.6875rem;
	font-weight: 400;
	letter-spacing: 10px;
	line-height: 1.5;
}

@media (max-width: 600px) {
	h6,
	.wp-block-heading:where(h6) {
		font-size: 1.3rem;
		letter-spacing: 6px;
	}
}

/* Absätze innerhalb von Listen, Tabellen usw. erben die Schrift */
li > p,
td > p {
	font-family: inherit;
	font-weight: inherit;
}

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

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */

.ohk-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	transition: box-shadow 0.3s ease;
}

body.ohk-gescrollt .ohk-site-header {
	box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.ohk-header {
	min-height: var(--ohk-header-hoehe);
	gap: 1.5rem;
}

.ohk-header .ohk-logo {
	margin: 0;
	flex-shrink: 0;
}

.ohk-header .ohk-logo img {
	display: block;
}

/* Auf der Startseite steht das große Logo im Hero – oben im Kopf erst nach dem Scrollen */
body.ohk-sticker-sichtbar .ohk-header .ohk-logo {
	visibility: hidden;
	opacity: 0;
}

body.ohk-hat-hero .ohk-header .ohk-logo {
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ohk-header-rechts {
	gap: 1.5rem;
}

/* Navigation (Desktop) */
.ohk-nav {
	font-family: var(--ohk-mono);
	font-weight: 400;
	gap: 1.75rem;
}

.ohk-nav .wp-block-navigation-item__content,
.ohk-nav .wp-block-navigation__submenu-icon {
	color: #000 !important;
	text-decoration: none;
}

.ohk-nav .wp-block-navigation-item__content:hover,
.ohk-nav .wp-block-navigation-item__content:focus,
.ohk-nav .current-menu-item > .wp-block-navigation-item__content,
.ohk-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 0.3em;
}

.ohk-nav .wp-block-navigation__submenu-container {
	background-color: var(--ohk-rot) !important;
	border: 0 !important;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
	padding: 0.5rem 0;
	min-width: 16rem !important;
}

.ohk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.4rem 1.25rem !important;
}

/* Menü-Knopf (Mobil): Symbol + „Menü“ wie bisher */
.ohk-nav .wp-block-navigation__responsive-container-open {
	color: #000;
	font-family: var(--ohk-mono);
	font-size: 1.25rem;
	font-weight: 400;
	gap: 0.5rem;
	color: rgba(0, 0, 0, 0.85);
}

.ohk-nav .wp-block-navigation__responsive-container-open::after {
	content: "Menü";
}

/* Tablet (600–1099 px): das Menü passt nicht in eine Zeile – dort auch das Vollbild-Menü nutzen */
@media (min-width: 600px) and (max-width: 1099px) {
	.ohk-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.ohk-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.ohk-header-rechts .ohk-header-cta {
		order: -1;
	}
}

/* Vollbild-Menü (Mobil) */
.ohk-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem var(--wp--preset--spacing--30);
}

.ohk-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	gap: 1rem;
	align-items: flex-start;
}

.ohk-nav .is-menu-open .wp-block-navigation__container,
.ohk-nav .is-menu-open .wp-block-navigation-item,
.ohk-nav .is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}

.ohk-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 1.375rem;
	text-decoration: underline;
}

.ohk-nav .is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none;
	padding: 0.25rem 0 0.5rem 1rem !important;
}

.ohk-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.2rem 0 !important;
	font-size: 1.125rem;
	font-weight: 400;
}

/* Startseite: Kopf-Knopf ausblenden, solange der Sticker „Jetzt Genossin werden“ zu sehen ist */
.ohk-header-cta {
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.ohk-sticker-sichtbar .ohk-header-cta {
	opacity: 0;
	visibility: hidden;
}

/* Handy: Menü-Symbol immer ganz rechts, Knopf links daneben – so bleibt das Symbol an seinem Platz */
@media (max-width: 599px) {
	.ohk-header-rechts .ohk-header-cta {
		order: -1;
	}
}

/* Knopf „Mitglied werden“ im Kopf */
.ohk-header-cta .wp-block-button.is-style-outline > .wp-block-button__link,
.ohk-header-cta .wp-block-button__link {
	font-family: var(--ohk-future) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	min-height: 0 !important;
	padding: 0.4em 1em !important;
	border: 2px solid #000 !important;
	color: #000;
	background: transparent;
	white-space: nowrap;
}

.ohk-header-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ohk-header-cta .wp-block-button__link:hover {
	background: #000;
	color: #fff;
}

@media (max-width: 600px) {
	.ohk-header {
		gap: 0.75rem;
	}
	.ohk-header-rechts {
		gap: 0.75rem;
	}
	.ohk-header .ohk-logo img {
		height: 36px !important;
	}
	.ohk-header-cta .wp-block-button__link {
		font-size: 0.875rem;
		padding: 0.3em 0.6em;
	}
	.ohk-nav .wp-block-navigation__responsive-container-open::after {
		content: "";
	}
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */

.wp-block-button__link {
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Einheitliches Knopf-System:
   Haupt = rot mit weißer Schrift, Neben = schwarzer Umriss. Gleiche Schrift, Größe und Höhe.
   Schrift 19 px fett, damit Weiß auf Rot als „große Schrift“ lesbar bleibt. */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	box-sizing: border-box;
	text-align: center;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	border: 2px solid #000;
	color: #000;
	padding: 0.75em 1.5em;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* Auf Rot: Hauptknopf schwarz, Umriss schwarz */
:is(.has-rot-background-color, .is-style-karte-rot) .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #000;
	border-color: #000;
	color: #fff;
}

:is(.has-rot-background-color, .is-style-karte-rot) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: #000;
}

/* Knöpfe über die ganze Spaltenbreite (wie die roten CTA-Knöpfe bisher) */
.wp-block-buttons.ohk-volle-breite > .wp-block-button {
	width: 100%;
}

.wp-block-buttons.ohk-volle-breite .wp-block-button__link {
	width: 100%;
	display: block;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Hero (Startseite)
   -------------------------------------------------------------------------- */

.ohk-hero {
	--wp--style--global--content-size: 1175px;
	position: relative;
	min-height: calc(100vh - var(--ohk-header-hoehe) - var(--wp-admin--admin-bar--height, 0px));
	padding-top: 20px !important;
	padding-bottom: 60px !important;
	background-repeat: no-repeat !important;
	background-size: 1080px auto !important;
	background-position: 50% 100% !important;
	overflow: hidden;
}

/* Logo wie bisher: 392 px breit, oben links */
.ohk-hero .ohk-hero-logo {
	margin: 0;
}

.ohk-hero .ohk-hero-logo img {
	width: clamp(170px, 31vw, 392px) !important;
	height: auto !important;
}

/* Sticker „Jetzt Genossin werden“: 235 px, rechts neben dem Logo, nicht gedreht */
.ohk-hero .ohk-hero-sticker {
	position: absolute;
	top: 80px;
	right: max(1rem, calc((100% - 1175px) / 2 + 78px));
	margin: 0;
	z-index: 2;
}

.ohk-hero .ohk-hero-sticker img {
	width: clamp(105px, 18.5vw, 235px) !important;
	height: auto !important;
	transition: transform 0.2s ease;
}

.ohk-hero .ohk-hero-sticker a:hover img {
	transform: scale(1.04);
}

/* Sonne: zieht ruhig eine flache Umlaufbahn (18 s pro Runde) und glüht leicht.
   Zwei gleich lange Schwingungen, um eine Viertelrunde versetzt, ergeben die Ellipse.
   Beim Zeigen mit der Maus hält sie an; bei „Bewegung reduzieren“ steht sie still. */
.ohk-hero .ohk-hero-sticker {
	animation: ohk-sonne-x 9s ease-in-out infinite alternate;
}

.ohk-hero .ohk-hero-sticker a {
	display: block;
	animation: ohk-sonne-y 9s ease-in-out -4.5s infinite alternate;
}

.ohk-hero .ohk-hero-sticker img {
	animation: ohk-sonne-glut 4s ease-in-out infinite;
}

.ohk-hero .ohk-hero-sticker:hover,
.ohk-hero .ohk-hero-sticker:hover * {
	animation-play-state: paused;
}

@keyframes ohk-sonne-x {
	from { transform: translateX(-13%); }
	to { transform: translateX(13%); }
}

@keyframes ohk-sonne-y {
	from { transform: translateY(-5%); }
	to { transform: translateY(5%); }
}

@keyframes ohk-sonne-glut {
	0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 200, 0, 0)); }
	50% { filter: drop-shadow(0 0 16px rgba(255, 210, 0, 0.95)); }
}

@media (prefers-reduced-motion: reduce) {
	.ohk-hero .ohk-hero-sticker,
	.ohk-hero .ohk-hero-sticker a,
	.ohk-hero .ohk-hero-sticker img {
		animation: none;
	}
}

.editor-styles-wrapper .ohk-hero .ohk-hero-sticker,
.editor-styles-wrapper .ohk-hero .ohk-hero-sticker a,
.editor-styles-wrapper .ohk-hero .ohk-hero-sticker img {
	animation: none;
}

/* Titel wie bisher: The Future Regular, 54 px, 10 px Laufweite, Großbuchstaben */
.ohk-hero .ohk-hero-titel,
.wp-block-heading.is-style-hero {
	font-family: var(--ohk-future);
	font-weight: 400;
	font-size: clamp(1.9rem, 4.25vw, 3.375rem);
	letter-spacing: clamp(4px, 0.8vw, 10px);
	line-height: 0.97;
	text-transform: uppercase;
	color: #000;
	margin-top: clamp(2.5rem, 8.4vw, 107px);
	margin-bottom: 0;
}

.ohk-hero .ohk-hero-unterzeile {
	color: #000;
	margin-top: clamp(1.5rem, 5vw, 67px);
	font-size: 1.125rem;
}

/* Desktop: fließendes Raster wie auf der ClubDesk-Seite.
   Logo = ein Drittel der Breite, Sticker = 60 % davon im rechten Drittel, Titel fest 54 px. */
@media (min-width: 782px) {
	.ohk-hero {
		--ohk-rand: min(3.55vw, 50px);
		--ohk-drittel: calc((100vw - 2 * var(--ohk-rand)) / 3);
		--wp--style--global--content-size: calc(100vw - 2 * var(--ohk-rand));
		padding-left: var(--ohk-rand) !important;
		padding-right: var(--ohk-rand) !important;
	}
	.ohk-hero > * {
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.ohk-hero .ohk-hero-logo img {
		width: var(--ohk-drittel) !important;
	}
	.ohk-hero .ohk-hero-sticker {
		top: calc(20px + 0.16 * var(--ohk-drittel));
		left: calc(var(--ohk-rand) + 2.2 * var(--ohk-drittel));
		right: auto;
	}
	.ohk-hero .ohk-hero-sticker img {
		width: calc(0.6 * var(--ohk-drittel)) !important;
	}
	.ohk-hero .ohk-hero-titel {
		font-size: 3.375rem;
		letter-spacing: 10px;
		margin-top: 9.75vw;
	}
	.ohk-hero .ohk-hero-unterzeile {
		margin-top: 50px;
	}
}

@media (max-width: 1100px) {
	.ohk-hero {
		background-size: auto 78% !important;
	}
}

@media (max-width: 781px) {
	.ohk-hero {
		background-size: auto 55% !important;
		background-position: 75% 100% !important;
		padding-top: 9vh !important;
		padding-bottom: 50vh !important;
	}
	.ohk-hero .ohk-hero-sticker {
		top: calc(9vh + 4px);
	}
	.ohk-hero .ohk-hero-titel {
		margin-top: 3.5rem;
	}
	.ohk-hero .ohk-hero-unterzeile {
		margin-top: 2rem;
	}
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.ohk-abschnitt {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	margin-top: 0 !important;
}

/* Unterseiten: Inhalt beginnt wie bisher knapp unter der Kopfzeile */
.ohk-main:has(> .wp-block-post-content > .ohk-abschnitt:first-child) {
	padding-top: 0 !important;
}

.wp-block-post-content > .ohk-abschnitt:first-child:not(.has-background) {
	padding-top: 56px;
}

.wp-block-separator {
	border-top-width: 1px;
	opacity: 1;
}

/* Rote Abschnitte: Text und Überschriften schwarz */
.has-rot-background-color {
	color: #000;
}

.has-rot-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: #000;
}

.has-rot-background-color a:where(:not(.wp-element-button)) {
	color: #000;
}

/* --------------------------------------------------------------------------
   Listen: wie bisher mit Trennlinien statt Aufzählungspunkten
   -------------------------------------------------------------------------- */

.wp-block-post-content ul.wp-block-list,
ul.wp-block-list.is-style-linien {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.wp-block-post-content ul.wp-block-list > li,
ul.wp-block-list.is-style-linien > li {
	border-top: 1px solid var(--ohk-linie);
	padding: 1.1rem 0;
}

.wp-block-post-content ol.wp-block-list > li {
	padding: 0;
}

.wp-block-post-content ol.wp-block-list > li::marker {
	font-family: var(--ohk-mono);
}

/* --------------------------------------------------------------------------
   Rote Karten (Startseite: drei Wege, Bürgerstrom, Mitmachen)
   -------------------------------------------------------------------------- */

.ohk-karte,
.wp-block-group.is-style-karte-rot {
	background: var(--ohk-rot);
	border-radius: 8px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	color: #000;
}

.ohk-karte :where(h2, h3, p),
.is-style-karte-rot :where(h2, h3, p) {
	color: #000;
	margin-top: 0;
}

.is-style-karte-rot > * + * {
	margin-top: 0.75rem;
}

.ohk-wege {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.ohk-wege > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.ohk-wege > .wp-block-column > .is-style-karte-rot {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ohk-wege .is-style-karte-rot > .wp-block-buttons {
	margin-top: auto;
	padding-top: 1rem;
}

.ohk-wege-mehr {
	margin-top: var(--wp--preset--spacing--30) !important;
}

/* --------------------------------------------------------------------------
   Zahlenleiste (Startseite)
   -------------------------------------------------------------------------- */

.ohk-zahlen {
	margin-top: 0 !important;
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Desktop: gleiche Breite und Ränder wie der Hero */
@media (min-width: 782px) {
	.ohk-zahlen {
		--ohk-rand: min(3.55vw, 50px);
		padding-left: var(--ohk-rand) !important;
		padding-right: var(--ohk-rand) !important;
	}
	.ohk-zahlen > * {
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.ohk-zahlen-spalten {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	gap: 1.5rem 2rem;
}

.ohk-zahl {
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: clamp(1.75rem, 2.7vw, 2.25rem);
	line-height: 1;
	color: var(--ohk-rot);
	margin: 0;
	white-space: nowrap;
}

.ohk-zahl-text {
	font-family: var(--ohk-mono);
	font-size: 0.875rem;
	line-height: 1.4;
	color: #fff;
	margin: 0.6rem 0 0 !important;
}

@media (max-width: 781px) {
	.ohk-zahlen-spalten {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	.ohk-zahl {
		font-size: min(1.5rem, 5.5vw);
	}
}

/* --------------------------------------------------------------------------
   Lesespalte: Fließtext höchstens ca. 65 Zeichen breit, linksbündig im Raster
   -------------------------------------------------------------------------- */

.is-style-lesespalte > :where(:not(.alignfull):not(.alignwide)) {
	max-width: min(38rem, 100%) !important;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1080px)) / 2)) !important;
	margin-right: auto !important;
}

.is-style-lesespalte > :where(h1, h2, .ohk-faq, .wp-block-buttons) {
	max-width: min(48rem, 100%) !important;
}

.is-style-lesespalte > :where(.wp-block-columns, .wp-block-gallery, .ohk-personen, .wp-block-separator) {
	max-width: min(var(--wp--style--global--content-size, 1080px), 100%) !important;
}

/* --------------------------------------------------------------------------
   Vorstand und Aufsichtsrat
   -------------------------------------------------------------------------- */

.ohk-person .wp-block-image {
	margin: 0 0 0.75rem;
}

.ohk-person .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.ohk-person-name {
	font-family: var(--ohk-future) !important;
	font-weight: 700 !important;
	font-size: 1rem;
	margin: 0 !important;
	color: #000;
}

.ohk-person-rolle {
	font-family: var(--ohk-mono) !important;
	font-weight: 400 !important;
	font-size: 0.8rem;
	color: #444;
	margin: 0.15rem 0 0 !important;
}

/* --------------------------------------------------------------------------
   Neuigkeiten-Kacheln
   -------------------------------------------------------------------------- */

.ohk-kachel {
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ohk-kachel .wp-block-post-featured-image {
	margin: 0 0 0.75rem;
	overflow: hidden;
}

.ohk-kachel .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}

.ohk-kachel:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.ohk-kachel .wp-block-post-title {
	font-family: var(--ohk-future);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.ohk-kachel .wp-block-post-title a {
	color: #000;
	text-decoration: none;
}

.ohk-kachel .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ohk-rot);
}

.ohk-kachel .wp-block-post-featured-image img {
	object-fit: cover;
	width: 100%;
}

.ohk-kachel .wp-block-post-date {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
}

.ohk-kachel .ohk-kachel-kategorie {
	font-family: var(--ohk-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.4rem;
	color: #000;
}

.ohk-kachel .ohk-kachel-kategorie a {
	color: inherit;
	text-decoration: none;
}

.ohk-kachel .wp-block-post-excerpt,
.ohk-kachel .wp-block-post-excerpt__excerpt {
	font-size: 0.95rem;
	line-height: 1.45;
	margin: 0.5rem 0 0;
}

/* Termine: Datum groß und zuerst */
.category-termine .ohk-kachel > * {
	order: 3;
}

.category-termine .ohk-kachel > .wp-block-post-featured-image {
	order: 0;
}

.category-termine .ohk-kachel > .ohk-kachel-kategorie {
	order: 1;
}

.category-termine .ohk-kachel > .wp-block-post-date,
.ohk-kategorie-termine .ohk-beitrag > .wp-block-post-date {
	order: 2;
	align-self: flex-start;
	display: inline-block;
	background: var(--ohk-rot);
	color: #000;
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.2;
	padding: 0.15em 0.5em;
	margin: 0 0 0.5rem;
}

.ohk-kategorie-termine .ohk-beitrag > .wp-block-post-date {
	width: fit-content;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1080px)) / 2)) !important;
}

/* Filter nach Thema über dem Raster */
.ohk-themen {
	gap: 0.5rem !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
	font-family: var(--ohk-mono);
	font-size: 0.875rem;
}

.ohk-themen p,
.ohk-themen ul {
	margin: 0;
}

.ohk-themen ul.wp-block-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
}

.ohk-themen a {
	display: inline-block;
	padding: 0.35em 0.9em;
	border: 2px solid #000;
	color: #000;
	text-decoration: none;
}

.ohk-themen a:hover,
.ohk-themen .current-cat > a,
body.blog .ohk-themen .ohk-themen-alle a {
	background: #000;
	color: #fff;
}

.ohk-kachel .wp-block-post-excerpt__more-text {
	display: none;
}

.ohk-news .wp-block-query-pagination {
	margin-top: 2.5rem;
	font-family: var(--ohk-mono);
}

/* Einzelne Meldung */
.ohk-zurueck {
	font-family: var(--ohk-mono) !important;
	font-size: 0.9rem;
}

.ohk-zurueck a {
	color: #000;
}

.ohk-beitrag .wp-block-post-title {
	margin-top: 0.25rem;
}

.ohk-beitrag-inhalt::after {
	content: "";
	display: table;
	clear: both;
}

.ohk-beitrag-bild {
	margin: 0 0 1.5rem !important;
}

.ohk-beitrag-bild img {
	width: 100%;
	max-height: 70vh;
	object-fit: contain;
	object-position: left top;
}

.ohk-beitrag-nav {
	font-family: var(--ohk-mono);
	font-size: 0.9rem;
	margin-top: 1rem;
}

.ohk-beitrag-nav a {
	color: #000;
}

/* --------------------------------------------------------------------------
   FAQ (Details-Block)
   -------------------------------------------------------------------------- */

.wp-block-details.is-style-faq,
.ohk-faq .wp-block-details {
	background: #eee;
	margin: 0 0 4px !important;
	padding: 0;
}

.wp-block-details.is-style-faq > summary,
.ohk-faq .wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 48px 18px 18px;
	position: relative;
	font-family: var(--ohk-future);
	font-weight: 400;
	color: #000;
	transition: background-color 0.4s;
}

.wp-block-details.is-style-faq > summary::-webkit-details-marker,
.ohk-faq .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq > summary::after,
.ohk-faq .wp-block-details > summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--ohk-mono);
	font-size: 1.25rem;
	color: #000;
}

.wp-block-details.is-style-faq[open] > summary::after,
.ohk-faq .wp-block-details[open] > summary::after {
	content: "−";
}

.wp-block-details.is-style-faq > summary:hover,
.wp-block-details.is-style-faq[open] > summary,
.ohk-faq .wp-block-details > summary:hover,
.ohk-faq .wp-block-details[open] > summary {
	background-color: var(--ohk-rot);
	color: #000;
}

.wp-block-details.is-style-faq > :not(summary),
.ohk-faq .wp-block-details > :not(summary) {
	background: #fff;
	margin: 0;
	padding: 0.75rem 18px;
}

/* --------------------------------------------------------------------------
   Downloads (Datei-Block)
   -------------------------------------------------------------------------- */

.wp-block-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--ohk-linie);
	padding: 0.75rem 0;
	margin: 0;
}

.wp-block-file:last-child {
	border-bottom: 1px solid var(--ohk-linie);
}

.wp-block-file a:not(.wp-block-file__button) {
	color: #000;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wp-block-file .wp-block-file__button {
	flex-shrink: 0;
}

.wp-block-file a:not(.wp-block-file__button)::before {
	content: "↓ ";
	color: var(--ohk-rot);
}

.wp-block-file .wp-block-file__button {
	background: #000;
	color: #fff;
	border-radius: 0;
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.45em 1em;
	text-decoration: none;
}

.wp-block-file .wp-block-file__button:hover {
	background: var(--ohk-rot);
	color: #000;
}

/* --------------------------------------------------------------------------
   Formulare (Contact Form 7 + DirectMail)
   -------------------------------------------------------------------------- */

.wpcf7 form,
form.ohk-formular {
	display: grid;
	gap: 1rem;
}

.wpcf7 p {
	margin: 0;
}

.wpcf7 label,
.ohk-formular label {
	display: block;
	font-size: 1rem;
	color: #000;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
.ohk-formular input[type="text"],
.ohk-formular input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.3rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #333;
	border-radius: 0;
	background: #fff;
	font-family: var(--ohk-future);
	font-size: 1rem;
	color: #000;
}

.wpcf7 textarea {
	min-height: 9rem;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.ohk-formular input:focus {
	outline: 3px solid var(--ohk-rot);
	outline-offset: 0;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 0.3rem 0 0;
}

.wpcf7 .wpcf7-list-item label,
.ohk-formular .ohk-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.95rem;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"],
.ohk-formular input[type="checkbox"] {
	accent-color: var(--ohk-rot);
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.wpcf7 input[type="submit"],
.ohk-formular input[type="submit"],
.ohk-formular button[type="submit"] {
	justify-self: start;
	min-height: 3.25rem;
	background: var(--ohk-rot);
	color: #fff;
	border: 2px solid var(--ohk-rot);
	border-radius: 0;
	padding: 0.75em 1.5em;
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.25;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.ohk-formular input[type="submit"]:hover {
	background: #000;
	border-color: #000;
}

.wpcf7 fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.wpcf7 legend,
.ohk-formular-gruppe {
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: 1.375rem;
	color: var(--ohk-rot);
	margin: 1rem 0 0.25rem;
	padding: 0;
}

.wpcf7-not-valid-tip {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: #000;
	border-left: 4px solid var(--ohk-rot);
	padding-left: 0.5rem;
	margin-top: 0.3rem;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

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

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2a7a2a;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--ohk-rot);
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 2px solid #000;
}

.wpcf7-spinner {
	display: none;
}

.ohk-label {
	font-family: var(--ohk-mono) !important;
	font-weight: 400 !important;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #000;
	margin-bottom: 0.25rem !important;
}

.ohk-label::before {
	content: "";
	display: inline-block;
	width: 0.65em;
	height: 0.65em;
	margin-right: 0.5em;
	background: var(--ohk-rot);
	vertical-align: 0.02em;
}

:is(.has-rot-background-color, .is-style-karte-rot) .ohk-label::before {
	background: #fff;
}

.ohk-formular-hinweis {
	font-size: 0.85rem !important;
}

/* --------------------------------------------------------------------------
   Newsletter-Fenster (ohne JavaScript, über :target)
   -------------------------------------------------------------------------- */

.ohk-modal {
	display: none;
}

.ohk-modal:target {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 1000;
	margin: 0 !important;
	max-width: none !important;
	padding: 1rem;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
}

.ohk-modal-box {
	background: #fff;
	width: min(36rem, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 1.5rem 2rem 2rem;
	position: relative;
	margin: 0 !important;
}

.ohk-modal-schliessen {
	position: absolute;
	top: 0.5rem;
	right: 1rem;
	margin: 0 !important;
	font-family: var(--ohk-mono) !important;
	font-size: 1.75rem;
	line-height: 1;
}

.ohk-modal-schliessen a {
	color: #000;
	text-decoration: none;
}

.ohk-modal-schliessen a:hover {
	color: var(--ohk-rot);
}

.ohk-modal-box--breit {
	width: min(72rem, 100%);
	padding: 2.5rem 1rem 1rem;
}

.ohk-modal-box--breit iframe {
	display: block;
	width: 100%;
	height: min(75vh, 640px);
	border: 0;
	background: #111;
}

.ohk-iframe-live iframe {
	display: block;
	width: 100%;
	border: 0;
	background: #000;
}

.ohk-iframe-beitritt iframe {
	display: block;
	width: 100%;
	height: 1950px;
	border: 0;
	background: #fff;
}

@media (max-width: 600px) {
	.ohk-iframe-beitritt iframe {
		height: 2600px;
	}
}

.editor-styles-wrapper .ohk-modal {
	display: block;
	border: 2px dashed #ccc;
	padding: 1rem;
}

/* --------------------------------------------------------------------------
   Bürgerwerke-Tarifrechner
   -------------------------------------------------------------------------- */

bw-produkte {
	display: block;
	max-width: 100%;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */

.ohk-site-footer {
	margin-top: 0;
}

.ohk-footer .ohk-footer-logo {
	margin: 0;
}

.ohk-footer .ohk-footer-logo img {
	width: min(100%, 420px);
}

.ohk-footer .ohk-footer-adresse {
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	line-height: 1.3;
	margin-top: 0;
}

.ohk-footer .ohk-footer-links {
	font-family: var(--ohk-future);
	font-weight: 700;
	font-size: 1.125rem;
}

.ohk-footer .ohk-footer-register {
	font-weight: 400;
	font-size: 0.95rem;
}

.ohk-footer .ohk-social {
	gap: 0.75rem;
}

.ohk-partner-titel {
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.ohk-partner-logos {
	gap: 1.75rem 2.25rem !important;
}

.ohk-partner-logos .wp-block-image {
	margin: 0;
}

.ohk-partner-logos .wp-block-image img {
	height: 40px;
	width: auto;
	max-width: 170px;
	object-fit: contain;
}

/* --------------------------------------------------------------------------
   Kleinkram
   -------------------------------------------------------------------------- */

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.has-rot-background-color :focus-visible {
	outline-color: #fff;
}

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

/* Thema über einer einzelnen Meldung */
.ohk-beitrag-kategorie {
	font-family: var(--ohk-mono);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0 !important;
}

.ohk-beitrag-kategorie a {
	color: #000;
	text-decoration: none;
}
