/* Goetheschule theme: styles that theme.json cannot express. */

/* Header band butts flush against the hero (Figma: nav strip touches the hero).
   1) The root layout puts a block-gap between the header part and main; remove it.
   2) The header is a full-bleed constrained group, so WordPress gives it
      has-global-padding (which lets the alignfull top bar and nav strip break out
      to full width). That global padding applies on all four sides, and the
      vertical part leaves a white band above the top bar and below the nav strip.
      The inner bars carry their own vertical padding, so drop the header's. */
.wp-site-blocks > main {
	margin-block-start: 0;
}
.site-header {
	padding-block: 0;
}


/* Header: branding link inherits olive, no underline */
.site-header .wp-block-site-title a,
.site-header .wp-block-site-title a:hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

/* Header top bar (desktop): logo, title, centered subtitle, contact on the right.
   Children are placed by source order into the four columns. */
.site-header-topbar {
	display: grid !important;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	column-gap: var(--wp--preset--spacing--20);
}
.site-header-topbar .site-subtitle {
	justify-self: center;
}
.site-header-topbar .site-contact {
	justify-self: end;
	text-align: right;
}

/* Contact entries: tel/mailto links with a leading icon, inheriting header color.
   The label is underlined at rest so it reads as a link on touch too; hover and
   keyboard focus deepen the underline and shift the color for feedback. */
.site-contact__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.site-contact__link span {
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}
.site-contact__link:hover,
.site-contact__link:focus-visible {
	color: var(--wp--preset--color--primary);
}
.site-contact__link:hover span,
.site-contact__link:focus-visible span {
	text-decoration-thickness: 2px;
}
.site-contact__icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

/* Logo link: no underline, inherits olive from header context */
.site-logo-link {
	text-decoration: none;
	color: inherit;
	outline-offset: 4px;
}
.site-logo-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	border-radius: 4px;
}

/* Nav bar: color adapts per style variant via nav-text token */
.site-nav .wp-block-navigation-item a,
.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--nav-text, #ffffff);
}
/* Active page (marked client-side via .is-current, see nav-menu.js; WordPress
   does not flag custom links). Underline + bold marks the current section. */
.site-nav .wp-block-navigation-item.is-current > .wp-block-navigation-item__content,
.site-nav .wp-block-navigation-item.is-current-ancestor > .wp-block-navigation-item__content {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}
.site-nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--secondary-light);
	opacity: 0.85;
}

/* Footer: color adapts per style variant */
.site-footer {
	color: var(--wp--preset--color--nav-text, #ffffff);
}
.site-footer a {
	color: inherit;
	text-decoration: none;
}
.site-footer a:hover {
	text-decoration: underline;
}

/* Calendar card: rounded corners with clipped header strip */
.kalender-card {
	border-radius: 31px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 98, 87, 0.12);
}
.kalender-card__head .wp-block-heading {
	margin: 0;
}
.kalender-card__body p {
	margin: 0;
	line-height: 1.35;
}
.kalender-card__body p strong {
	font-weight: 700;
}
.kalender-card__pdf {
	margin-top: 0.4em;
	padding-top: 1em;
	border-top: 1px solid rgba(73, 84, 61, 0.2);
}

/* Link to a PDF the office maintains on its own page */
.dokument-link,
.kalender-card__pdf a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}
.dokument-link::before,
.kalender-card__pdf a::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--goetheschule-pdf-icon) center / contain no-repeat;
	mask: var(--goetheschule-pdf-icon) center / contain no-repeat;
}
.dokument-link:hover,
.kalender-card__pdf a:hover {
	text-decoration: underline;
}

:root {
	--goetheschule-pdf-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6Zm0 2.5L17.5 8H14V4.5ZM12 18l-3.5-3.5 1.4-1.4 1.1 1.1V10h2v4.2l1.1-1.1 1.4 1.4L12 18Z"/></svg>');
}

/* Aktuelles page: entry text next to a large photo */
.aktuelles-eintrag__kopf {
	align-items: baseline;
	row-gap: 0.2em;
}
.aktuelles-eintrag__kopf .wp-block-post-date,
.aktuelles-eintrag__kopf .wp-block-post-title {
	margin: 0;
	line-height: 1.25;
}
.aktuelles-eintrag__kopf .wp-block-post-title a {
	text-decoration: none;
}
.aktuelles-eintrag__kopf .wp-block-post-title a:hover {
	text-decoration: underline;
}
/* Scaled to fit, never cropped: the whole photo stays visible, tall portraits
   just come out narrower instead of losing their edges */
