/* P5 globale Ergaenzungen (21.11.2026), geladen ueber functions.php mit Dateidatum als Version */

/* Burger-Menue (Handy/Tablet): Menuepunkte rechtsbuendig unter dem Burger statt links (Marc, 21.11.2026).
   Nur Kopfleiste der neuen Seiten: .p5-topbar bzw. Startseite 55e494e2 */
:is(.p5-topbar, .elementor-element-55e494e2) .elementor-nav-menu--dropdown .elementor-item,
:is(.p5-topbar, .elementor-element-55e494e2) .elementor-nav-menu--dropdown .elementor-sub-item {
	justify-content: flex-end !important;
	text-align: right !important;
	padding-right: 32px !important;
}
:is(.p5-topbar, .elementor-element-55e494e2) .elementor-nav-menu--dropdown .sub-arrow {
	order: -1;
	padding: 0 8px 0 0 !important;
}

/* Logo oben links kleiner, mehr schwarzer Rand drumherum (Marc, 21.11.2026). Leistenhoehe bleibt gleich (Desktop 109 px, Handy 80 px). */
html body :is(.p5-topbar, .elementor-element-55e494e2) {
	min-height: 109px;
	align-items: center !important;
}
html body :is(.p5-topbar .p5-logo, .elementor-element-55e494e2 .elementor-element-f807a48b) img {
	width: 96px !important;
	height: auto !important;
}
@media (max-width: 767px) {
	html body :is(.p5-topbar, .elementor-element-55e494e2) {
		min-height: 80px;
	}
	html body :is(.p5-topbar .p5-logo, .elementor-element-55e494e2 .elementor-element-f807a48b) img {
		width: 64px !important;
	}
}

/* Handy: Tickets-Button ragte rechts ueber den Rand, weil die rechte Spalte zu schmal war (Marc, 21.11.2026).
   Rechte Spalte (Burger + Tickets) behaelt ihre Breite, linke Spalte (Logo) gibt nach. */
@media (max-width: 767px) {
	html body :is(.p5-topbar, .elementor-element-55e494e2) > .e-con:last-child {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
	}
	html body :is(.p5-topbar, .elementor-element-55e494e2) > .e-con:first-child {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		width: auto !important;
	}
}

/* Teamseite: Fotos der Team- und Beiratskarten sind quadratisch; Platz vorab reservieren,
   damit der Sprung auf /kongress/team/#beirat nicht durch nachladende Bilder verrutscht (21.11.2026). */
.p5t-karte .elementor-widget-image img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: cover;
}
/* Sprungziel unter der festen Kopfleiste (109 px Desktop, 80 px Handy) */
#beirat {
	scroll-margin-top: 110px;
}
