/**
 * Core Block Styles
 *
 * Extracted from theme.json styles.blocks.
 * blockGap properties remain in theme.json (WordPress style engine requirement).
 */

/* ============================================
   custom/projekt-logo
   Alignment within constrained layouts
   ============================================ */
.wp-block-post-content.is-layout-constrained:has(> .wp-block-custom-projekt-logo) {
	display: block !important;
}

.is-layout-constrained > .wp-block-custom-projekt-logo.alignleft {
	float: left !important;
	margin-inline-end: 2em !important;
	margin-inline-start: 0 !important;
	margin-block-end: 1em !important;
	max-width: 300px !important;
}

.is-layout-constrained > .wp-block-custom-projekt-logo.alignright {
	float: right !important;
	margin-inline-start: 2em !important;
	margin-inline-end: 0 !important;
	margin-block-end: 1em !important;
	max-width: 300px !important;
}

.is-layout-constrained > .wp-block-custom-projekt-logo.aligncenter {
	float: none !important;
	display: block !important;
	margin-inline-start: auto !important;
	margin-inline-end: auto !important;
	max-width: 500px !important;
}

.wp-block-custom-projekt-logo img {
	max-width: 200px !important;
	max-height: 200px !important;
	height: auto !important;
	width: auto !important;
	display: block !important;
}

/* ============================================
   Inline featured image (shared)
   ============================================ */
.inline-featured-image-wrap {
	float: right;
	max-width: 300px;
	margin: 0 0 1em 2em;
}

.inline-featured-image-wrap img {
	width: 100%;
	height: auto;
	display: block;
}

.inline-featured-caption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--blau-1);
	text-align: right;
	margin-top: 0.3em;
}

/* ============================================
   core/avatar
   ============================================ */
:where(.wp-block-avatar img) {
	border-radius: 100px;
}

/* ============================================
   core/button - outline variation
   ============================================ */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	border-width: 3px;
	padding: calc(1rem - 1px) calc(2.25rem - 1px);
}

/* ============================================
   core/code
   ============================================ */
:where(.wp-block-code) {
	background-color: var(--wp--preset--color--erde-gruen);
	color: var(--wp--preset--color--erde-gruen);
	padding: var(--wp--preset--spacing--40);
	font-family: var(--font-family-base);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--font-weight-normal);
}

/* ============================================
   core/columns
   ============================================ */
:where(.wp-block-columns) {
	margin-bottom: 0;
}

/* ============================================
   core/comment-author-name
   ============================================ */
:where(.wp-block-comment-author-name) {
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0;
	margin-top: 5px;
}

:where(.wp-block-comment-author-name a) {
	color: var(--wp--preset--color--weiss);
	text-decoration: none;
}

:where(.wp-block-comment-author-name a:hover) {
	text-decoration: underline;
}

/* ============================================
   core/comment-content
   ============================================ */
:where(.wp-block-comment-content) {
	font-size: var(--wp--preset--font-size--medium);
	margin-bottom: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
}

/* ============================================
   core/comment-date
   ============================================ */
:where(.wp-block-comment-date) {
	color: var(--wp--preset--color--erde-gruen);
	font-size: var(--wp--preset--font-size--small);
}

:where(.wp-block-comment-date a) {
	color: var(--wp--preset--color--erde-gruen);
}

/* ============================================
   core/comment-edit-link
   ============================================ */
:where(.wp-block-comment-edit-link) {
	font-size: var(--wp--preset--font-size--small);
}

:where(.wp-block-comment-edit-link a) {
	color: var(--wp--preset--color--erde-gruen);
}

/* ============================================
   core/comment-reply-link
   ============================================ */
:where(.wp-block-comment-reply-link) {
	font-size: var(--wp--preset--font-size--small);
}

:where(.wp-block-comment-reply-link a) {
	color: var(--wp--preset--color--erde-gruen);
}

/* ============================================
   core/comments-pagination
   ============================================ */
:where(.wp-block-comments-pagination) {
	font-size: var(--wp--preset--font-size--medium);
	margin-bottom: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
}

:where(.wp-block-comments-pagination-next),
:where(.wp-block-comments-pagination-numbers),
:where(.wp-block-comments-pagination-previous) {
	font-size: var(--wp--preset--font-size--medium);
}

/* ============================================
   core/list
   ============================================ */
:where(.wp-block-list li) {
	margin-top: 0.5rem;
}

/* ============================================
   core/navigation
   ============================================ */
:where(.wp-block-navigation) {
	font-size: var(--wp--preset--font-size--medium);
}

:where(.wp-block-navigation a) {
	text-decoration: none;
}

