/* Eyebrow: caps are for eyebrows only. */
p.is-style-eyebrow {
	color: var(--wp--preset--color--blue-700);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	line-height: var(--wp--custom--leading--snug);
	text-transform: uppercase;
}

:is(.has-ink-900-background-color, .has-blue-700-background-color, .wp-block-cover) p.is-style-eyebrow {
	color: inherit;
}

/* Eyebrow mit Marker: the eyebrow as if run over with a green highlighter.
   Ink on Grün 200, so it also sits on Blau 700 and on photos. */
p.is-style-marker {
	width: fit-content;
	margin-inline-start: calc(var(--wp--preset--spacing--10) * -1);
	padding: calc(var(--wp--preset--spacing--10) / 2) var(--wp--preset--spacing--10);
	border-radius: var(--wp--preset--border-radius--xs);
	background: linear-gradient(104deg, transparent 0.5%, var(--wp--preset--color--green-200) 1.5%, var(--wp--preset--color--green-200) 98%, transparent 99%);
	color: var(--wp--preset--color--ink-900);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	line-height: var(--wp--custom--leading--snug);
	text-transform: uppercase;
}

p.is-style-marker.has-text-align-center {
	margin-inline: auto;
}

/* Unterzeile: the bold line under a headline. */
p.is-style-subline {
	color: var(--wp--preset--color--ink-700);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--snug);
	line-height: var(--wp--custom--leading--heading);
}

/* Papierstreifen: a torn strip of paper with a few words on it, slightly
   askew, like the labels in the collage. */
p.is-style-label {
	width: fit-content;
	isolation: isolate;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--ink-900);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	line-height: var(--wp--custom--leading--normal);
	text-transform: uppercase;
	transform: rotate(var(--wp--custom--tilt--label));
	/* A soft edge, so the white paper also shows on a white page. */
	filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--wp--preset--color--ink-900) 22%, transparent));
}

/* The paper lies behind the words, so a piece of tape can stick out over its
   edge. */
p.is-style-label::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--white);
	clip-path: polygon(1% 8%, 99% 0, 100% 90%, 2% 100%);
}

/* With the class has-tape (Advanced → Additional CSS class) a piece of green
   tape holds the strip. */
p.is-style-label.has-tape::before {
	content: "";
	position: absolute;
	top: calc(var(--wp--preset--spacing--20) * -1);
	left: 50%;
	width: var(--wp--preset--spacing--60);
	height: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--green-200);
	opacity: 0.85;
	mix-blend-mode: multiply;
	transform: translateX(-50%) rotate(-6deg);
	clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
	pointer-events: none;
}

p.is-style-label.has-text-align-center {
	margin-inline: auto;
}

/* Linkkachel: a paragraph that holds one link, shown as a tile with the
   name left and an arrow right. For a list of partners or downloads. */
p.is-style-link-tile {
	max-width: none;
}

p.is-style-link-tile a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	min-height: 3.5rem;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink-900);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
	transition:
		box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
		color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

p.is-style-link-tile a::after {
	content: "";
	flex: none;
	width: var(--wp--custom--icon);
	height: var(--wp--custom--icon);
	background: var(--wp--preset--color--ink-500);
	mask: url(../../images/icons/arrow-square-out.svg) center / contain no-repeat;
}

p.is-style-link-tile a:hover {
	box-shadow: var(--wp--preset--shadow--md);
	color: var(--wp--preset--color--blue-700);
	transform: translateY(-2px);
}

/* Vorspann: the lead paragraph of a page or section. */
p.is-style-lead {
	max-width: var(--wp--custom--measure--lead);
	font-size: var(--wp--preset--font-size--large);
	line-height: var(--wp--custom--leading--normal);
}

/* Handschrift: one tagline or margin note per page, never a heading. The
   short stroke under it is drawn with the text's own colour. */
p.is-style-hand {
	width: fit-content;
	padding-block-end: var(--wp--preset--spacing--10);
	background: linear-gradient(currentColor, currentColor) 50% 100% / 34% var(--wp--custom--border--thick) no-repeat;
	color: var(--wp--preset--color--ink-900);
	font-family: var(--wp--preset--font-family--hand);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--hand);
	line-height: var(--wp--custom--leading--normal);
	text-transform: uppercase;
}

p.is-style-hand.has-text-align-center {
	margin-inline: auto;
}

/* Badge: a small solid status pill. */
p:is(.is-style-badge, .is-style-badge-brand, .is-style-badge-accent) {
	width: fit-content;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	border-radius: var(--wp--preset--border-radius--pill);
	background: var(--wp--preset--color--ink-100);
	color: var(--wp--preset--color--ink-700);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	line-height: var(--wp--custom--leading--heading);
	text-transform: uppercase;
	white-space: nowrap;
}

p.is-style-badge-brand {
	background: var(--wp--preset--color--blue-500);
	color: var(--wp--preset--color--ink-900);
}

p.is-style-badge-accent {
	background: var(--wp--preset--color--green-500);
	color: var(--wp--preset--color--ink-900);
}

/* Wortmarke: „hummel“ light in Hummel Blau, „bike“ bold in Rad Grün, no space
   at the seam. Stands in for the logo file. */
p.is-style-wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 300;
	letter-spacing: var(--wp--custom--tracking--tight);
	line-height: var(--wp--custom--leading--solid);
}

p.is-style-wordmark,
p.is-style-wordmark a,
p.is-style-wordmark a:hover {
	color: var(--wp--preset--color--blue-500);
	text-decoration: none;
}

p.is-style-wordmark :is(strong, b) {
	color: var(--wp--preset--color--green-500);
	font-weight: 700;
}

/* A small fact with a calendar before it, such as how many events a category
   holds: the class has-icon-calendar (Advanced → Additional CSS class). */
p.has-icon-calendar {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ink-700);
	font-size: var(--wp--preset--font-size--small);
}

p.has-icon-calendar::before {
	content: "";
	flex: none;
	width: var(--wp--custom--icon);
	height: var(--wp--custom--icon);
	background: currentColor;
	mask: url(../../images/icons/calendar-blank.svg) center / contain no-repeat;
}
