/**
 * HOER Berlin design foundation.
 *
 * Keep component and page styles in this file. The theme header belongs in
 * the root style.css file.
 */

:root {
	--hoer-color-black: #161616;
	--hoer-color-yellow: #FFC400;
	--hoer-color-graphite: #4A4A4A;
	--hoer-color-mist: #F2F2EF;
	--hoer-color-white: #FFFFFF;
	--hoer-color-accent: var(--hoer-color-yellow);
	--hoer-color-text: var(--hoer-color-black);
	--hoer-color-text-secondary: var(--hoer-color-graphite);
	--hoer-color-surface-muted: var(--hoer-color-mist);
	--hoer-color-focus: var(--hoer-color-black);
	--hoer-color-border: var(--hoer-color-graphite);
	--hoer-content-max-width: 72rem;
	--hoer-reading-max-width: 48rem;
	--hoer-space-xs: 0.5rem;
	--hoer-space-sm: 1rem;
	--hoer-space-md: 1.5rem;
	--hoer-space-lg: 2rem;
	--hoer-space-xl: 3rem;
	--hoer-space-2xl: 4rem;
	--hoer-space-3xl: 5rem;
	--hoer-radius: 0.75rem;
	--hoer-font-display: "Inter Display", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hoer-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hoer-font-size-h1: 3rem;
	--hoer-line-height-h1: 3.5rem;
	--hoer-font-size-h2: 2rem;
	--hoer-line-height-h2: 2.5rem;
	--hoer-font-size-text: 1.125rem;
	--hoer-line-height-text: 1.75rem;
	--hoer-font-size-button: 1.125rem;
	--hoer-line-height-button: 1.375rem;
}

:focus-visible {
	outline: 3px solid var(--hoer-color-focus);
	outline-offset: 4px;
}

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

.home .site-content,
.page-template-page-barrierefreiheit .site-content,
.page-template-page-so-funktioniert-es .site-content,
.page-template-page-ueber-hoer-berlin .site-content,
.post-type-archive-hoer_ort .site-content {
	background: var(--hoer-color-white);
}

.single-hoer_ort,
.single-hoer_ort #page,
.single-hoer_ort .site-content {
	background: var(--hoer-color-white);
}

.hoer-home,
.hoer-how-it-works,
.hoer-location,
.hoer-location-archive,
.hoer-site-header,
.hoer-site-footer {
	color: var(--hoer-color-text);
	font-family: var(--hoer-font-body);
	font-size: var(--hoer-font-size-text);
	line-height: var(--hoer-line-height-text);
}

.hoer-home a,
.hoer-home a:visited,
.hoer-how-it-works a,
.hoer-how-it-works a:visited,
.hoer-location a,
.hoer-location a:visited,
.hoer-location-archive a,
.hoer-location-archive a:visited,
.hoer-site-header a,
.hoer-site-header a:visited,
.hoer-site-footer a,
.hoer-site-footer a:visited {
	color: var(--hoer-color-text);
}

.hoer-home__location-content h3 a,
.hoer-location-summary__content h2 a {
	text-decoration-line: underline;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.2em;
}

.hoer-home h1,
.hoer-home h2,
.hoer-home h3,
.hoer-how-it-works h1,
.hoer-how-it-works h2,
.hoer-location h1,
.hoer-location h2,
.hoer-location h3,
.hoer-location-archive h1,
.hoer-location-archive h2,
.hoer-location-archive h3 {
	color: var(--hoer-color-text);
	font-family: var(--hoer-font-display);
	font-weight: 800;
	text-align: start;
}

.hoer-home h1,
.hoer-how-it-works h1,
.hoer-location h1,
.hoer-location-archive h1 {
	font-size: var(--hoer-font-size-h1);
	line-height: var(--hoer-line-height-h1);
}

.hoer-home h2,
.hoer-how-it-works h2,
.hoer-location h2,
.hoer-location-archive h2 {
	font-size: var(--hoer-font-size-h2);
	line-height: var(--hoer-line-height-h2);
}

.hoer-home h3,
.hoer-location h3,
.hoer-location-archive h3 {
	font-size: 1.375rem;
	line-height: 1.75rem;
}

.hoer-how-it-works {
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-xl) var(--hoer-space-md);
	color: var(--hoer-color-text);
	overflow-wrap: anywhere;
}