:where(.wp-block-navigation a:hover) {
	text-decoration: underline;
}

/* ============================================
   core/paragraph
   ============================================ */
:where(.wp-block-paragraph) {
	margin-bottom: 1rem;
}

/* ============================================
   core/post-comments-form
   ============================================ */
:where(.wp-block-post-comments-form) {
	font-size: var(--wp--preset--font-size--medium);
	padding-bottom: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--40);
}

.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type=submit]) {
	border-radius: 0.25rem;
}

.wp-block-post-comments-form input[type=checkbox] {
	margin: 0 0.2rem 0 0;
}

.wp-block-post-comments-form label {
	font-size: var(--wp--preset--font-size--small);
}

/* ============================================
   core/post-date
   ============================================ */
:where(.wp-block-post-date) {
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--small);
}

:where(.wp-block-post-date a) {
	color: var(--wp--preset--color--weiss);
	text-decoration: none;
}

:where(.wp-block-post-date a:hover) {
	text-decoration: underline;
}

/* ============================================
   core/post-excerpt
   ============================================ */
:where(.wp-block-post-excerpt) {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	word-break: break-word;
}

:where(.wp-block-post-excerpt .wp-block-button__link) {
	border-radius: 0;
}

/* ============================================
   core/post-navigation-link
   ============================================ */
:where(.wp-block-post-navigation-link) {
	font-size: var(--wp--preset--font-size--medium);
}

/* ============================================
   core/post-terms
   ============================================ */
:where(.wp-block-post-terms) {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--font-weight-normal);
}

:where(.wp-block-post-terms a) {
	white-space: nowrap;
}

/* ============================================
   core/post-title
   ============================================ */
:where(.wp-block-post-title a) {
	text-decoration: none;
}

:where(.wp-block-post-title a:hover) {
	text-decoration: underline;
}

/* ============================================
   core/pullquote
   ============================================ */
:where(.wp-block-pullquote) {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: var(--font-weight-normal);
	line-height: 1.2;
	padding-bottom: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--30);
}

:where(.wp-block-pullquote p:last-of-type) {
	margin-bottom: var(--wp--preset--spacing--30);
}

:where(.wp-block-pullquote cite) {
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

/* ============================================
   core/query-pagination
   ============================================ */
:where(.wp-block-query-pagination) {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--font-weight-normal);
}

/* ============================================
   core/quote
   ============================================ */
:where(.wp-block-quote) {
	border-color: currentColor;
	border-style: solid;
	border-width: 0 0 0 2px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--font-weight-normal);
	margin-left: 0;
	margin-right: 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.wp-block-quote.has-text-align-right {
	border-width: 0 2px 0 0;
}

.wp-block-quote.has-text-align-center {
	border-width: 0;
	border-inline: 0;
	padding-inline: 0;
}

:where(.wp-block-quote cite) {
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: var(--font-weight-normal);
}

:where(.wp-block-quote cite sub) {
	font-size: 0.65em;
}

/* Quote - plain variation */
:where(.wp-block-quote.is-style-plain) {
	border-color: transparent;
	border-radius: 0;
	border-style: none;
	border-width: 0;
	padding: 0;
}

/* ============================================
   core/search
   ============================================ */
:where(.wp-block-search) {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

.wp-block-search .wp-block-search__input {
	border-radius: 0;
	padding-left: 1.5625rem;
	padding-right: 1.5625rem;
	border-color: var(--wp--preset--color--blau-1);
}

.wp-block-search .wp-element-button {
	margin-left: 1.125rem;
}

.wp-block-search .wp-element-button:hover {
	border-color: transparent;
}

/* ============================================
   core/separator
   ============================================ */
:where(.wp-block-separator) {
	border-color: currentColor;
	border-style: solid;
	border-width: 0 0 1px 0;
}

/* Separator - wide variation */
.wp-block-separator.is-style-wide:not(.alignfull) {
	max-width: var(--wp--style--global--wide-size) !important;
}

/* ============================================
   core/site-tagline
   ============================================ */
:where(.wp-block-site-tagline) {
	font-size: var(--wp--preset--font-size--medium);
}

/* ============================================
   core/site-title
   ============================================ */
:where(.wp-block-site-title) {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: var(--font-weight-normal);
	letter-spacing: -0.5px;
	white-space: nowrap;
}

:where(.wp-block-site-title a) {
	text-decoration: none;
}

:where(.wp-block-site-title a:hover) {
	text-decoration: underline;
}

/* ============================================
   core/term-description
   ============================================ */
:where(.wp-block-term-description) {
	font-size: var(--wp--preset--font-size--medium);
}
