@charset "UTF-8";
/* Grundlagen, Kopf- und Fußbereich des BRG|BORG Feldbach. */

:root {
	--bb-bg: #f4f6f8;
	--bb-flaeche: #ffffff;
	--bb-text: #14212f;
	--bb-gedeckt: #5b6977;
	--bb-rand: rgba(20, 33, 47, 0.12);
	--bb-rand-hell: rgba(20, 33, 47, 0.06);
	--bb-primaer: #16396e;
	--bb-primaer-2: #275db0;
	--bb-akzent: #6cc04a;
	--bb-verlauf: linear-gradient(135deg, #16396e, #275db0);
	--bb-verlauf-dunkel: linear-gradient(135deg, #0f2f5d, #16396e);
	--bb-verlauf-linie: linear-gradient(90deg, #16396e, #275db0);
	--bb-schatten: 0 18px 45px rgba(12, 28, 45, 0.12);
	--bb-radius: 22px;
	--bb-container: min(1200px, calc(100vw - 48px));
	--bb-seitenrand: calc((100vw - var(--bb-container)) / 2);
	--bb-kopf-hoehe: 150px;
	--bb-bewegung: 1;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--bb-bewegung: 0;
	}
}

body.bb {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: clamp(15px, 1.1vw, 18px);
	color: var(--bb-text);
	background: var(--bb-bg);
	line-height: 1.6;
}

:where(body.bb) :is(h1, h2, h3, h4, h5, h6) {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 700;
	color: var(--bb-text);
}

:where(body.bb) a {
	color: var(--bb-primaer);
}

.bb-container {
	width: var(--bb-container);
	margin: 0 auto;
}

.bb-icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	fill: currentColor;
}

/* Fokus: dunkler Ring mit hellem Saum, damit er auf Foto, Weiß und
   Blau gleichermaßen besteht. */
body.bb :focus-visible {
	outline: 3px solid var(--bb-text);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 7px #fff;
}

/* Kopfbereich ---------------------------------------------------- */
.bb-kopf {
	position: relative;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid rgba(20, 33, 47, 0.08);
}

/* Auf der Startseite schwebt der Kopf über der Bühne. */
body.bb-kopf-schwebend .bb-kopf {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

body.bb-kopf-schwebend.admin-bar .bb-kopf {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.bb-kopf.ist-offen {
	background: #fff;
}

.bb-kopf__innen {
	min-height: var(--bb-kopf-hoehe);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.bb-logo {
	display: block;
	flex: 0 0 auto;
}

.bb-logo__bild {
	width: 365px;
	height: auto;
	display: block;
}

.bb-kopf__rechts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.bb-tools {
	display: flex;
	gap: 10px;
}

.bb-nav__tools {
	display: none;
}

.bb-tool {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, var(--bb-primaer), var(--bb-primaer-2));
	box-shadow: 0 10px 20px rgba(22, 57, 110, 0.18);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-tool:hover,
.bb-tool:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 24px rgba(22, 57, 110, 0.24);
}

.bb-tool .bb-icon {
	width: 1.45em;
	height: 1.45em;
}

.bb-tool--button-1,
.bb-tool--button-2 {
	width: auto;
	padding: 0 16px;
	font-size: 1rem;
	font-weight: 800;
	white-space: nowrap;
}

.bb-tool--button-1,
.bb-tool--button-1:hover,
.bb-tool--button-1:focus-visible {
	background: #f89900;
	color: var(--bb-text);
}

.bb-tool--button-2,
.bb-tool--button-2:hover,
.bb-tool--button-2:focus-visible {
	background: #ad80e3;
	color: var(--bb-text);
}

.bb-tool--facebook:hover,
.bb-tool--instagram:hover,
.bb-tool--youtube:hover,
.bb-tool--facebook:focus-visible,
.bb-tool--instagram:focus-visible,
.bb-tool--youtube:focus-visible {
	background: var(--bb-verlauf-dunkel);
}

/* Hauptnavigation */
.bb-nav__liste,
.bb-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-nav__liste {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bb-nav__liste > li {
	position: relative;
}

.bb-nav a {
	text-decoration: none;
	color: var(--bb-text);
}

.bb-nav__liste > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	font-weight: 700;
	border-radius: 12px;
}

.bb-nav__liste > li > a:hover,
.bb-nav__liste > li > a:focus-visible,
.bb-nav__liste > li.ist-offen > a {
	background: rgba(22, 57, 110, 0.06);
	color: var(--bb-primaer);
}

.bb-nav__pfeil {
	font-size: 1rem;
	transition: transform 0.2s ease;
}

.bb-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 240px;
	display: grid;
	gap: 4px;
	padding: 10px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: var(--bb-schatten);
	border: 1px solid rgba(20, 33, 47, 0.1);
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 5;
}

/* Brücke zwischen Eintrag und Untermenü, damit der Zeiger den Weg
   überqueren kann, ohne dass das Menü zuklappt. */
.bb-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

.bb-nav .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	white-space: nowrap;
}

.bb-nav .sub-menu a:hover,
.bb-nav .sub-menu a:focus-visible {
	background: rgba(19, 59, 117, 0.08);
	color: var(--bb-primaer);
}

.bb-nav__liste > li:hover > .sub-menu,
.bb-nav__liste > li:focus-within > .sub-menu,
.bb-nav__liste > li.ist-offen > .sub-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Dritte Ebene: klappt seitlich aus, nach links, damit sie am rechten
   Bildrand Platz hat. */
.bb-nav .sub-menu li {
	position: relative;
}

.bb-nav .sub-menu .bb-nav__pfeil {
	transform: rotate(90deg);
}

.bb-nav .sub-menu .sub-menu {
	top: -10px;
	left: auto;
	right: calc(100% + 10px);
	min-width: 270px;
	transform: translateX(6px);
}

.bb-nav .sub-menu .sub-menu::before {
	top: 0;
	bottom: 0;
	left: auto;
	right: -12px;
	width: 12px;
	height: auto;
}

.bb-nav .sub-menu li:hover > .sub-menu,
.bb-nav .sub-menu li:focus-within > .sub-menu,
.bb-nav .sub-menu li.ist-offen > .sub-menu {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.bb-toggle {
	display: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 1px solid rgba(20, 33, 47, 0.15);
	background: #fff;
	cursor: pointer;
	padding: 0;
	flex: 0 0 auto;
}

.bb-toggle__balken span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var(--bb-primaer);
	transform-origin: center;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

.bb-toggle:focus {
	background: #fff;
	border-color: rgba(20, 33, 47, 0.15);
}

.bb-toggle:hover,
.bb-toggle:focus-visible {
	background: var(--bb-verlauf);
	border-color: transparent;
}

.bb-toggle:hover .bb-toggle__balken span,
.bb-toggle:focus-visible .bb-toggle__balken span {
	background: #fff;
}

.bb-toggle.ist-offen span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.bb-toggle.ist-offen span:nth-child(2) {
	opacity: 0;
}

.bb-toggle.ist-offen span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1399px) and (min-width: 901px) {
	:root {
		--bb-kopf-hoehe: 110px;
	}

	.bb-logo__bild {
		width: 265px;
	}

	.bb-kopf__rechts {
		gap: 5px;
	}
}

@media (max-width: 900px) {
	:root {
		--bb-kopf-hoehe: 92px;
	}

	body.bb-kopf-schwebend .bb-kopf,
	.bb-kopf {
		position: sticky;
		top: 0;
	}

	body.bb-kopf-schwebend.admin-bar .bb-kopf {
		top: var(--wp-admin--admin-bar--height, 46px);
	}

	.bb-kopf__innen {
		padding: 14px 0;
	}

	.bb-logo__bild {
		width: 265px;
	}
}

/* Smartphone: Burger-Menü. */
@media (max-width: 720px) {
	.bb-kopf__rechts {
		display: block;
	}

	.bb-tools {
		display: none;
	}

	.bb-toggle {
		display: block;
	}

	.bb-nav {
		position: fixed;
		top: var(--bb-kopf-hoehe);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 900;
		background: rgba(255, 255, 255, 0.98);
		padding: 24px 24px 32px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	.admin-bar .bb-nav {
		top: calc(var(--bb-kopf-hoehe) + var(--wp-admin--admin-bar--height, 46px));
	}

	.bb-nav.ist-offen {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.bb-nav__liste {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.bb-nav__liste > li > a {
		display: flex;
		justify-content: space-between;
		font-size: 1.35rem;
		padding: 14px 0;
		border-radius: 0;
	}

	.bb-nav__liste > li > a:hover,
	.bb-nav__liste > li.ist-offen > a {
		background: transparent;
	}

	.bb-nav .sub-menu,
	.bb-nav .sub-menu .sub-menu {
		position: static;
		display: none;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		min-width: 100%;
		box-shadow: none;
		border: none;
		background: transparent;
		padding: 0 0 8px;
		margin: 0;
	}

	.bb-nav .sub-menu .sub-menu {
		margin: 4px 0 8px 16px;
	}

	.bb-nav .sub-menu a {
		padding: 10px 0;
		white-space: normal;
	}

	.bb-nav .sub-menu .bb-nav__pfeil {
		transform: none;
	}

	.bb-nav li.ist-offen > .sub-menu {
		display: grid;
	}

	.bb-nav li.ist-offen > a > .bb-nav__pfeil {
		transform: rotate(180deg);
	}

	.bb-nav__tools {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
		margin-top: 22px;
		padding-top: 22px;
		border-top: 1px solid rgba(20, 33, 47, 0.1);
	}

	.bb-nav__services,
	.bb-nav__socials {
		display: flex;
		justify-content: center;
		gap: 10px;
	}

	.bb-nav .bb-nav__socials .bb-tool {
		color: #fff;
	}

	body.hat-bb-menue {
		overflow: hidden;
	}
}

@media (max-width: 720px) {
	:root {
		--bb-container: min(1200px, calc(100vw - 32px));
	}

	.bb-logo__bild {
		width: 190px;
	}
}

/* Innenseiten: Seitentitel groß und fett. */
body.bb-kopf-fest #content {
	padding-top: 0;
}

body.bb-kopf-fest .entry-title,
body.bb-kopf-fest .ast-archive-title {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	line-height: 1.05;
	font-weight: 800;
}

/* Aufzählungen: Punkte bündig mit dem Fließtext, Listentext eingerückt. */
body.bb .entry-content ul.wp-block-list,
body.bb .entry-content ol.wp-block-list,
body.bb .entry-content ul.wp-block-list ul,
body.bb .entry-content ol.wp-block-list ol {
	margin-left: 0;
	padding-left: 1.3em;
	list-style-position: outside;
}

/* Fußbereich ----------------------------------------------------- */
.bb-fuss {
	margin-top: 70px;
	background: #fff;
	color: #000;
}

body.bb-kopf-schwebend .bb-fuss {
	margin-top: 0;
}

/* Logo-Laufband: die Reihe ist verdoppelt und läuft endlos nach links. */
.bb-fuss__logos {
	overflow: hidden;
	border-bottom: 1px solid rgba(20, 33, 47, 0.08);
	padding: 20px 0;
}

.bb-laufband {
	position: relative;
	overflow: hidden;
}

.bb-laufband::before,
.bb-laufband::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100px;
	z-index: 2;
	pointer-events: none;
}

.bb-laufband::before {
	left: 0;
	background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.bb-laufband::after {
	right: 0;
	background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.bb-laufband__spur {
	display: flex;
	width: max-content;
	animation: bb-laufband 34s linear infinite;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-laufband:hover .bb-laufband__spur,
.bb-laufband:focus-within .bb-laufband__spur {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.bb-laufband__spur {
		animation: none;
		flex-wrap: wrap;
		width: auto;
		justify-content: center;
	}

	.bb-laufband__spur li[aria-hidden="true"] {
		display: none;
	}
}

.bb-laufband__logo {
	width: 20vw;
	max-width: 220px;
	min-width: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
}

.bb-laufband__logo img {
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

@keyframes bb-laufband {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.bb-fuss__haupt {
	padding: 46px 0 24px;
	display: grid;
	grid-template-columns: 1.15fr 0.9fr 0.9fr;
	gap: 32px;
}

.bb-fuss__marke {
	display: grid;
	align-content: start;
	gap: 22px;
}

.bb-fuss__logo {
	width: min(340px, 100%);
	height: auto;
}

.bb-fuss__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bb-fuss__socials .bb-tool {
	background: var(--bb-primaer);
	box-shadow: 0 10px 22px rgba(22, 57, 110, 0.18);
}

.bb-fuss__socials .bb-tool:hover,
.bb-fuss__socials .bb-tool:focus-visible {
	background: var(--bb-verlauf);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(22, 57, 110, 0.24);
}

.bb-fuss__kontakt h3,
.bb-footer-titel {
	margin: 0 0 14px;
	font-size: 1.32rem;
	font-weight: 700;
}

.bb-fuss__kontakt p,
.bb-fuss__kontakt address {
	margin: 0;
	color: var(--bb-text);
	font-style: normal;
	line-height: 1.8;
}

.bb-fuss__kontakt a,
.bb-fuss__legal a {
	color: var(--bb-text);
	text-decoration: none;
}

.bb-fuss__kontakt a:hover,
.bb-fuss__legal a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bb-fuss__meta {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(20, 33, 47, 0.08);
}

.bb-fuss__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.bb-fuss__copyright {
	margin: 0 0 10px;
	color: #333;
}

.bb-fuss__region {
	justify-self: end;
	display: inline-flex;
}

.bb-fuss__region img,
.bb-fuss__region figure {
	margin: 0;
	max-width: 190px;
	height: auto;
	display: block;
}

@media (max-width: 720px) {
	.bb-fuss__haupt {
		grid-template-columns: 1fr;
	}

	.bb-fuss__meta {
		grid-template-columns: 1fr;
	}

	.bb-fuss__region {
		justify-self: start;
	}

	.bb-fuss__logos {
		padding: 10px 0;
	}

	.bb-laufband__logo {
		width: 30vw;
		min-width: 120px;
	}
}