.hoer-how-it-works__header {
	max-width: var(--hoer-reading-max-width);
	padding: var(--hoer-space-xl);
	background: var(--hoer-color-surface-muted);
	border-inline-start: 0.5rem solid var(--hoer-color-accent);
	border-radius: var(--hoer-radius);
}

.hoer-how-it-works__header h1 {
	margin-block-start: 0;
}

.hoer-how-it-works__header p {
	margin-block-end: 0;
	color: var(--hoer-color-text-secondary);
}

.hoer-how-it-works__steps {
	display: grid;
	gap: var(--hoer-space-lg);
	margin: var(--hoer-space-2xl) 0 0;
	padding: 0;
	list-style: none;
}

.hoer-how-it-works__step {
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-white);
	border: 1px solid var(--hoer-color-border);
	border-block-start: 0.25rem solid var(--hoer-color-accent);
	border-radius: var(--hoer-radius);
}

.hoer-how-it-works__step h2 {
	margin-block-start: 0;
}

.hoer-how-it-works__step > p {
	max-width: 68ch;
}

.hoer-how-it-works__step > :last-child {
	margin-block-end: 0;
}

.hoer-how-it-works__inline-link a {
	font-weight: 700;
	text-decoration-line: underline;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.2em;
}

.hoer-how-it-works__control {
	margin-block-start: var(--hoer-space-2xl);
	padding: var(--hoer-space-xl);
	background: var(--hoer-color-surface-muted);
	border-radius: var(--hoer-radius);
}

.hoer-how-it-works__control h2 {
	margin-block-start: 0;
}

.hoer-how-it-works__control ul {
	margin-inline-start: var(--hoer-space-md);
}

.hoer-how-it-works__media-note {
	margin-block: var(--hoer-space-lg) 0;
	padding-block-start: var(--hoer-space-md);
	border-block-start: 1px solid var(--hoer-color-border);
}

.hoer-how-it-works__navigation {
	display: flex;
	margin-block-start: var(--hoer-space-2xl);
	flex-wrap: wrap;
	gap: var(--hoer-space-md);
}

.hoer-how-it-works__primary-action,
.hoer-how-it-works__secondary-action {
	display: inline-flex;
	min-height: 3rem;
	padding: var(--hoer-space-sm) var(--hoer-space-lg);
	align-items: center;
	color: var(--hoer-color-text);
	border: 2px solid var(--hoer-color-text);
	border-radius: var(--hoer-radius);
	font-size: var(--hoer-font-size-button);
	font-weight: 700;
	line-height: var(--hoer-line-height-button);
	text-align: center;
}

.hoer-how-it-works__primary-action {
	background: var(--hoer-color-accent);
}

.hoer-how-it-works__secondary-action {
	background: var(--hoer-color-white);
}

.hoer-about__sections {
	display: grid;
	gap: var(--hoer-space-lg);
	margin-block-start: var(--hoer-space-2xl);
}

.hoer-about__section {
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-white);
	border: 1px solid var(--hoer-color-border);
	border-radius: var(--hoer-radius);
}

.hoer-about__section--muted {
	background: var(--hoer-color-surface-muted);
}

.hoer-about__section h2 {
	margin-block-start: 0;
}

.hoer-about__section > p {
	max-width: 68ch;
}

.hoer-about__section > :last-child {
	margin-block-end: 0;
}

.hoer-about__status {
	border-block-start: 0.25rem solid var(--hoer-color-accent);
}

.hoer-location {
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-xl) var(--hoer-space-md);
	color: var(--hoer-color-text);
}

.hoer-location__header,
.hoer-location__section,
.hoer-location__back {
	margin-block-end: var(--hoer-space-xl);
}

.hoer-location__title {
	margin-block-end: var(--hoer-space-md);
}

.hoer-location__intro {
	max-width: var(--hoer-reading-max-width);
	color: var(--hoer-color-text-secondary);
	font-size: var(--hoer-font-size-text);
	line-height: var(--hoer-line-height-text);
}

.hoer-location__section {
	padding-block-start: var(--hoer-space-sm);
	border-block-start: 0.125rem solid var(--hoer-color-accent);
}

.hoer-location__section h2 {
	margin-block: var(--hoer-space-sm) var(--hoer-space-md);
}

