/*!
 * The German Flock – Ravens Roost #500
 * Design & Entwicklung: Kaster Development – Steffen Kaster
 * Schön, dass du in den Code schaust. Play like a Raven.
 */

/* ==========================================================================
   The German Flock – Child-Theme-Styles

   Farben, Schriftgrößen und Buttons kommen aus den Elementor-Website-
   Einstellungen (Kit) und den Widgets. Hier stehen Atmosphäre, Übergänge
   und Bewegung – Dinge, die Elementor nicht selbst abbilden kann.

   Gestaltungsidee: ein Abend im Stadion
   - Die Seite ist eine durchgehende Nacht in Ravens-Lila. Abschnitte haben
     keine harten Kanten, sondern Lichtinseln, die ineinander übergehen –
     wie Flutlicht über dem Feld.
   - Fotos lösen sich weich in den Hintergrund auf.
   - Gold nur für Aktionen und die Markierung im Menü.
   - Schriften: Marcellus (frei) für Titel (verwandt mit
     dem Serifen-Schild „Play like a Raven“), Roboto für alles andere.
   - Bewegung ist ruhig und lang: Inhalte gleiten mit leichter Unschärfe
     herein, gestaffelt, eine Kurve für alles. Scrollen mit Trägheit (Lenis).

   Farben
   Nacht #0E0A24   Tief #150F38   Ravens-Lila #241773   Lichtschein #3B2A9E
   Gold #D5A710    Weiß #FFFFFF   Text #CFC9EA
   ========================================================================== */

:root {
	--tgf-night: #0E0A24;
	--tgf-deep: #150F38;
	--tgf-purple: #241773;
	--tgf-glow: #3B2A9E;
	--tgf-gold: #D5A710;
	--tgf-gold-hover: #E8BC1E;
	--tgf-white: #FFFFFF;
	--tgf-text: #CFC9EA;
	--tgf-field: #100A36;
	--tgf-line: rgba(255, 255, 255, 0.14);
	--tgf-header-h: 80px;
	--tgf-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--tgf-display: "Marcellus", Georgia, "Times New Roman", serif;
	--tgf-ease: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: dark;
}

/* Basis ------------------------------------------------------------------- */
html {
	scroll-padding-top: var(--tgf-anchor-offset, var(--tgf-header-h));
}

/* Lenis (weiches Scrollen) */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

body.tgf-site {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: var(--tgf-font);
	background-color: var(--tgf-night);
	overflow-x: clip;
}

.tgf-site .elementor-heading-title {
	text-wrap: balance;
}

/* Marcellus gibt es nur in einem Schnitt – nichts künstlich fett oder kursiv rechnen */
.tgf-site h1,
.tgf-site h2,
.tgf-brand__name,
.tgf-footer__mark {
	font-synthesis: none;
}

.tgf-site p {
	text-wrap: pretty;
}

.tgf-site a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: from-font;
	transition: color 0.3s ease;
}

.tgf-site :focus-visible {
	outline: 2px solid var(--tgf-gold);
	outline-offset: 3px;
}

.tgf-site ::selection {
	background: var(--tgf-gold);
	color: #000000;
}

.tgf-copy p {
	max-width: 60ch;
}

.tgf-copy p:last-child {
	margin-bottom: 0;
}

.tgf-copy strong,
.tgf-footer__about strong {
	color: var(--tgf-white);
	font-weight: 600;
}

.tgf-lead p {
	font-size: 1.3rem;
	line-height: 1.5;
	max-width: 36ch;
	color: var(--tgf-white);
}

.tgf-lead--wide p {
	max-width: 46ch;
}

/* Buttons: weiche Übergänge, leichtes Anheben */
.tgf-site .elementor-button {
	transition: background-color 0.4s var(--tgf-ease), color 0.4s var(--tgf-ease), border-color 0.4s var(--tgf-ease), box-shadow 0.5s var(--tgf-ease), transform 0.5s var(--tgf-ease);
}

.tgf-site .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -14px rgba(213, 167, 16, 0.55);
}

.tgf-site .elementor-button-icon svg {
	fill: currentColor;
}

/* Abschnitte: transparente Bühne mit Lichtinseln ------------------------- */
.tgf-section {
	position: relative;
	isolation: isolate;
}

