/*
 * Template "Buntstift": warm and friendly, a sheet of pictures. The arch of a
 * school window returns everywhere: in the photographs, in the dates, in the
 * row of pictures; the page begins and ends with a soft curve. Headings carry
 * a small leaf in the accent colour next to their words.
 */
body,
.editor-styles-wrapper {
	--sbs-radius-s: 0.75rem;
	--sbs-radius-m: 1.1rem;
	--sbs-radius-l: 1.6rem;
	--sbs-radius-control: 999px;
	--sbs-blatt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2C9 9 4 17 4 25a13 13 0 0 0 14 13v-9l-6-5 1.500-1.800L18 26V16h4v7l4.500-3.800L28 21l-6 5v12a13 13 0 0 0 14-13c0-8-5-16-16-23z'/%3E%3C/svg%3E");
}

/* Header: on the light tone of the school colour, one piece with the hero below. */
.sbs-kopf.sbs-kopf-k1 {
	--sbs-bg: var(--wp--preset--color--primary-soft);
	--sbs-fg: var(--wp--preset--color--primary-strong);
	--sbs-fg-muted: var(--wp--preset--color--text);
	--sbs-link: var(--wp--preset--color--primary-strong);
	--sbs-link-hover: var(--wp--preset--color--primary-strong);
	--sbs-btn-bg: var(--wp--preset--color--primary);
	--sbs-btn-fg: var(--wp--preset--color--on-primary);
	--sbs-btn-bg-hover: var(--wp--preset--color--base);
	--sbs-btn-fg-hover: var(--wp--preset--color--primary-strong);
	border: 0;
	background-color: var(--sbs-bg);
	color: var(--sbs-fg);
}

.sbs-kopf-k1 .wp-block-site-title {
	font-size: 1.625rem;
	font-weight: 700;
}

.sbs-kopf-k1 .wp-block-site-title a {
	color: var(--wp--preset--color--primary-strong);
}

.sbs-kopf-k1 .wp-block-site-tagline {
	color: var(--wp--preset--color--text);
}

.sbs-kopf-k1 .sbs-kopf__menue .wp-block-navigation__container > li > .wp-block-navigation-item__content {
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	transition: background-color 0.2s;
}

.wp-site-blocks > main {
	margin-block-start: 0;
}

/* Section headings: a leaf next to the words. */
.sbs-abschnitt h2:not(.sbs-hinweis__titel) {
	color: var(--wp--preset--color--primary-strong);
	font-size: clamp(1.7rem, 2.8vw, 2rem);
}

/* On a coloured section the heading takes the text colour of that section. */
.is-style-sbs-primaer h2:not(.sbs-hinweis__titel),
.is-style-sbs-akzent h2:not(.sbs-hinweis__titel) {
	color: var(--sbs-fg);
}

.sbs-abschnitt h2:not(.sbs-hinweis__titel)::before {
	content: "";
	display: inline-block;
	inline-size: 0.82em;
	block-size: 0.82em;
	margin-inline-end: 0.38em;
	vertical-align: -0.06em;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: var(--sbs-blatt) center / contain no-repeat;
	mask: var(--sbs-blatt) center / contain no-repeat;
}

.sbs-abschnitt__kopf {
	align-items: center;
}

/* The link next to a heading: an outlined pill, a small sun at its end. */
.sbs-abschnitt__kopf > p a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-block-size: 2.75rem;
	padding: 0.2rem 0.9rem 0.2rem 1.25rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-strong);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s;
}

.sbs-abschnitt__kopf > p a::after {
	content: "";
	inline-size: 1rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	transition: scale 0.25s;
}

.sbs-abschnitt__kopf > p a:hover {
	background-color: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-strong);
}

.sbs-abschnitt__kopf > p a:hover::after {
	scale: 1.35;
}

/* Notice: a rounded sheet in the school colour with one sharp corner. */
body .sbs-hinweis__kasten {
	--sbs-bg: var(--wp--preset--color--primary);
	--sbs-fg: var(--wp--preset--color--on-primary);
	--sbs-fg-muted: var(--wp--preset--color--on-primary);
	--sbs-link: var(--wp--preset--color--on-primary);
	--sbs-link-hover: var(--wp--preset--color--on-primary);
	--sbs-focus: var(--wp--preset--color--on-primary);
	padding: 1.4rem 1.9rem 1.5rem;
	border-radius: 1.6rem 1.6rem 1.6rem 0.4rem;
}

/* News: every other photograph stands in an arch. */
body .sbs-news__karte.sbs-karte {
	overflow: visible;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	transition: translate 0.35s;
}

body .sbs-news__karte.sbs-karte:hover {
	translate: 0 -5px;
}

body .sbs-news__bild {
	overflow: hidden;
	border-radius: 1.6rem;
}

.sbs-news__item:nth-child(odd) .sbs-news__bild {
	border-radius: 10.6rem 10.6rem 1.4rem 1.4rem;
}

body .sbs-news__inhalt {
	padding: 0.9rem 0 0;
	gap: 0.3rem;
}

body .sbs-news__titel {
	font-size: 1.375rem;
}

/* Events: each on a long rounded sheet in the light school colour, the date in an arch standing on its lower edge. */
body .sbs-termine--liste .sbs-termine__liste {
	gap: 0.75rem;
}