.hoer-location__sensory {
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-surface-muted);
	border: 1px solid var(--hoer-color-border);
	border-block-start: 0.125rem solid var(--hoer-color-accent);
	border-radius: var(--hoer-radius);
}

.hoer-location__details {
	margin: 0;
}

.hoer-location__details > div {
	display: grid;
	grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
	gap: var(--hoer-space-sm) var(--hoer-space-lg);
	padding-block: var(--hoer-space-sm);
	border-block-end: 1px solid var(--hoer-color-border);
}

.hoer-location__details dt {
	font-weight: 700;
}

.hoer-location__details dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.hoer-location__back a {
	display: inline-flex;
	min-height: 3rem;
	padding: var(--hoer-space-sm) var(--hoer-space-md);
	align-items: center;
	color: var(--hoer-color-text);
	background: var(--hoer-color-white);
	border: 2px solid var(--hoer-color-text);
	border-radius: var(--hoer-radius);
	font-size: var(--hoer-font-size-button);
	font-weight: 700;
	line-height: var(--hoer-line-height-button);
}

.hoer-location__back {
	margin-block-start: var(--hoer-space-2xl);
}

@media (max-width: 40rem) {
	.hoer-location {
		padding-inline: var(--hoer-space-md);
	}

	.hoer-location__sensory {
		padding: var(--hoer-space-md);
	}

	.hoer-location__details > div {
		grid-template-columns: 1fr;
		gap: var(--hoer-space-xs);
	}
}

.hoer-location-archive {
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-xl) var(--hoer-space-md);
	color: var(--hoer-color-text);
}

.hoer-location-archive__header {
	max-width: var(--hoer-reading-max-width);
	margin-block-end: var(--hoer-space-xl);
}

.hoer-location-archive__list {
	display: grid;
	gap: var(--hoer-space-xl);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hoer-location-summary {
	margin: 0;
	padding: var(--hoer-space-md) var(--hoer-space-lg);
	background: var(--hoer-color-surface-muted);
	border: 1px solid var(--hoer-color-border);
	border-radius: var(--hoer-radius);
}

.hoer-location-summary__article {
	display: grid;
	grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
	gap: var(--hoer-space-lg);
	align-items: start;
}

.hoer-location-summary__article.hentry {
	margin: 0;
}

.hoer-location-summary__image {
	overflow: hidden;
	border-radius: var(--hoer-radius);
}

.hoer-location-summary__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: var(--hoer-radius);
	object-fit: cover;
}

.hoer-location-summary__content {
	min-width: 0;
	max-width: var(--hoer-reading-max-width);
}

.hoer-location-summary__content h2,
.hoer-location-summary__sensory h3 {
	margin-block-start: 0;
}

.hoer-location-summary__details {
	margin-block: var(--hoer-space-md);
}

.hoer-location-summary__details > div {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr);
	gap: var(--hoer-space-sm) var(--hoer-space-md);
	padding-block: var(--hoer-space-xs);
}

.hoer-location-summary__details dt {
	font-weight: 700;
}

.hoer-location-summary__details dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.hoer-location__details a,
.hoer-location-summary__details a,
.hoer-home__location-meta a {
	text-decoration-line: underline;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.2em;
}

.hoer-location-summary__sensory {
	margin-block: var(--hoer-space-md);
	padding: var(--hoer-space-md);
	background: var(--hoer-color-surface-muted);
	border: 1px solid var(--hoer-color-border);
	border-radius: var(--hoer-radius);
}

.hoer-location-summary__sensory p {
	margin-block-end: var(--hoer-space-sm);
}

.hoer-location-summary__link {
	margin-block: var(--hoer-space-lg) 0;
}

.hoer-location-summary__link a,
.hoer-location-archive .nav-links a,
.hoer-location-archive .nav-links .current {
	display: inline-flex;
	min-height: 3rem;
	padding: var(--hoer-space-sm) var(--hoer-space-md);
	align-items: center;
	color: var(--hoer-color-text);
	border: 2px solid var(--hoer-color-text);
	border-radius: var(--hoer-radius);
	font-size: var(--hoer-font-size-button);
	line-height: var(--hoer-line-height-button);
}

.hoer-location-summary__link a {
	width: fit-content;
	max-width: 100%;
	background: var(--hoer-color-accent);
	font-weight: 700;
	hyphens: manual;
	overflow-wrap: normal;
	text-wrap: balance;
	word-break: normal;
}