.tgf-section::after {
	content: "";
	position: absolute;
	inset: -18% 0;
	z-index: -1;
	pointer-events: none;
}

.tgf-section--ueber-uns::after {
	background: radial-gradient(48% 42% at 88% 30%, rgba(59, 42, 158, 0.32), transparent 72%);
}

.tgf-section--podcast::after {
	background:
		radial-gradient(52% 46% at 24% 50%, rgba(36, 23, 115, 0.9), transparent 74%),
		radial-gradient(34% 34% at 86% 70%, rgba(213, 167, 16, 0.07), transparent 70%);
}

.tgf-section--mitglied-werden::after {
	background:
		linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.45) 70%, transparent 100%),
		radial-gradient(40% 40% at 78% 45%, rgba(213, 167, 16, 0.08), transparent 72%);
}

.tgf-section--kontakt::after {
	background: radial-gradient(50% 44% at 72% 55%, rgba(59, 42, 158, 0.26), transparent 72%);
}

/* Header: transparent über dem Hero, danach Glas ------------------------- */
.elementor-location-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color 0.6s var(--tgf-ease), box-shadow 0.6s var(--tgf-ease), backdrop-filter 0.6s var(--tgf-ease);
}

.elementor-location-header.is-scrolled {
	background-color: rgba(14, 10, 36, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: 0 1px 0 var(--tgf-line);
}

body.admin-bar .elementor-location-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .elementor-location-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .elementor-location-header {
		top: 0;
	}
}

.elementor-editor-active .elementor-location-header {
	position: relative;
}

body.tgf-site .elementor-location-header .tgf-header {
	transition: padding 0.6s var(--tgf-ease);
}

body.tgf-site .elementor-location-header.is-scrolled .tgf-header {
	--padding-top: 10px;
	--padding-bottom: 10px;
}

.tgf-brand > .elementor-widget,
.tgf-header__right > .elementor-widget {
	width: auto;
	flex: none;
}

.tgf-brand__logo img {
	display: block;
	width: 52px;
	height: 52px;
	transition: width 0.6s var(--tgf-ease), height 0.6s var(--tgf-ease), transform 0.8s var(--tgf-ease);
}

.is-scrolled .tgf-brand__logo img {
	width: 42px;
	height: 42px;
}

/* Beim Überfahren schwingt das Logo einmal aus und steht danach wieder ruhig,
   auch wenn die Maus liegen bleibt. Erneutes Überfahren startet es neu. */
@media (hover: hover) {
	.tgf-motion .tgf-brand__logo a:hover img {
		animation: tgf-logo-swing 1.2s var(--tgf-ease);
	}
}

@keyframes tgf-logo-swing {
	0% {
		transform: rotate(0deg) scale(1);
	}
	18% {
		transform: rotate(-16deg) scale(1.1);
	}
	42% {
		transform: rotate(11deg) scale(1.07);
	}
	64% {
		transform: rotate(-6deg) scale(1.03);
	}
	82% {
		transform: rotate(2.5deg) scale(1.01);
	}
	100% {
		transform: rotate(0deg) scale(1);
	}
}

