.referenz-logos img {
	position: relative;
	transform: scale(1);
	transform-origin: center;
	transition: transform .2s ease, filter .2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.referenz-logos img:hover {
		transform: scale(1.25);
		z-index: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.referferenz-logos img {
		transition: none;
	}
}

/* Goldene Titelleiste beim Scrollen oben halten */
#masthead {
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Abstand zur WordPress-Leiste, wenn du angemeldet bist */
body.admin-bar #masthead {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #masthead {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar #masthead {
		top: 0;
	}
}

/* Kompakte Titelleiste auf kleineren Bildschirmen */
@media screen and (max-width: 849px) {
	#masthead {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	#masthead::before,
								  #masthead::after {
		display: none;
	}
	
	#masthead .site-branding {
		float: none;
		width: auto;
		padding: 12px 16px;
	}
	
	#masthead .site-description {
		display: none;
	}
	
	#masthead .site-title {
		margin: 0;
		font-size: 22px;
		line-height: 1.2;
	}
	
	#masthead .site-menu {
		position: static;
		float: none;
		width: auto;
		margin: 0;
	}
	
	#masthead .menu-toggle {
		float: none;
		width: auto;
		min-height: 56px;
		padding: 12px 16px;
		font-size: 16px;
		white-space: nowrap;
	}
}

/* Logo in der Titelleiste */
#masthead .site-logo {
	display: block;
	width: 320px;
	max-width: 100%;
	height: auto;
	max-height: none;
	margin: 0;
}

#masthead .site-branding {
	padding: 12px 32px;
}

/* Kompakte Darstellung auf kleineren Bildschirmen */
@media screen and (max-width: 849px) {
	#masthead .site-logo {
		width: 160px;
	}
	
	#masthead .site-branding {
		padding: 4px 16px;
	}
}

/* Ausgewählte Fotos auf die ganze Seitenbreite erweitern */
@media (min-width: 960px) {
	.entry-content .seitenbreit {
		width: 920px;
		max-width: none;
		margin-left: calc((100% - 920px) / 2);
		margin-right: 0;
	}
	
	.entry-content .seitenbreit img {
		display: block;
		width: 100%;
		height: auto;
	}
}

/* Schlagschatten */
.portrait-foto img {
	box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);
}

/* Einheitliche Farbe für Header und Menü */
#masthead,
#masthead .menu-toggle,
#masthead .site-menu-inner,
#masthead .menu li a {
	background-color: #405568;
}

/* Weisse Menüschrift */
#masthead .menu-toggle,
#masthead .menu li a {
	color: #ffffff;
}

/* Etwas dunkler bei Mauszeiger oder Tastaturfokus */
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus,
#masthead .menu li a:hover,
#masthead .menu li a:focus {
	background-color: #344655;
}

/* Dunklerer Hintergrund im aufgeklappten Menü */
#masthead .site-menu-inner,
#masthead .menu li a {
	background-color: #344655;
}

/* Hervorhebung für Mauszeiger, Fokus und aktuelle Seite */
#masthead .menu li a:hover,
#masthead .menu li a:focus,
#masthead .menu .current-menu-item > a,
#masthead .menu .current_page_item > a,
#masthead .menu .current-menu-ancestor > a {
	background-color: #263947;
}

@media (min-width: 960px) {
	/* Bild rechts: linke Textkante nach innen rücken */
	.entry-content .seitenbreit.has-media-on-the-right
	  > .wp-block-media-text__content {
		padding-left: calc(110px + 1.5rem);
	}
	
	/* Bild links: rechte Textkante nach innen rücken */
	.entry-content .seitenbreit:not(.has-media-on-the-right)
	  > .wp-block-media-text__content {
		padding-right: calc(110px + 1.5rem);
	}
}

/* Fokusrahmen bei Maus- oder Touchbedienung ausblenden */
#masthead .menu-toggle:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}