.aktuelles-eintrag__bild .wp-block-post-featured-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: clamp(13rem, 46vh, 28rem);
	margin-inline: auto;
}
/* Stacked layout: the photo has the full width to itself, so it may be taller */
@media (max-width: 781px) {
	.aktuelles-eintrag__bild .wp-block-post-featured-image img {
		max-height: clamp(15rem, 62vh, 30rem);
	}
}
/* Entries without a featured image use the full width instead of leaving a gap */
.aktuelles-eintrag:not(:has(.aktuelles-eintrag__bild img)) .aktuelles-eintrag__text {
	flex-basis: 100% !important;
}
.aktuelles-eintrag__bild:not(:has(img)) {
	display: none;
}
/* Single post: same idea, a phone portrait should not fill the screen.
   Applies to the featured image and to photos inside the text. */
.single-post .wp-block-post-featured-image img,
.single-post .wp-block-post-content .wp-block-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: clamp(15rem, 60vh, 34rem);
	margin-inline: auto;
}

/* Featured image opened at full size (assets/js/lightbox.js) */
.is-vergroesserbar {
	cursor: zoom-in;
}
.bild-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(26, 26, 26, 0.9);
	cursor: zoom-out;
}
.bild-lightbox img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 8px;
	cursor: default;
}
.bild-lightbox__close {
	position: absolute;
	top: clamp(0.5rem, 2vw, 1.5rem);
	right: clamp(0.5rem, 2vw, 1.5rem);
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.bild-lightbox__close:hover,
.bild-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}

