/* Fotocredit & KI-Kennzeichnung – sixzero.at
   Alle Regeln haengen ausschliesslich an eigenen Klassen.
   Kein bestehender Selektor wird beeinflusst.

   Groesse, Farben und Position kommen als CSS-Variablen bzw. Inline-Regel
   aus den Einstellungen (Einstellungen -> Fotocredit). Die Werte hier sind
   nur Rueckfallwerte. */

:root {
	--sixzero-credit-size: 12px;
	--sixzero-credit-color: #fff;
	--sixzero-credit-bg: rgba(0, 0, 0, .6);
}

/* Positionskontext am Container, der einen Credit enthaelt.
   position:relative ohne Offsets verschiebt nichts, es schafft nur den Bezug. */
.sixzero-has-credit { position: relative; }

/* Rueckfall fuer Faelle, in denen der Container-Filter nicht greift
   (z. B. handgeschriebenes Markup). */
.gb-element:has(> .sixzero-credit-anchor),
.gb-loop-item:has(> .sixzero-credit-anchor),
figure:has(> .sixzero-credit-anchor) { position: relative; }

/* Anker: absolut positioniert, nimmt daher niemals Platz im Layout ein.
   Ein Layout-Shift ist dadurch ausgeschlossen. */
.sixzero-credit-anchor {
	position: absolute;
	right: .5rem;
	bottom: .5rem;
	z-index: 2;
	max-width: calc(100% - 1rem);
	pointer-events: none;
	line-height: 0;
}

/* Zielgruppe 60+: bewusst kontrastreicher als ein uebliches Bild-Overlay. */
.sixzero-credit {
	display: inline-block;
	font-size: var(--sixzero-credit-size);
	line-height: 1.35;
	padding: .25em .5em;
	border-radius: 2px;
	background: var(--sixzero-credit-bg);
	color: var(--sixzero-credit-color);
	text-decoration: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
	font-style: normal;
	font-weight: 400;
	letter-spacing: .01em;
	word-break: break-word;
}

@media (max-width: 767px) {
	.sixzero-credit-anchor {
		right: .35rem;
		bottom: .35rem;
	}

	.sixzero-credit {
		font-size: calc(var(--sixzero-credit-size) - 1px);
		padding: .2em .4em;
	}
}

@media (prefers-contrast: more) {
	.sixzero-credit {
		background: #000;
		text-shadow: none;
	}
}

@media print {
	.sixzero-credit {
		background: none;
		color: #000;
		text-shadow: none;
	}
}
