/*
 * Content element "Glossar A–Z" (Templates/Content/GlossaryRegister.html),
 * siteway/Kleine-Riesen-Nord-gGmbH#85. Hand-written and loaded only where the element is
 * used (f:asset.css), so it is not part of the CodeKit build of main.css.
 * Colours and card style follow the theme: pink #de0555, green #78b628, text #3c3c3c,
 * white cards with the shadow of the Kita detail header.
 */
.glossary {
	text-align: left;
}

/* The theme gives every content list item padding and a dot (.allcont ul li::before) */
.allcont .glossary ul,
.allcont .glossary li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.allcont .glossary li::before {
	content: none;
	display: none;
}

/* Letter bar */
.glossary__alphabet {
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	padding: 20px 25px;
	margin: 0 0 20px;
}

.glossary__alphabet-label {
	margin: 0 0 10px;
	padding: 0;
	font-size: 0.875em;
}

.glossary .glossary__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.glossary__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2em;
	height: 2.2em;
	border-radius: 8px;
	font-weight: 700;
	line-height: 1;
	color: #b0b0b0;
}

a.glossary__letter--active {
	background: #78b628;
	color: #fff;
	text-decoration: none;
}

a.glossary__letter--active:hover,
a.glossary__letter--active:focus-visible {
	background: #de0555;
	color: #fff;
}

/* Letter groups */
.glossary__group {
	padding-top: 30px;
	/* keeps the letter visible below the sticky site header after a jump */
	scroll-margin-top: 190px;
}

.glossary .glossary__group-letter {
	color: #78b628;
	text-align: left;
	border-bottom: 2px solid #e5e5e5;
	padding-bottom: 0.2em;
	margin-bottom: 20px;
}

.glossary .glossary__entries {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.allcont .glossary .glossary__entry {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	padding: 25px 30px;
}

.glossary .glossary__term {
	font-size: 1.25em;
	margin: 0;
	padding: 0;
}

.glossary__term a {
	color: #78b628;
	text-decoration: none;
}

.glossary__term a:hover,
.glossary__term a:focus-visible {
	color: #de0555;
}

.glossary .glossary__definition {
	margin: 0.5em 0 1em;
	padding: 0;
	flex-grow: 1;
}

.glossary__more {
	align-self: flex-start;
	margin-top: auto;
	font-weight: 700;
	color: #de0555;
	text-decoration: none;
}

.glossary__more::after {
	content: " →";
}

.glossary__more:hover {
	text-decoration: underline;
}

/* Full width: all letters in one row, spread over the bar. 27 letters (A-Z and "#")
   of 2em (34px at 17px) need 918px; the bar is 1054px wide at a 1200px viewport. */
@media (min-width: 1200px) {
	.glossary .glossary__letters {
		justify-content: space-between;
		gap: 4px;
	}

	.glossary__letter {
		min-width: 2em;
		height: 2em;
	}
}

@media (max-width: 767px) {
	.glossary__alphabet {
		padding: 15px;
	}

	.glossary__group {
		scroll-margin-top: 90px;
	}

	.glossary .glossary__entries {
		grid-template-columns: 1fr;
	}

	.allcont .glossary .glossary__entry {
		padding: 20px;
	}
}
