/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Description: Child theme for Twenty Twenty-Four.
Author: jan
Template: twentytwentyfour
Version: 1.0.0
Text Domain: twentytwentyfour-child
*/

/*
 * Add custom CSS below this line.
 */

h1 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

h2 {
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 0.6em;
	margin-top: 1.4em;
}

.wp-block-post-content.is-layout-constrained > p + h2.wp-block-heading {
	margin-block-start: 2rem;
	margin-block-end: 0.5rem;
}

h3 {
	font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
	margin-bottom: 0.55em;
	margin-top: 1.3em;
}

h4 {
	margin-bottom: 0.5em;
	margin-top: 1.2em;
}

h5 {
	margin-bottom: 0.45em;
	margin-top: 1.1em;
}

h6 {
	margin-bottom: 0.4em;
	margin-top: 1.1em;
}

:is(h1, h2, h3, h4, h5, h6, p, div, span, a, li).h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

:is(h1, h2, h3, h4, h5, h6, p, div, span, a, li).h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
	line-height: 1.2;
}

:is(h1, h2, h3, h4, h5, h6, p, div, span, a, li).h4 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
	line-height: 1.2;
}

:is(h1, h2, h3, h4, h5, h6, p, div, span, a, li).h5 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.2;
}

.pp-events-event-list__title.h3 {
	font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
	line-height: 1.2;
}

:is(h2, h3, h4, h5, h6).tt4-child-flow-heading {
	font-size: 1em;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 0;
	margin-top: 1em;
}

:is(h2, h3, h4, h5, h6).tt4-child-flow-heading a {
	color: inherit;
	text-decoration: none;
}

:is(h2, h3, h4, h5, h6).tt4-child-flow-heading a:hover,
:is(h2, h3, h4, h5, h6).tt4-child-flow-heading a:focus {
	text-decoration: underline;
}

.tt4-child-submenu {
	margin: 1.5rem 0;
}

.tt4-child-submenu__list {
	list-style: disc;
	margin: 0;
	padding-left: 1.5rem;
}

.tt4-child-submenu__item {
	margin: 0 0 0.35rem;
}

.tt4-child-submenu__link {
	color: inherit;
}

.tt4-child-submenu__link:hover,
.tt4-child-submenu__link:focus {
	color: #000;
	text-decoration: underline;
}

.tt4-child-submenu__item.is-current .tt4-child-submenu__link {
	font-weight: 600;
}

.wp-block-navigation .wp-block-navigation-item.has-child {
	position: relative;
	z-index: 1000;
}

.wp-block-navigation .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	z-index: 1001 !important;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border: none;
	box-shadow: none;
}

@media (min-width: 600px) {
	.wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child:first-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child:first-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:first-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:first-child > .wp-block-navigation__submenu-container {
		left: 0 !important;
		right: auto !important;
	}

	.wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation .wp-block-page-list > .has-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child > .wp-block-navigation__submenu-container,
	.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:last-child > .wp-block-navigation__submenu-container {
		left: 0;
		right: auto;
	}

	.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: #4a4a4a;
		text-decoration: none;
	}

	.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
		color: #000;
		text-decoration: none;
	}
}

.tt4-child-sidebar-column {
	font-size: 12px;
}

.tt4-child-sidebar-column p,
aside.wp-block-template-part p {
	font-size: 12px;
	margin: 0;
}

.tt4-child-sidebar-column :is(h1, h2, h3, h4, h5, h6) a,
aside.wp-block-template-part :is(h1, h2, h3, h4, h5, h6) a {
	text-decoration: none;
}

.tt4-child-sidebar-column :is(h1, h2, h3, h4, h5, h6) a:hover,
.tt4-child-sidebar-column :is(h1, h2, h3, h4, h5, h6) a:focus,
aside.wp-block-template-part :is(h1, h2, h3, h4, h5, h6) a:hover,
aside.wp-block-template-part :is(h1, h2, h3, h4, h5, h6) a:focus {
	text-decoration: underline;
}

.tt4-child-event-post-navigation {
	align-items: center;
	border-top: 1px solid #e7e7e7;
	border-bottom: 1px solid #e7e7e7;
	display: grid;
	grid-template-columns: minmax(2rem, auto) minmax(0, 1fr) minmax(2rem, auto);
	gap: 1rem;
	margin-top: 2rem;
	padding: 0.85rem 0;
}

.toc {
	margin: 1.5rem 0;
}

.toc-entry {
	align-items: flex-end;
	column-gap: 1rem;
	display: flex;
	margin: 0 0 0.35rem;
}

.toc-row {
	flex: 1 1 auto;
	min-width: 0;
}

.toc-entry .page {
	align-self: flex-end;
	flex: 0 0 3em;
	text-align: right;
	white-space: nowrap;
}

.tt4-child-event-post-navigation__edge {
	margin: 0;
}