.aktuelles-mehr a {
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

/* Hero heading: white over the gradient, kept readable with a soft shadow */
.hero-banner .hero-title {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Hero layout: heading centered across the full width, bust overlapping on the
   left (per the landing mockup), so the welcome text reads centered on the page
   rather than pushed into a right-hand column. */
.hero-inner {
	position: relative;
}
.hero-title {
	max-width: 44rem;
	margin-inline: auto;
}
.hero-bust {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	width: clamp(120px, 13vw, 180px);
	height: auto;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Hero photo background: cover, anchored a touch higher so the building reads */
.hero-banner .wp-block-cover__image-background {
	object-fit: cover;
	object-position: 50% 30%;
}

/* Mobile hero: drop the bust (it lives in the header logo there) */
@media (max-width: 781px) {
	.hero-bust {
		display: none;
	}
}

/* Rounded image corners, matching the design's rounded cards, map and buttons.
   Covers content images, galleries and featured images (archive pages, posts).
   The full-bleed hero cover is a background, not an <img> block, so it stays
   square; the brand logo and the hero bust are raw SVGs and are left alone. */
.wp-block-image img,
.wp-block-image .components-resizable-box__container,
.wp-block-post-featured-image img,
.wp-block-post-content img,
.entry-content img,
.wp-block-gallery .wp-block-image img {
	border-radius: 20px;
}
.aktuelles-liste .wp-block-post-title a {
	text-decoration: none;
}
.aktuelles-liste .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* On small screens the two columns stack; give the calendar some air */
@media (max-width: 781px) {
	.startseite-spalten .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Nav bar row: holds the navigation (and the mobile burger toggle). The menu is
   centered on desktop; on mobile the burger stays left (per the mockups). */
.site-nav-row {
	width: 100%;
}
@media (max-width: 781px) {
	.site-nav-row {
		justify-content: flex-start;
	}
	/* Let the dropdown anchor to the full-width nav bar, not the 24px burger. */
	.site-nav-row,
	.site-nav {
		position: static;
	}
}

/* Mobile overlay menu (burger): olive panel, full-width left-aligned rows with
   dividers, a chevron per collapsible submenu, and the current page in accent.
   Markup (openSubmenusOnClick): each top-level li holds the content (a or
   button.__toggle), a sibling span.__submenu-icon, and the ul submenu. */
/* Dropdown instead of a full-screen modal: the menu drops out of the nav bar,
   right under the burger, scrolls when long, and is toggled by the burger
   (see nav-menu.js). The nav bar is the positioning anchor. */
.site-nav-bar {
	position: relative;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	bottom: auto;
	width: auto;
	height: auto;
	max-height: 72vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 1000;
	padding: 0;
	background-color: var(--wp--preset--color--accent);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
	border-bottom-left-radius: 1.25rem;
	border-bottom-right-radius: 1.25rem;
}
/* The burger toggles the menu, so the modal's close button is not needed. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	display: none;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 0 0 0.5rem;
	width: 100%;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}
/* Each top-level row: a two-column grid (content | chevron); the submenu spans
   both columns on the next row. Grid sizes the content column deterministically,
   so the label fills the row and left-aligns regardless of the flex quirks WP
   applies to navigation items. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
/* No divider above the first row, so the menu sits flush under the burger. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child {
	border-top: 0;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
/* Row content spans the whole row so the entire row (including under the chevron)
   is one tap target; the chevron sits on top with pointer-events disabled. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-content: flex-start;
	text-align: left;
	padding: 1.1rem 3.5rem 1.1rem 1.5rem;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--wp--preset--color--base);
	background: transparent;
	border: 0;
}
/* Active row in the dropdown: faint background plus bold underline. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-current {
	background: rgba(255, 255, 255, 0.12);
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-current > .wp-block-navigation-item__content,
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-current-ancestor > .wp-block-navigation-item__content {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}
/* Chevron: pushed to the right edge, rotates when the submenu is open */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-column: 2;
	grid-row: 1;
	pointer-events: none;
	width: auto;
	margin: 0;
	padding: 1.1rem 1.5rem;
	color: var(--wp--preset--color--base);
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon svg {
	width: 1.4em;
	height: 1.4em;
}
/* Collapse submenus by default; reveal only when the toggle is expanded
   (the overlay otherwise shows every submenu open regardless of the toggle). */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container {
	display: none !important;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	display: flex !important;
}
/* Expanded submenu: in flow, spans both columns, indented items, no dividers */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static;
	grid-column: 1 / -1;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	gap: 0;
	margin: 0;
	padding: 0.25rem 0 0.75rem;
	border: 0;
	box-shadow: none;
	background: transparent;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	justify-content: flex-start;
	text-align: left;
	padding: 0.55rem 1.5rem 0.55rem 2.5rem;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--wp--preset--color--base);
}

/* Mobile header: logo on the left, title/subtitle/contact stacked next to it.
   Contact pair sits side by side and wraps to stacked when space runs out. */
@media (max-width: 781px) {
	.site-header-topbar {
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"logo title"
			"logo subtitle"
			"contact contact";
		column-gap: var(--wp--preset--spacing--20);
		row-gap: 0.1rem;
		align-items: center;
	}
	.site-header-topbar .site-logo-link {
		grid-area: logo;
		align-self: center;
	}
	.site-header-topbar .wp-block-site-title {
		grid-area: title;
	}
	.site-header-topbar .site-subtitle {
		grid-area: subtitle;
		justify-self: start;
		text-align: left !important;
	}
	.site-header-topbar .site-contact {
		grid-area: contact;
		justify-self: start;
		text-align: left;
		margin-top: 0.45rem;
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: var(--wp--preset--spacing--20);
	}
}


/* A-Z page: two columns of letter rows built from core Details blocks.
   Letters with content get a peach bar and a chevron; empty letters get a
   flat cream bar and are inert. */
.az-columns {
	align-items: flex-start;
}
.az-columns .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.az-item {
	border-radius: 4px;
	overflow: hidden;
	margin: 0;
}
.az-item > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 1.5rem;
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--accent);
	transition: background 0.15s ease;
}
.az-item > summary::-webkit-details-marker,
.az-item > summary::marker {
	display: none;
	content: "";
}
/* Chevron on collapsible rows, rotates when open */
.az-item:not(.az-empty) > summary::after {
	content: "";
	flex-shrink: 0;
	width: 0.7em;
	height: 0.7em;
	margin-right: 0.15em;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform 0.2s ease;
}
.az-item[open]:not(.az-empty) > summary::after {
	transform: translateY(0.1em) rotate(225deg);
}
.az-item:not(.az-empty) > summary:hover {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
}
/* Empty letters: flat cream bar, no chevron, not interactive */
.az-item.az-empty > summary {
	background: var(--wp--preset--color--secondary-light);
	cursor: default;
	pointer-events: none;
}
/* Open row: peach panel wrapping the terms, with padded body */
.az-item[open]:not(.az-empty) {
	background: var(--wp--preset--color--accent);
	padding-bottom: 0.75rem;
}
.az-item[open] > :not(summary) {
	padding-inline: 1.5rem;
}
.az-item .az-term {
	color: var(--wp--preset--color--primary-dark);
	margin: 1rem 0 0.35rem;
}
.az-item p {
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.5rem;
}

/* Soziales Miteinander: intro text and link list on the left, sunburst diagram
   on the right. Links read as a bold, spaced list (per the mockup). */
.soziales-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.soziales-links li {
	margin: 0;
}
.soziales-links a {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	text-underline-offset: 0.2em;
}
.soziales-diagramm {
	margin: 0;
}
.soziales-diagramm img {
	border-radius: 0;
}
@media (max-width: 781px) {
	.soziales-layout .wp-block-column {
		flex-basis: 100% !important;
	}
	.soziales-diagramm {
		margin-inline: auto;
		max-width: 30rem;
	}
}

/* Online-Entschuldigung (Contact Form 7): two-column field grid, olive labels,
   rounded inputs, olive submit button. */