.hoer-location-archive .nav-links a,
.hoer-location-archive .nav-links .current {
	background: var(--hoer-color-white);
}

.hoer-location-archive .nav-links .current {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 0.2rem;
	text-underline-offset: 0.2em;
}

.hoer-location-archive .navigation.pagination {
	margin-block-start: var(--hoer-space-xl);
}

.hoer-location-archive__empty {
	padding-block: var(--hoer-space-lg);
}

@media (max-width: 48rem) {
	.hoer-location-summary {
		padding-inline: var(--hoer-space-md);
	}

	.hoer-location-summary__article,
	.hoer-location-summary__details > div {
		grid-template-columns: 1fr;
	}

	.hoer-location-summary__article {
		gap: var(--hoer-space-lg);
	}
}

.hoer-home {
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-xl) var(--hoer-space-md);
	color: var(--hoer-color-text);
	overflow-wrap: anywhere;
}

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

.hoer-home__hero {
	padding: clamp(2rem, 5vw, 5rem);
	background: var(--hoer-color-surface-muted);
	border-inline-start: 0.5rem solid var(--hoer-color-accent);
	border-radius: var(--hoer-radius);
}

.hoer-home__hero-content {
	max-width: var(--hoer-reading-max-width);
}

.hoer-home__hero h1 {
	max-width: 15ch;
	margin-block-start: 0;
}

.hoer-home__lead {
	color: var(--hoer-color-text-secondary);
	font-size: var(--hoer-font-size-text);
	line-height: var(--hoer-line-height-text);
}

.hoer-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hoer-space-md);
	align-items: center;
	margin-block-start: var(--hoer-space-xl);
}

.hoer-home__primary-action,
.hoer-home__secondary-action,
.hoer-home__location-link a,
.hoer-home__all-locations a {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: var(--hoer-space-sm) var(--hoer-space-lg);
	color: var(--hoer-color-text);
	border: 2px solid var(--hoer-color-text);
	border-radius: var(--hoer-radius);
	font-size: var(--hoer-font-size-button);
	font-weight: 700;
	line-height: var(--hoer-line-height-button);
}

.hoer-home__primary-action,
.hoer-home__location-link a,
.hoer-home__all-locations a {
	color: var(--hoer-color-text);
	background: var(--hoer-color-accent);
}

.hoer-home__secondary-action {
	background: var(--hoer-color-white);
}

.hoer-home__section,
.hoer-home__closing {
	margin-block-start: clamp(3rem, 6vw, 6rem);
}

.hoer-home__section > h2,
.hoer-home__closing > h2 {
	max-width: 24ch;
	margin-block-end: var(--hoer-space-xl);
}

.hoer-home__offer-grid,
.hoer-home__location-grid,
.hoer-home__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hoer-space-xl);
}

.hoer-home__offer {
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-surface-muted);
	border-block-start: 0.25rem solid var(--hoer-color-accent);
	border-radius: var(--hoer-radius);
}

.hoer-home__offer h3,
.hoer-home__location h3,
.hoer-home__steps h3 {
	margin-block-start: 0;
}

.hoer-home__location {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-surface-muted);
	border: 1px solid var(--hoer-color-border);
	border-radius: var(--hoer-radius);
}

.hoer-home__location-image img {
	display: block;
	width: 100%;
	border-radius: var(--hoer-radius);
}

.hoer-home__location-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-block-start: var(--hoer-space-lg);
}

.hoer-home__location-meta {
	margin-block: var(--hoer-space-sm);
}

.hoer-home__location-link {
	margin-block: auto 0;
	padding-block-start: var(--hoer-space-lg);
}

.hoer-home__all-locations {
	margin-block: var(--hoer-space-xl) 0;
}

.hoer-home__steps {
	margin: 0;
	padding: 0;
	list-style-position: inside;
}

.hoer-home__steps li {
	padding: var(--hoer-space-lg);
	background: var(--hoer-color-white);
	border: 1px solid var(--hoer-color-border);
	border-radius: var(--hoer-radius);
}

.hoer-home__closing {
	padding: clamp(2rem, 4vw, 4rem);
	background: var(--hoer-color-surface-muted);
	border-radius: var(--hoer-radius);
}

