/**
 * Top-Bar-Styles fuer "Mein OG-Login".
 *
 * Service-Leiste oben rechts im Header-Block. Markup wird vom Plugin am
 * GeneratePress-Hook "generate_before_header_content" INNERHALB von
 * <div class="inside-header"> ausgegeben; die Platzierung erfolgt hier
 * rein per CSS, absolut positioniert am oberen Rand des Header-Blocks.
 *
 * Uebernommen aus dem frueheren Childtheme-Stylesheet css/top-bar.css.
 * Aenderung: Social-Icons sind jetzt einfaerbbare Inline-SVGs
 * (.og-top-bar-svg, fill: currentColor) statt WebP-Bilder.
 *
 * Farbe: Vereins-Gruen #5a9e33 (Hover/Focus #4a8229), Cyan-Focus #37AAE1.
 *
 * @package Mein_OG_Login
 * @author  Joern Gorres
 * @version 1.2.0
 */

/* Inneren Header-Container zum Referenzrahmen fuer die absolute
 * Positionierung machen (Ausrichtung am rechten Rand des zentrierten
 * Inhaltsbereichs, gleiche Linie wie Hauptmenue/Suchfeld). */
.inside-header {
	position: relative;
}

/* Die Top-Bar selbst: oben rechts im Header-Block. "top" ggf.
 * feinjustieren, wenn sich Logo-/Header-Padding im Customizer aendert. */
.og-top-bar {
	position: absolute;
	top: 20px;
	right: 0;
	z-index: 5;
	font-family: 'Roboto Condensed', sans-serif;
	line-height: 1.2;
}

/* Icons und Text horizontal nebeneinander, vertikal mittig. */
.og-top-bar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Einzelne Links: kein Unterstrich, Vereins-Gruen, Icon + Text auf
 * einer Grundlinie. */
.og-top-bar .og-top-bar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #5a9e33;
	text-decoration: none;
	font-weight: 700;
	transition: color 0.2s ease;
}

/* Hover-/Fokus-Zustand: dunkleres Gruen, fuer Tastatur zusaetzlich
 * eine Outline (Accessibility). */
.og-top-bar .og-top-bar-link:hover,
.og-top-bar .og-top-bar-link:focus {
	color: #4a8229;
}

.og-top-bar .og-top-bar-link:focus-visible {
	outline: 2px solid #5a9e33;
	outline-offset: 2px;
}

/* Login-Dashicon: 18px, Farbe erbt vom Link (Hover/Focus greift). */
.og-top-bar .og-top-bar-link .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
	color: inherit;
}

/* Social-Inline-SVGs: gleiche Zeichenhoehe wie das Dashicon, Farbe
 * erbt vom Link (currentColor), damit Hover/Focus auch hier greift. */
.og-top-bar .og-top-bar-link .og-top-bar-svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Bild-Icons (bestehende farbige Marken-Icons fuer Facebook/Instagram)
 * auf dieselbe Zeichenhoehe bringen. "display: block" verhindert
 * zusaetzliche Bildgrundlinie; Flex-Ausrichtung haelt alles mittig. */
.og-top-bar .og-top-bar-link .og-top-bar-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* Textlabel neben dem Login-Icon: Versalien mit leichter Sperrung. */
.og-top-bar .og-top-bar-text {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Reduzierte Bewegung respektieren. */
@media (prefers-reduced-motion: reduce) {
	.og-top-bar .og-top-bar-link {
		transition: none;
	}
}

/* Mobile: kleiner, Leiste bleibt oben rechts. */
@media (max-width: 768px) {
	.og-top-bar {
		top: 6px;
		right: 0;
	}

	.og-top-bar-inner {
		gap: 12px;
	}

	.og-top-bar .og-top-bar-link .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}

	.og-top-bar .og-top-bar-link .og-top-bar-svg,
	.og-top-bar .og-top-bar-link .og-top-bar-icon {
		width: 16px;
		height: 16px;
	}

	.og-top-bar .og-top-bar-text {
		font-size: 11px;
	}
}