.entschuldigung-hinweise li {
	margin-bottom: 0.4rem;
}
.entschuldigung-form .ef-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	align-items: start;
	margin-bottom: var(--wp--preset--spacing--30);
}
.entschuldigung-form .ef-field {
	margin: 0;
}
.entschuldigung-form .ef-label,
.entschuldigung-form .ef-fehlzeit > .ef-label {
	display: block;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.4rem;
}
.entschuldigung-form .ef-sublabel {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.3rem;
	font-size: var(--wp--preset--font-size--small);
}
.entschuldigung-form input[type="text"],
.entschuldigung-form input[type="date"],
.entschuldigung-form select,
.entschuldigung-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.8rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 6px;
}
.entschuldigung-form textarea {
	min-height: 9rem;
	resize: vertical;
}
.entschuldigung-form input:focus,
.entschuldigung-form select:focus,
.entschuldigung-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}
.entschuldigung-form .ef-daterow {
	display: flex;
	gap: var(--wp--preset--spacing--30);
}
.entschuldigung-form .ef-date {
	margin: 0;
	flex: 1;
}
.entschuldigung-form .ef-accept {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--40);
}
.entschuldigung-form .ef-accept input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}
.entschuldigung-form .ef-accept .wpcf7-list-item {
	margin: 0;
}
.entschuldigung-form .ef-full {
	margin-bottom: var(--wp--preset--spacing--30);
}
.entschuldigung-form .wpcf7-submit {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	border: 0;
	border-radius: 8px;
	padding: 0.7rem 1.6rem;
	font-size: var(--wp--preset--font-size--medium);
	cursor: pointer;
}
.entschuldigung-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--primary-dark);
}
.entschuldigung-form .ef-required {
	color: var(--wp--preset--color--primary);
	margin-top: var(--wp--preset--spacing--20);
}
.entschuldigung-form .wpcf7-not-valid-tip {
	color: #b52a1c;
	font-size: var(--wp--preset--font-size--small);
}
.entschuldigung-form .wpcf7-response-output {
	border-radius: 6px;
	margin: var(--wp--preset--spacing--20) 0 0;
}
@media (max-width: 600px) {
	.entschuldigung-form .ef-grid {
		grid-template-columns: 1fr;
	}
}

/* Kooperationen: responsive logo grid. Two partners carry a hover/focus
   speech-bubble with a short note. Logo images drop into .koop-item (replace the
   .koop-logo-placeholder span with an <img>); the layout stays the same. */
.koop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	align-items: center;
	justify-items: center;
	margin-top: var(--wp--preset--spacing--40);
}
.koop-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 8rem;
	padding: 1rem;
	box-sizing: border-box;
}
.koop-item img {
	max-width: 100%;
	max-height: 8rem;
	height: auto;
	width: auto;
	object-fit: contain;
	border-radius: 0;
}
/* Placeholder shown until the real logo is dropped in */
.koop-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 100%;
	min-height: 6rem;
	padding: 0.75rem;
	box-sizing: border-box;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--secondary-light);
	border: 1px dashed var(--wp--preset--color--accent);
	border-radius: 12px;
}
/* Tooltip tiles: outline the interactive ones and reveal the bubble */
.koop-item--tooltip {
	cursor: help;
	border-radius: 12px;
}
.koop-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% - 0.5rem);
	transform: translate(-50%, 0.4rem);
	z-index: 10;
	width: max-content;
	max-width: 20rem;
	padding: 0.85rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
	background: #EFEFEF;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.koop-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 9px solid transparent;
	border-top-color: #EFEFEF;
}
.koop-item--tooltip:hover .koop-tooltip,
.koop-item--tooltip:focus-visible .koop-tooltip,
.koop-item--tooltip:focus-within .koop-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* Back-to-top button: fixed bottom-right, olive pill, hidden until scrolled. */
.back-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2.5rem);
	bottom: clamp(1rem, 3vw, 2.5rem);
	z-index: 900;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.6rem 1.1rem;
	font-family: inherit;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.back-to-top:hover {
	background: var(--wp--preset--color--primary-dark);
}
.back-to-top svg {
	width: 1.1em;
	height: 1.1em;
}

/* Accessibility: visible keyboard focus for all interactive elements.
   WordPress does not add a consistent focus ring for the navigation and
   content links, so define one that stays visible on both the light content
   area and the peach nav/footer bars. Mouse clicks stay clean via :focus-visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
	border-radius: 3px;
}
/* On the dark-olive/peach bars a dark ring can read poorly on dark variants;
   pair it with a light halo so it stays visible on any background. */
.site-nav a:focus-visible,
.site-nav button:focus-visible,
.site-footer a:focus-visible {
	outline-color: currentColor;
	box-shadow: 0 0 0 5px var(--wp--preset--color--primary-dark);
}

/* Respect reduced-motion preferences: near-instant transitions/animations. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