.tgf-site .tgf-brand__name .elementor-heading-title {
	font-family: var(--tgf-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.tgf-site .tgf-brand__name a {
	color: inherit;
	text-decoration: none;
}

/* „Mitglied werden“ steht auf großen Bildschirmen als Button daneben */
@media (min-width: 1025px) {
	.tgf-site .tgf-nav .elementor-nav-menu--main .tgf-menu-join {
		display: none;
	}
}

.tgf-site .tgf-nav .elementor-nav-menu--main {
	position: relative;
}

.tgf-site .tgf-nav .elementor-nav-menu--main .elementor-item {
	transition: color 0.4s var(--tgf-ease);
}

.tgf-nav-indicator {
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--tgf-gold);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.8s var(--tgf-ease), width 0.8s var(--tgf-ease), opacity 0.5s ease;
}

/* mobiles Menü: ganzer Bildschirm */
@media (max-width: 1024px) {
	.tgf-site .tgf-nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown {
		height: calc(100svh - var(--tgf-header-h));
		overflow-y: auto;
		background: var(--tgf-night);
	}

	.tgf-site .tgf-nav .elementor-nav-menu--dropdown {
		border-top: 1px solid var(--tgf-line);
	}

	.tgf-site .tgf-nav .elementor-nav-menu--dropdown a.elementor-item {
		border-bottom: 1px solid var(--tgf-line);
	}

	.tgf-site .tgf-nav .elementor-nav-menu--dropdown a.is-current {
		color: var(--tgf-gold);
	}
}

/* zum Messen der kompakten Header-Höhe (tgf.js), ohne sichtbaren Übergang */
.tgf-measure,
.tgf-measure * {
	transition: none !important;
}

/* Hero --------------------------------------------------------------------- */
body.tgf-site .tgf-hero.e-con {
	--min-height: 100svh;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Lesbarkeit links, weicher Übergang nach unten in die Nacht */
.tgf-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(14, 10, 36, 0.65) 0%, rgba(14, 10, 36, 0) 22%),
		linear-gradient(90deg, rgba(14, 10, 36, 0.92) 0%, rgba(14, 10, 36, 0.55) 45%, rgba(14, 10, 36, 0.1) 100%),
		linear-gradient(0deg, var(--tgf-night) 0%, rgba(14, 10, 36, 0.6) 18%, rgba(14, 10, 36, 0) 42%);
}

.tgf-hero > .e-con-inner {
	position: static;
}

.tgf-hero > .e-con-inner > .e-con,
.tgf-hero > .e-con-inner > .elementor-widget {
	position: relative;
	z-index: 2;
}

.tgf-hero__visual {
	transition: transform 1.4s var(--tgf-ease);
}

.tgf-hero__logo {
	position: relative;
}

.tgf-hero__logo::before {
	content: "";
	position: absolute;
	inset: 6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 42, 158, 0.75) 0%, rgba(36, 23, 115, 0.3) 45%, transparent 70%);
	filter: blur(24px);
}

/* Hero-Überschrift wächst stufenlos mit der Breite, damit „THE GERMAN“ immer in eine Zeile passt
   (überschreibt die festen Kit-Größen nur für diese eine Überschrift) */
.tgf-site .tgf-hero h1.elementor-heading-title {
	font-size: clamp(2.875rem, 6.6vw, 6rem);
}

.tgf-hero__logo img {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin-inline: auto;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   „Das ist der Flock“ – das Gruppenbild
   Ruhiger Abschnitt: das Foto steht in voller Breite, löst sich oben und unten
   weich in die Nacht auf und erscheint beim Scrollen mit derselben Bewegung wie
   alle anderen Bilder (data-reveal, siehe tgf.js). Kein Zoom, nichts bleibt hängen.
   ========================================================================== */
.tgf-crowd {
	position: relative;
}

.tgf-site .tgf-crowd__stage {
	position: relative;
	height: min(88svh, 820px);
	overflow: hidden;
	isolation: isolate;
}

/* weiche Kanten: oben und unten in die Nacht, oben dunkler für den Satz */
.tgf-crowd__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, var(--tgf-night) 0%, rgba(14, 10, 36, 0.7) 18%, rgba(14, 10, 36, 0) 48%),
		linear-gradient(0deg, var(--tgf-night) 0%, rgba(14, 10, 36, 0) 22%),
		radial-gradient(120% 90% at 50% 60%, transparent 55%, rgba(14, 10, 36, 0.55) 100%);
}

.tgf-site .tgf-crowd__stage > .tgf-crowd__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	max-width: none;
	margin: 0;
}

.tgf-crowd__img img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: 50% 62%;
	filter: brightness(0.74);
}

.tgf-site .tgf-crowd__stage > .tgf-crowd__title {
	position: absolute;
	top: 12%;
	left: 0;
	right: 0;
	z-index: 2;
	padding-inline: 16px;
}