.hoer-home__closing p {
	max-width: var(--hoer-reading-max-width);
}

@media (max-width: 64rem) {
	.hoer-home__offer-grid,
	.hoer-home__location-grid,
	.hoer-home__steps {
		grid-template-columns: 1fr;
	}

	.hoer-home__hero,
	.hoer-home__closing {
		padding: var(--hoer-space-xl);
	}
}

.hoer-site-header {
	background: var(--hoer-color-white);
	border-block-end: 1px solid var(--hoer-color-border);
}

.hoer-site-header__inner {
	display: flex;
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-lg) var(--hoer-space-md);
	flex-wrap: wrap;
	gap: var(--hoer-space-lg) var(--hoer-space-xl);
	align-items: center;
	justify-content: space-between;
}

.hoer-site-branding {
	min-width: 0;
}

.hoer-site-branding__name,
.hoer-site-footer__name {
	color: var(--hoer-color-text);
	font-family: var(--hoer-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.2em;
}

.hoer-site-branding .custom-logo-link {
	display: inline-flex;
	max-width: min(16rem, 100%);
	align-items: center;
}

.hoer-site-branding .custom-logo {
	display: block;
	max-width: 100%;
	height: auto;
}

.hoer-primary-navigation {
	min-width: 0;
}

.hoer-primary-navigation__menu,
.hoer-footer-navigation__menu {
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	gap: var(--hoer-space-sm);
	list-style: none;
}

.hoer-primary-navigation__menu a,
.hoer-footer-navigation__menu a {
	display: inline-flex;
	min-height: 2.75rem;
	padding: var(--hoer-space-sm) var(--hoer-space-md);
	align-items: center;
	color: var(--hoer-color-text);
	border-radius: var(--hoer-radius);
	font-size: var(--hoer-font-size-button);
	line-height: var(--hoer-line-height-button);
	overflow-wrap: anywhere;
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.25em;
}

.hoer-primary-navigation__menu .current-menu-item > a,
.hoer-primary-navigation__menu .current-menu-ancestor > a,
.hoer-footer-navigation__menu .current-menu-item > a,
.hoer-footer-navigation__menu .current-menu-ancestor > a {
	background: var(--hoer-color-accent);
	font-weight: 700;
	text-decoration-line: underline;
	text-decoration-color: var(--hoer-color-text);
	text-decoration-thickness: 0.25rem;
}

.hoer-site-footer {
	margin-block-start: var(--hoer-space-xl);
	color: var(--hoer-color-text);
	background: var(--hoer-color-surface-muted);
	border-block-start: 0.25rem solid var(--hoer-color-accent);
}

.hoer-site-footer__inner {
	display: grid;
	width: min(100%, var(--hoer-content-max-width));
	margin-inline: auto;
	padding: var(--hoer-space-xl) var(--hoer-space-md);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hoer-space-xl);
	align-items: start;
}

.hoer-site-footer__about {
	max-width: 34rem;
}

.hoer-site-footer__about p {
	color: var(--hoer-color-text-secondary);
	margin-block-end: 0;
}

@media (max-width: 48rem) {
	.hoer-home h1,
	.hoer-how-it-works h1,
	.hoer-location h1,
	.hoer-location-archive h1 {
		font-size: 2.5rem;
		line-height: 3rem;
	}

	.hoer-home h2,
	.hoer-how-it-works h2,
	.hoer-location h2,
	.hoer-location-archive h2 {
		font-size: 1.75rem;
		line-height: 2.25rem;
	}
}

.hoer-site-footer__copyright {
	margin: 0;
	grid-column: 1 / -1;
	padding-block-start: var(--hoer-space-lg);
	border-block-start: 1px solid var(--hoer-color-border);
}

@media (max-width: 48rem) {
	.hoer-site-header__inner {
		align-items: flex-start;
	}

	.hoer-primary-navigation {
		flex-basis: 100%;
	}

	.hoer-primary-navigation__menu,
	.hoer-footer-navigation__menu {
		flex-direction: column;
		align-items: stretch;
	}

	.hoer-primary-navigation__menu a,
	.hoer-footer-navigation__menu a {
		width: 100%;
	}

	.hoer-site-footer__inner {
		grid-template-columns: 1fr;
	}

	.hoer-site-footer__copyright {
		grid-column: auto;
	}
}