body .sbs-termin.sbs-karte {
	--sbs-fg-muted: var(--wp--preset--color--text);
	align-items: end;
	gap: 1.25rem;
	padding: 0.6rem 1.75rem 0 1.5rem;
	border: 0;
	border-radius: 2.25rem 2.25rem 2.25rem 0.75rem;
	background-color: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--text);
}

body .sbs-termin__datum {
	min-inline-size: 4.6rem;
	padding: 1rem 0.25rem 0.6rem;
	border-radius: 999px 999px 0 0;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

body .sbs-termin__inhalt,
body .sbs-termin__frist {
	align-self: center;
	padding-block-end: 0.6rem;
}

body .sbs-termin__titel {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
}

body .sbs-termin__titel a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

body .sbs-termin__titel a:hover {
	text-decoration: underline;
}

body .sbs-termin__frist {
	color: var(--wp--preset--color--primary-strong);
	font-size: 1.06rem;
	font-weight: 700;
}

/* School life: five arches of different heights, standing on one line. */
body .sbs-schulleben__bilder {
	align-items: end;
	gap: clamp(0.5rem, 1.4vw, 1rem);
}

body .sbs-schulleben__bilder img {
	aspect-ratio: auto;
	block-size: clamp(8rem, 17vw, 14.4rem);
	border-radius: 999px 999px 1.1rem 1.1rem;
}

body .sbs-schulleben__bilder .wp-block-image:nth-child(2) img {
	block-size: clamp(10rem, 22vw, 18.75rem);
	border-radius: 999px 999px 1.1rem 1.1rem;
}

body .sbs-schulleben__bilder .wp-block-image:nth-child(3) img {
	block-size: clamp(8.5rem, 18.5vw, 15.6rem);
}

body .sbs-schulleben__bilder .wp-block-image:nth-child(4) img {
	block-size: clamp(11rem, 23.5vw, 20rem);
	border-radius: 999px 999px 1.1rem 1.1rem;
}

body .sbs-schulleben__bilder .wp-block-image:nth-child(5) img {
	block-size: clamp(8rem, 17.5vw, 15rem);
}

@media (max-width: 47.99rem) {
	body .sbs-schulleben__bilder {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body .sbs-schulleben__bilder .wp-block-image:first-child {
		grid-column: auto;
	}

	body .sbs-schulleben__bilder .wp-block-image:first-child img {
		aspect-ratio: auto;
	}

	body .sbs-schulleben__bilder .wp-block-image:nth-child(n + 4) {
		display: none;
	}

	body .sbs-schulleben__bilder img,
	body .sbs-schulleben__bilder .wp-block-image:nth-child(3) img {
		block-size: 9.5rem;
	}

	body .sbs-schulleben__bilder .wp-block-image:nth-child(2) img {
		block-size: 12.5rem;
	}
}

/* People: each under an arch, like the photographs above. */
body .sbs-personen__liste {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

body .sbs-person.sbs-karte {
	--sbs-fg-muted: var(--wp--preset--color--text);
	--sbs-link: var(--wp--preset--color--primary-strong);
	--sbs-link-hover: var(--wp--preset--color--primary-strong);
	justify-content: center;
	padding: 2.75rem 1.25rem 0.9rem;
	border: 0;
	border-radius: 999px 999px 1rem 1rem;
	background-color: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--text);
	text-align: center;
}

body .sbs-person__text {
	justify-items: center;
}

body .sbs-person__name {
	font-size: 1.31rem;
}

@media (prefers-reduced-motion: reduce) {
	.sbs-abschnitt__kopf > p a:hover::after {
		scale: none;
	}
}

/* Cards elsewhere on the site: soft sheets. */
.sbs-karte,
.is-style-sbs-karte {
	--sbs-fg: var(--sbs-card-fg);
	--sbs-fg-muted: var(--sbs-card-muted);
	--sbs-link: var(--sbs-card-link);
	--sbs-link-hover: var(--sbs-card-link-hover);
	padding: clamp(1.1rem, 2.5vw, 1.75rem);
	border-radius: 1.6rem 1.6rem 1.6rem 0.4rem;
	background-color: var(--sbs-card-bg);
	color: var(--sbs-card-fg);
}

/* Footer: the dark tone of the school colour, rising in a curve. */
.sbs-fuss.sbs-fuss {
	--sbs-bg: var(--wp--preset--color--primary-strong);
	--sbs-fg: var(--wp--preset--color--on-primary);
	--sbs-fg-muted: var(--wp--preset--color--on-primary);
	--sbs-link: var(--wp--preset--color--on-primary);
	--sbs-link-hover: var(--wp--preset--color--on-primary);
	--sbs-line: var(--wp--preset--color--on-primary);
	--sbs-focus: var(--wp--preset--color--on-primary);
	margin-block-start: clamp(3rem, 7vw, 5rem);
	padding-block-start: clamp(3.5rem, 7vw, 5.4rem);
	border: 0;
	border-radius: 50% 50% 0 0 / clamp(2rem, 5vw, 4.4rem) clamp(2rem, 5vw, 4.4rem) 0 0;
	background-color: var(--sbs-bg);
	color: var(--sbs-fg);
}

@media (prefers-reduced-motion: reduce) {
	body .sbs-news__karte.sbs-karte:hover {
		translate: none;
	}
}