.tt4-child-event-post-navigation__edge.is-next {
	text-align: right;
}

.tt4-child-event-post-navigation__arrow {
	color: inherit;
	display: inline-flex;
	font-size: 1.35rem;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	min-width: 1.5rem;
}

.tt4-child-event-post-navigation__arrow:hover,
.tt4-child-event-post-navigation__arrow:focus {
	color: #000;
}

.tt4-child-event-post-navigation__dots {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.45rem;
	justify-content: center;
	margin: 0;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}

.tt4-child-event-post-navigation__dot {
	align-items: center;
	background: #c8c8c8;
	border-radius: 999px;
	display: inline-flex;
	height: 0.5rem;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.18s ease, transform 0.18s ease;
	width: 0.5rem;
}

.tt4-child-event-post-navigation__dot:hover,
.tt4-child-event-post-navigation__dot:focus {
	background: #6f6f6f;
	transform: scale(1.12);
}

.tt4-child-event-post-navigation__dot.is-current {
	background: #000;
	transform: none;
}

.pp-events-entry-dates__title {
	font-family: var(--wp--preset--font-family--body);
	text-transform: uppercase;
}

.wpcf7 {
	--tt4-child-form-border: #d4d4d4;
	--tt4-child-form-text: #2b2b2b;
	--tt4-child-form-muted: #666;
	--tt4-child-form-surface: #fff;
	--tt4-child-form-focus: #111;
	--tt4-child-form-error: #b23a2e;
}

.wpcf7 form {
	background: transparent;
	display: grid;
	gap: 0.9rem 1.1rem;
	grid-template-columns: minmax(0, 1fr);
	inline-size: 100%;
	margin: 0;
	max-inline-size: none;
	padding: 0;
}

.wpcf7 form > p {
	margin: 0;
	inline-size: 100%;
}

.wpcf7 form > p > label {
	color: var(--tt4-child-form-text);
	display: flex;
	flex-direction: column;
	font-size: 0.95rem;
	font-weight: 500;
	gap: 0.35rem;
	inline-size: 100%;
	min-inline-size: 0;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	inline-size: 100%;
	max-inline-size: none;
}

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
	appearance: none;
	background: var(--tt4-child-form-surface);
	border: 1px solid var(--tt4-child-form-border);
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--tt4-child-form-text);
	font: inherit;
	inline-size: 100%;
	max-inline-size: none;
	min-inline-size: 0;
	padding: 0.75rem 0.85rem;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.wpcf7 textarea.wpcf7-form-control {
	min-block-size: 10rem;
	resize: vertical;
}

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
	border-color: var(--tt4-child-form-focus);
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
	outline: none;
}

.wpcf7 .wpcf7-submit {
	background: #111;
	border: 1px solid #111;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	margin-left: auto;
	padding: 0.8rem 1.1rem;
	transition: background-color 140ms ease, color 140ms ease;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus {
	background: #2a2a2a;
	color: #111;
	color: #fff;
}

.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 0.75rem;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--tt4-child-form-error);
	font-size: 0.85rem;
	font-weight: 500;
	margin-top: 0.3rem;
}

.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
	background: #fff8f6;
	border-color: var(--tt4-child-form-error);
}

.wpcf7 .wpcf7-response-output {
	border-radius: 4px;
	font-size: 0.95rem;
	margin: 0;
	padding: 0.85rem 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
	background: #f2f7ef;
	border-color: #7aa05e;
	color: #2e5b1e;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	background: #fff7f4;
	border-color: #d29b8d;
	color: #8b3323;
	margin-left: 0;
	margin-right: 0;
}

/* Bücherliste interessanter gestalten */
@media (min-width: 1000px) {
	.tt4-books-archive .list {
		margin-left: -108px;
		width: calc(100% + 108px);

		article.book {
			grid-template-columns: 83px repeat(7, minmax(0, 1fr));
			grid-template-areas:
			"c c c d d d d d"
			". t t t t t t t";
		}
	}
}

:root {
	--wp--custom--carousel-block--navigation-size: 2rem;
	--wp--custom--carousel-block--navigation-color: #0009
}

:where(.wp-site-blocks :focus) {
	outline-width: 1px;
	outline-style: dotted;
}

/* Prevent core search blocks from overflowing narrow columns. */
.wp-block-search {
	container-type: inline-size;
	max-width: 100%;
}

.wp-block-search .wp-block-search__inside-wrapper {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

.wp-block-search .wp-block-search__input {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
}

@container (max-width: 250px) {
	.wp-block-search.wp-block-search__button-outside .wp-block-search__inside-wrapper {
		flex-wrap: wrap;
		row-gap: 0.5rem;
	}

	.wp-block-search.wp-block-search__button-outside .wp-block-search__input {
		flex: 1 0 100%;
		width: 100%;
	}

	.wp-block-search.wp-block-search__button-outside .wp-block-search__button {
		margin-left: auto;
	}
}