.tgf-site .tgf-crowd__title .elementor-heading-title {
	font-size: clamp(2.25rem, 7vw, 7.25rem);
	line-height: 1;
	text-align: center;
	text-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.tgf-site .tgf-crowd__stage > .tgf-crowd__caption {
	position: absolute;
	left: max(32px, calc((100% - 1200px) / 2 + 32px));
	bottom: 9%;
	z-index: 2;
	width: auto;
	max-width: calc(100% - 32px);
}

.tgf-crowd__caption p {
	display: inline-block;
	margin: 0;
	padding: 7px 14px;
	border-radius: 3px;
	font-size: 0.875rem;
	color: var(--tgf-white);
	background: rgba(14, 10, 36, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* Hero beim Verlassen: Kamera fährt in den Tunnel, Inhalt löst sich nach oben */
.tgf-motion .tgf-hero > .e-con-inner > .e-con {
	translate: 0 calc(var(--hp, 0) * -90px);
	opacity: calc(1 - var(--hp, 0) * 1.4);
	filter: blur(calc(var(--hp, 0) * 6px));
}

.tgf-motion .tgf-hero .elementor-motion-effects-layer {
	scale: calc(1 + var(--hp, 0) * 0.22);
	transform-origin: 50% 30%;
}

/* Bild mit Bildunterschrift ----------------------------------------------- */
.tgf-figure figure {
	margin: 0;
}

.tgf-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.tgf-figure figcaption {
	margin-top: 12px;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.4;
	color: var(--tgf-text);
	text-align: left;
}

/* Schritte (echte Reihenfolge) -------------------------------------------- */
.tgf-steps ol {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tgf-step;
}

.tgf-steps li {
	position: relative;
	padding-left: 52px;
	counter-increment: tgf-step;
	line-height: 1.5;
}

.tgf-steps li::before {
	content: counter(tgf-step);
	position: absolute;
	left: 0;
	top: -3px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-weight: 700;
	color: #000000;
	background: var(--tgf-gold);
}

/* Spotify (Zwei-Klick-Lösung) ---------------------------------------------- */
.tgf-spotify {
	display: grid;
	gap: 14px;
	justify-items: start;
	padding: 22px 24px;
	border: 1px solid var(--tgf-line);
	border-radius: 8px;
	background: rgba(14, 10, 36, 0.45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tgf-spotify p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--tgf-text);
}

.tgf-site .tgf-spotify__load {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border: 0;
	border-radius: 4px;
	font: 500 1rem/1.2 var(--tgf-font);
	color: #000000;
	background: var(--tgf-gold);
	cursor: pointer;
	transition: background-color 0.4s var(--tgf-ease), transform 0.5s var(--tgf-ease), box-shadow 0.5s var(--tgf-ease);
}

.tgf-site .tgf-spotify__load:hover,
.tgf-site .tgf-spotify__load:focus-visible {
	color: #000000;
	background: var(--tgf-gold-hover);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -14px rgba(213, 167, 16, 0.55);
}

.tgf-spotify__load svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.tgf-spotify.is-loaded {
	padding: 0;
	border: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.tgf-spotify iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
	animation: tgf-fade-in 0.8s var(--tgf-ease);
}

@keyframes tgf-fade-in {
	from {
		opacity: 0;
	}
}

/* Kontakt & Formular ---------------------------------------------------------- */
.tgf-site .tgf-contactlist .elementor-icon-list-item a,
.tgf-site .tgf-footer .elementor-icon-list-item a {
	text-decoration: none;
}

.tgf-site .tgf-contactlist .elementor-icon-list-icon svg,
.tgf-site .tgf-footer .elementor-icon-list-icon svg {
	fill: currentColor;
}

.tgf-site .tgf-form .elementor-field-group .elementor-field-textual {
	min-height: 48px;
	font-size: 1rem;
	transition: border-color 0.4s var(--tgf-ease), box-shadow 0.4s var(--tgf-ease), background-color 0.4s var(--tgf-ease);
}

.tgf-site .tgf-form .elementor-field-group .elementor-field-textual::placeholder {
	color: rgba(207, 201, 234, 0.55);
}

.tgf-site .tgf-form .elementor-field-group .elementor-field-textual:focus {
	outline: none;
	border-color: var(--tgf-gold);
	box-shadow: 0 0 0 4px rgba(213, 167, 16, 0.18);
}

.tgf-site .tgf-form .elementor-field-type-acceptance input {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -3px;
	accent-color: var(--tgf-gold);
}

.tgf-site .tgf-form .elementor-field-type-acceptance label {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.tgf-site .tgf-form .elementor-button[type="submit"] svg {
	fill: currentColor;
}

/* Footer ---------------------------------------------------------------------- */
.tgf-site .tgf-footer {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 38%);
}

.tgf-footer__logo img {
	display: block;
	width: 72px;
	height: 72px;
}

.tgf-footer p {
	margin: 0 0 0.4em;
}

.tgf-footer__bottom > .elementor-widget {
	width: auto;
}

/* Großer Schriftzug: nur die Kontur ist animiert ---------------------------
   tgf.js legt den Schriftzug als SVG-Text an (Klasse .tgf-mark-svg), damit
   sich die Umrisse einzeln animieren lassen:
   1. Kommt er ins Bild, zeichnet sich die Kontur jedes Buchstabens nach.
   2. Danach läuft ein kurzes Goldsegment langsam an den Umrissen entlang.
   Ohne JavaScript bleibt es ein normaler Kontur-Schriftzug (Text unten). */
.tgf-footer__markwrap {
	overflow: hidden;
}

.tgf-site .tgf-footer__mark .elementor-heading-title {
	font-family: var(--tgf-display);
	font-size: clamp(3rem, 12.5vw, 12.5rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-align: center;
	color: transparent;
	-webkit-text-stroke: 1px rgba(213, 167, 16, 0.5);
	user-select: none;
}

.tgf-site .tgf-footer__mark .elementor-heading-title.has-svg {
	font-size: 0;
	line-height: 0;
	-webkit-text-stroke: 0;
}

.tgf-mark-svg {
	display: block;
	width: min(1320px, calc(100% - 32px));
	height: auto;
	margin-inline: auto;
	overflow: visible;
}

.tgf-mark-svg text {
	font-family: var(--tgf-display);
	text-transform: uppercase;
	letter-spacing: 0.035em; /* bei reiner Kontur würden sich sonst Buchstaben berühren (R/M, M/A) */
	font-weight: 400;
	font-size: 200px;
	fill: none;
	stroke-linejoin: round;
}

/* Grundkontur (Strichstärke kommt als --sw aus tgf.js, damit sie überall ~1px bleibt) */
.tgf-mark-svg__base {
	stroke: rgba(213, 167, 16, 0.55);
	stroke-width: var(--sw, 1.2);
}

/* Lauflicht: ruhiger Nebeneffekt – längeres, weiches Segment, sehr langsam */
.tgf-mark-svg__run {
	stroke: #F2CF57;
	stroke-width: calc(var(--sw, 1.2) * 1.25);
	stroke-linecap: round;
	stroke-dasharray: 150 450;
	opacity: 0;
}

.tgf-motion .tgf-mark-svg__base {
	stroke-dasharray: 1600 1600;
	stroke-dashoffset: 1600;
	transition: stroke-dashoffset 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.tgf-motion .tgf-mark-svg.is-drawn .tgf-mark-svg__base {
	stroke-dashoffset: 0;
}

.tgf-motion .tgf-mark-svg.is-drawn .tgf-mark-svg__run {
	opacity: 0.55;
	transition: opacity 2.5s ease 2s;
	animation: tgf-run 15s linear 2s infinite;
}

.tgf-motion .tgf-mark-svg.is-paused .tgf-mark-svg__run {
	animation-play-state: paused;
}

@keyframes tgf-run {
	to {
		stroke-dashoffset: -600;
	}
}

/* mit der Maus darüber: Kontur etwas heller */
.tgf-site .tgf-footer__mark:hover .tgf-mark-svg__base {
	stroke: rgba(240, 201, 74, 0.85);
	transition: stroke 0.6s ease, stroke-dashoffset 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Nach oben ------------------------------------------------------------------ */
body.tgf-site .tgf-totop {
	position: fixed;
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #000000;
	background: var(--tgf-gold);
	box-shadow: 0 12px 28px -12px rgba(213, 167, 16, 0.6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.6s var(--tgf-ease), transform 0.8s var(--tgf-ease), visibility 0.6s, background-color 0.3s ease;
}

.tgf-site .tgf-totop:hover,
.tgf-site .tgf-totop:focus-visible {
	color: #000000;
	background: var(--tgf-gold-hover);
}

.tgf-past-hero body.tgf-site .tgf-totop {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Rechtliche Seiten (Hello-Templates) ------------------------------------- */
body.tgf-site .site-main {
	max-width: 760px;
	margin-inline: auto;
	padding: 160px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px));
}

body.tgf-site .site-main .page-header .entry-title {
	margin: 0 0 32px;
	font-size: clamp(1.75rem, 5.2vw, 3.25rem);
	line-height: 1.1;
	overflow-wrap: break-word;
	hyphens: auto;
}

body.tgf-site .site-main .page-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

body.tgf-site .site-main .page-content h2 {
	margin: 64px 0 16px;
	padding-top: 28px;
	border-top: 1px solid var(--tgf-line);
	font-size: clamp(1.5rem, 3.4vw, 2rem);
	line-height: 1.15;
	text-transform: none;
}

body.tgf-site .site-main .page-content h3 {
	margin: 36px 0 10px;
	font-family: var(--tgf-font);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	color: var(--tgf-white);
}

body.tgf-site .site-main .page-content h4 {
	margin: 24px 0 6px;
	font-family: var(--tgf-font);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
	color: var(--tgf-white);
}

body.tgf-site .site-main .page-content p,
body.tgf-site .site-main .page-content li {
	overflow-wrap: break-word;
	hyphens: auto;
}

body.tgf-site .site-main .page-content ul,
body.tgf-site .site-main .page-content ol {
	padding-left: 1.25em;
	margin: 0 0 1em;
}

body.tgf-site .site-main .page-content li + li {
	margin-top: 0.4em;
}

body.tgf-site .site-main .page-content a {
	overflow-wrap: anywhere;
}

.tgf-toc {
	margin: 0 0 8px;
	padding: 18px 22px;
	border: 1px solid var(--tgf-line);
	border-radius: 6px;
	background: rgba(14, 10, 36, 0.5);
}

.tgf-toc ol {
	margin: 0;
	padding-left: 1.25em;
}

.tgf-toc a {
	text-decoration: none;
}

.tgf-toc a:hover {
	text-decoration: underline;
}

.tgf-note {
	margin: 1.2em 0;
	padding: 14px 18px;
	border-left: 3px solid var(--tgf-gold);
	background: var(--tgf-deep);
}

.tgf-note p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Bewegung
   Alles läuft einmal und mit derselben Kurve. Versteckt wird nur unter
   html.tgf-motion – ohne JavaScript oder bei „Bewegung reduzieren“ ist
   alles sofort sichtbar.
   ========================================================================== */

/* Hero-Auftakt */
.tgf-mask {
	display: block;
	overflow: hidden;
	padding: 0.14em 0 0.08em;
	margin: -0.14em 0 -0.08em;
}

.tgf-mask__inner {
	display: block;
}

.tgf-motion .tgf-hero .tgf-mask__inner {
	transform: translateY(120%);
	filter: blur(6px);
	transition: transform 1.5s var(--tgf-ease), filter 1.2s var(--tgf-ease);
	transition-delay: calc(var(--i, 0) * 0.14s + 0.2s);
}

.tgf-motion .tgf-hero.is-in .tgf-mask__inner {
	transform: none;
	filter: none;
}

/* Licht geht an: die Verlaufsebene startet fast schwarz und gibt das Foto langsam frei */
.tgf-motion .tgf-hero::after {
	animation: tgf-lights 2.6s ease-out both;
}

@keyframes tgf-lights {
	from {
		background-color: rgba(14, 10, 36, 0.92);
	}
	to {
		background-color: rgba(14, 10, 36, 0);
	}
}

.tgf-motion .tgf-hero .tgf-lead,
.tgf-motion .tgf-hero .tgf-hero__actions {
	opacity: 0;
	transform: translateY(24px);
	filter: blur(6px);
	transition: opacity 1.2s var(--tgf-ease), transform 1.4s var(--tgf-ease), filter 1.2s var(--tgf-ease);
}

.tgf-motion .tgf-hero .tgf-lead {
	transition-delay: 0.55s;
}

.tgf-motion .tgf-hero .tgf-hero__actions {
	transition-delay: 0.75s;
}

.tgf-motion .tgf-hero.is-in .tgf-lead,
.tgf-motion .tgf-hero.is-in .tgf-hero__actions {
	opacity: 1;
	transform: none;
	filter: none;
}

.tgf-motion .tgf-hero .tgf-hero__logo {
	opacity: 0;
	transform: scale(0.9);
	filter: blur(10px);
	transition: opacity 1.6s var(--tgf-ease) 0.35s, transform 2s var(--tgf-ease) 0.35s, filter 1.6s var(--tgf-ease) 0.35s;
}

.tgf-motion .tgf-hero.is-in .tgf-hero__logo {
	opacity: 1;
	transform: none;
	filter: none;
}

.tgf-motion .elementor-location-header {
	animation: tgf-header-in 1.4s var(--tgf-ease) 0.1s both;
}

@keyframes tgf-header-in {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
}

/* Inhalte beim Scrollen: gleiten mit leichter Unschärfe herein */
.tgf-motion [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	filter: blur(8px);
	transition: opacity 1.2s var(--tgf-ease), transform 1.4s var(--tgf-ease), filter 1.2s var(--tgf-ease);
	transition-delay: var(--d, 0s);
}

.tgf-motion [data-reveal].is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

/* Bilder öffnen sich und setzen sich */
.tgf-motion [data-reveal="image"] {
	opacity: 1;
	transform: none;
	filter: none;
	overflow-x: clip; /* die Vergrößerung beim Öffnen darf nicht seitlich überstehen */
}

.tgf-motion [data-reveal="image"] img {
	clip-path: inset(14% 10% 14% 10% round 6px);
	transform: scale(1.14);
	opacity: 0;
	transition: clip-path 1.8s var(--tgf-ease), transform 2.2s var(--tgf-ease), opacity 1s ease;
	transition-delay: var(--d, 0s);
}

.tgf-motion [data-reveal="image"].is-in img {
	clip-path: inset(0 0 0 0 round 6px);
	transform: none;
	opacity: 1;
}

.tgf-motion [data-reveal="image"] figcaption {
	opacity: 0;
	transition: opacity 1s ease 0.8s;
}

.tgf-motion [data-reveal="image"].is-in figcaption {
	opacity: 1;
}

/* Listen: Einträge nacheinander */
.tgf-motion [data-reveal="list"] {
	opacity: 1;
	transform: none;
	filter: none;
}

.tgf-motion [data-reveal="list"] li {
	opacity: 0;
	transform: translateY(16px);
	filter: blur(4px);
	transition: opacity 1s var(--tgf-ease), transform 1.2s var(--tgf-ease), filter 1s var(--tgf-ease);
	transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.1s + 0.15s);
}

.tgf-motion [data-reveal="list"].is-in li {
	opacity: 1;
	transform: none;
	filter: none;
}


/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	:root {
		--tgf-header-h: 72px;
	}
}

@media (max-width: 767px) {
	:root {
		--tgf-header-h: 64px;
	}

	body.tgf-site .tgf-hero.e-con {
		--min-height: 92svh;
	}

	.tgf-hero::after {
		background:
			linear-gradient(180deg, rgba(14, 10, 36, 0.7) 0%, rgba(14, 10, 36, 0.35) 40%, rgba(14, 10, 36, 0.75) 70%, var(--tgf-night) 100%);
	}

	.tgf-brand__logo img,
	.is-scrolled .tgf-brand__logo img {
		width: 40px;
		height: 40px;
	}

	.tgf-site .tgf-brand__name .elementor-heading-title {
		font-size: 1.3rem;
	}

	.tgf-lead p {
		font-size: 1.125rem;
	}

	.tgf-hero__logo img {
		max-width: 190px;
		margin-inline: 0;
	}

	/* Handy: Hochformat-Ausschnitt, das Banner „THE GERMAN FLOCK“ bleibt vollständig im Bild */
	.tgf-site .tgf-crowd__stage {
		height: min(66svh, 560px);
	}

	.tgf-crowd__img img {
		object-position: 57% 62%;
	}

	.tgf-site .tgf-crowd__stage > .tgf-crowd__title {
		top: 9%;
	}

	.tgf-site .tgf-crowd__stage > .tgf-crowd__caption {
		left: 16px;
		bottom: 8%;
	}

	.tgf-motion [data-reveal] {
		transform: translate3d(0, 24px, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgf-site *,
	.tgf-site *::before,
	.tgf-site *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
