/* Dunav – ergänzende Styles zu theme.json */

/* Kleines Etikett über der Hauptüberschrift: nur so breit wie der Text */
.dunav-oznaka {
	width: fit-content;
}

/* Welle unter bzw. über einer Gruppe – nimmt die Hintergrundfarbe der Gruppe */
.is-style-dunav-talas-dole,
.is-style-dunav-talas-gore {
	position: relative;
	overflow: visible;
}
.is-style-dunav-talas-dole {
	margin-block-end: 48px;
}
.is-style-dunav-talas-gore {
	margin-block-start: 48px;
}
.is-style-dunav-talas-dole::after,
.is-style-dunav-talas-gore::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 48px;
	background: inherit;
	-webkit-mask: url("../images/talas.svg") center / 100% 100% no-repeat;
	mask: url("../images/talas.svg") center / 100% 100% no-repeat;
	pointer-events: none;
}
.is-style-dunav-talas-dole::after {
	top: 100%;
}
.is-style-dunav-talas-gore::before {
	bottom: 100%;
	transform: scaleY(-1);
}

/* Gruppen-Kacheln: Bild zoomt leicht beim Überfahren */
.dunav-grupa {
	overflow: hidden;
}
.dunav-grupa .wp-block-cover__image-background {
	transition: transform 0.4s ease;
}
.dunav-grupa:hover .wp-block-cover__image-background,
.dunav-grupa:focus-within .wp-block-cover__image-background {
	transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
	.dunav-grupa .wp-block-cover__image-background {
		transition: none;
	}
}

/* Zitat ohne Rahmen, Quelle in Dunav-Blau */
.wp-block-quote.is-style-plain {
	margin: 0;
	padding: 0;
	border: 0;
}
.wp-block-quote.is-style-plain cite {
	display: block;
	margin-top: 0.75rem;
	font-style: normal;
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--wp--preset--color--accent-1);
}

/* Footer: Links unterstreichen erst beim Überfahren */
.dunav-podnozje a {
	text-decoration: none;
}
.dunav-podnozje a:hover,
.dunav-podnozje a:focus-visible {
	text-decoration: underline;
	color: var(--wp--preset--color--base);
}

/* Fokus sichtbar halten */
:where(a, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* ---------- Kopfzeile ---------- */
.dunav-zaglavlje {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .dunav-zaglavlje {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.dunav-logo img {
	display: block;
	height: auto;
}

/* Sprachumschalter SR | DE */
.dunav-jezik ul {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dunav-jezik a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.dunav-jezik a[aria-current="true"] {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--accent-1);
}
.dunav-jezik a:hover {
	text-decoration: underline;
}

/* Handy: Button in der Kopfzeile ausblenden, Logo kleiner */
@media (max-width: 781px) {
	.dunav-cta {
		display: none !important;
	}
	.dunav-logo img {
		width: 120px !important;
	}
}

/* ---------- Aktuelles (Social-Feed) ---------- */
.dunav-feed img {
	max-width: 100%;
	height: auto;
}

/* ---------- Unterseiten: Titelband ---------- */
.dunav-naslov-strane h1 {
	margin: 0;
}

/* ---------- Trainingszeiten der Gruppen ---------- */
.dunav-grupa__trening {
	display: inline-block;
	width: fit-content;
	margin-top: 0.5rem;
	padding: 0.3rem 0.7rem;
	border-radius: 8px;
	background: rgba(14, 42, 71, 0.75);
}
.dunav-trening {
	margin-block: 1.25rem 0;
	padding: 1.25rem 1.5rem;
	border-radius: 16px;
	background: var(--wp--preset--color--accent-3);
}
.dunav-trening__naslov {
	margin: 0 0 0.5rem;
	font-weight: 800;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
}
.dunav-trening dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 0;
}
.dunav-trening dt {
	font-size: 0.85rem;
	color: var(--wp--preset--color--accent-4);
}
.dunav-trening dd {
	margin: 0;
	font-weight: 700;
}

/* ---------- Vorstand ---------- */
.dunav-clan {
	text-align: center;
}
.dunav-clan__foto img {
	aspect-ratio: 1;
	object-fit: cover;
}
