/* Loginseite GOLNIK WebGIS (Entwurf 3) – Bausteine und Tokens aus der Website www.golnik.de (golnik.css):
   Kopf, Hero, Knöpfe, dunkle Fußleiste; im Hero ein Drohnenflug als Hintergrund. Eine Bildschirmseite ohne Scrollen.
   Alle Regeln hängen an .gl-…/.gl-body, weil main.css von kvwmap globale Element-Stile setzt. */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("poppins-v24-latin-500.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("poppins-v24-latin-600.woff2") format("woff2");
}

:root {
	--gl-rot: #d81330;
	--gl-rot-dunkel: #b0102a;
	--gl-rot-hell: #fcecee;
	--gl-anthrazit: #2e343b;
	--gl-text: #3b4148;
	--gl-text-leise: #59616a;
	--gl-text-inaktiv: #9aa1a9;
	--gl-linie: #e2e4e7;
	--gl-flaeche: #f5f5f3;
	--gl-fuss-text: #d0d4d9;
	--gl-fokus: 0 0 0 3px rgba(216, 19, 48, 0.35);
	--gl-radius: 12px;
	--gl-radius-klein: 8px;
	--gl-schatten: 0 1px 2px rgba(21, 24, 28, 0.05), 0 10px 30px rgba(21, 24, 28, 0.07);
	--gl-schatten-hoch: 0 2px 4px rgba(21, 24, 28, 0.06), 0 18px 40px rgba(21, 24, 28, 0.12);
	--gl-uebergang: 180ms ease;
	--gl-breite: 1240px;
	--gl-rand: clamp(1rem, 0.5rem + 2.5vw, 2rem);
	--gl-kopf-hoehe: 88px;
	--gl-schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gl-schrift-titel: "Poppins", system-ui, sans-serif;
}

body.gl-body {
	margin: 0;
	background: #fff;
	color: var(--gl-text);
	font-family: var(--gl-schrift-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.gl-body > main {
	flex: 1;
	display: flex;
}

.gl-body *, .gl-body *::before, .gl-body *::after {
	box-sizing: border-box;
}

.gl-body h1, .gl-body h2, .gl-body h3 {
	font-family: var(--gl-schrift-titel);
	font-weight: 600;
	color: var(--gl-anthrazit);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
	padding: 0;
	text-wrap: balance;
}

.gl-body p {
	margin: 0 0 1em;
}

.gl-dachzeile {
	margin: 0 0 1rem !important;
	font-family: var(--gl-schrift-titel);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gl-rot-dunkel);
}

/* Produktlogo über dem Titel im Hero (wie .held__marke der Website) */
.gl-held-marke {
	margin: 0 0 1.25rem !important;
}

.gl-body .gl-held-marke img {
	display: block;
	width: auto;
	height: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
	max-width: 100%;
}

/* ---------- Knöpfe (wie .knopf der Website) ---------- */

.gl-body .gl-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	margin: 0;
	padding: 0.7rem 1.35rem;
	border: 1.5px solid transparent;
	border-radius: var(--gl-radius-klein);
	font-family: var(--gl-schrift-titel);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gl-uebergang), color var(--gl-uebergang), border-color var(--gl-uebergang);
}

.gl-body .gl-knopf .fa-arrow-right {
	transition: transform var(--gl-uebergang);
}

.gl-body .gl-knopf:hover .fa-arrow-right {
	transform: translateX(3px);
}

.gl-body .gl-knopf:focus-visible {
	outline: none;
	box-shadow: var(--gl-fokus);
}

.gl-body .gl-knopf-primaer {
	background: var(--gl-rot);
	color: #fff;
}

.gl-body .gl-knopf-primaer:hover {
	background: var(--gl-rot-dunkel);
	color: #fff;
}

.gl-body .gl-knopf-zweit {
	background: transparent;
	color: var(--gl-anthrazit);
	border-color: var(--gl-anthrazit);
}

.gl-body .gl-knopf-zweit:hover {
	background: var(--gl-anthrazit);
	color: #fff;
}

.gl-body .gl-knopf-breit {
	display: flex;
	width: 100%;
	font-weight: 600;
}

.gl-body a.gl-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--gl-schrift-titel);
	font-weight: 500;
	font-size: 15px;
	color: var(--gl-anthrazit);
	text-decoration: none;
}

.gl-body a.gl-textlink:hover {
	color: var(--gl-rot-dunkel);
}

.gl-body a.gl-textlink .fa {
	font-size: 12px;
	color: var(--gl-rot);
}

/* ---------- Kopf ---------- */

.gl-kopf {
	position: relative;
	z-index: 2;
	background: #fff;
	border-bottom: 1px solid var(--gl-linie);
}

.gl-kopf-innen {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: var(--gl-breite);
	min-height: var(--gl-kopf-hoehe);
	margin-inline: auto;
	padding-inline: var(--gl-rand);
}

.gl-body a.gl-kopf-logo {
	display: block;
	margin-right: auto;
}

.gl-body .gl-kopf-logo img {
	display: block;
	width: clamp(200px, 22vw, 280px);
	height: auto;
}

.gl-body a.gl-kopf-kontakt {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--gl-schrift-titel);
	font-weight: 500;
	font-size: 15px;
	white-space: nowrap;
	color: var(--gl-anthrazit);
	text-decoration: none;
	transition: color var(--gl-uebergang);
}

.gl-body a.gl-kopf-kontakt:hover {
	color: var(--gl-rot-dunkel);
}

.gl-kopf-kontakt .gl-icon {
	color: var(--gl-rot);
}

/* ---------- Hero mit Drohnenflug im Hintergrund ---------- */

.gl-held {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex: 1;
	padding-block: clamp(2rem, 1rem + 3vw, 4rem);
	background: var(--gl-flaeche);
}

.gl-held-innen {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	width: 100%;
	max-width: var(--gl-breite);
	margin-inline: auto;
	padding-inline: var(--gl-rand);
}

.gl-held-text > * {
	animation: gl-auftauchen 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.gl-held-text > :nth-child(2) { animation-delay: 80ms; }
.gl-held-text > :nth-child(3) { animation-delay: 160ms; }
.gl-held-text > :nth-child(4) { animation-delay: 240ms; }

.gl-body h2.gl-held-titel {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 1.25rem;
}

.gl-held-lead {
	max-width: 40ch;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.55;
	color: var(--gl-text-leise);
}

.gl-held-knoepfe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 2rem;
}

.gl-held-film {
	position: absolute;
	inset: 0;
}

.gl-held-film-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

/* Heller Schleier von links: Text bleibt lesbar, rechts hinter der Karte sieht man den Film */
.gl-held-film-schleier {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgba(245, 245, 243, 0.97) 0%,
		rgba(245, 245, 243, 0.9) 32%,
		rgba(245, 245, 243, 0.35) 60%,
		rgba(245, 245, 243, 0.05) 100%);
	pointer-events: none;
}

.gl-held-film-steuerung {
	position: absolute;
	z-index: 2;
	right: var(--gl-rand);
	bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gl-body button.gl-held-film-knopf {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--gl-linie);
	border-radius: 50%;
	background: #fff;
	color: var(--gl-text-leise);
	cursor: pointer;
	transition: color var(--gl-uebergang), border-color var(--gl-uebergang);
}

.gl-body button.gl-held-film-knopf:hover {
	border-color: var(--gl-anthrazit);
	color: var(--gl-anthrazit);
}

.gl-body button.gl-held-film-knopf:focus-visible {
	outline: none;
	box-shadow: var(--gl-fokus);
}

@media (max-width: 960px) {
	.gl-held-film-schleier {
		background: rgba(245, 245, 243, 0.82);
	}

	.gl-held-film-steuerung {
		bottom: 0.5rem;
	}
}

/* ---------- Anmeldekarte ---------- */

.gl-karte {
	padding: 36px 32px 28px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(21, 24, 28, 0.08), 0 24px 60px rgba(21, 24, 28, 0.28);
	animation: gl-auftauchen 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 120ms backwards;
}

.gl-body h1.gl-titel {
	margin: 0 0 20px;
	font-size: 24px;
}

.gl-hinweis {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 12px 14px;
	border-left: 3px solid var(--gl-rot);
	border-radius: var(--gl-radius-klein);
	background: var(--gl-rot-hell);
	color: var(--gl-text);
	font-size: 14px;
	line-height: 1.45;
	animation: gl-schuetteln 0.4s ease 1;
}

.gl-hinweis .fa {
	margin-top: 2px;
	font-size: 17px;
	color: var(--gl-rot);
}

.gl-hinweis strong {
	display: block;
	color: var(--gl-rot-dunkel);
}

.gl-body .gl-hinweis a {
	color: var(--gl-rot-dunkel);
	font-size: inherit;
	text-decoration: underline;
}

.gl-feld {
	margin: 0 0 16px;
}

.gl-body label.gl-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gl-anthrazit);
}

.gl-body input.gl-eingabe {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cfd3d8;
	border-radius: var(--gl-radius-klein);
	background: #fff;
	color: var(--gl-anthrazit);
	font-family: var(--gl-schrift-text);
	font-size: 16px;
	line-height: normal;
	transition: border-color var(--gl-uebergang), box-shadow var(--gl-uebergang);
}

.gl-body input.gl-eingabe:hover {
	border-color: #aab0b7;
}

.gl-body input.gl-eingabe:focus {
	outline: none;
	border-color: var(--gl-rot);
	box-shadow: var(--gl-fokus);
}

.gl-body input.gl-eingabe:disabled {
	background: var(--gl-flaeche);
	color: var(--gl-text-leise);
}

.gl-passwort {
	position: relative;
}

.gl-passwort input.gl-eingabe {
	padding-right: 48px;
}

.gl-body button.gl-auge {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gl-text-leise);
	font-size: 17px;
	cursor: pointer;
	border-radius: var(--gl-radius-klein);
}

.gl-body button.gl-auge:hover {
	color: var(--gl-anthrazit);
}

.gl-body button.gl-auge:focus-visible {
	outline: none;
	box-shadow: var(--gl-fokus);
}

.gl-sperre {
	margin: 0 0 16px !important;
	font-size: 14px;
	color: var(--gl-text-leise);
}

.gl-sperre strong {
	color: var(--gl-rot-dunkel);
	font-variant-numeric: tabular-nums;
}

.gl-karte form .gl-knopf-breit {
	margin-top: 8px;
}

.gl-hilfe {
	margin: 20px 0 0 !important;
	font-size: 13px;
	color: var(--gl-text-inaktiv);
}

.gl-body .gl-hilfe a {
	color: var(--gl-text-leise);
	font-size: inherit;
}

.gl-body .gl-hilfe a:hover {
	color: var(--gl-rot-dunkel);
	text-decoration: underline;
}

/* ---------- Icons (Sprite wie auf der Website) ---------- */

.gl-icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.gl-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.25em;
}

.gl-unsichtbar {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Fußleiste (wie .fuss / .fuss__leiste der Website) ---------- */

.gl-fuss {
	position: relative;
	overflow: hidden;
	background: var(--gl-anthrazit);
	color: var(--gl-fuss-text);
	font-size: 15px;
}

.gl-body .gl-fuss a {
	color: #fff;
	font-size: inherit;
	text-decoration: none;
}

.gl-body .gl-fuss a:hover {
	color: #fff;
	text-decoration: underline;
}

.gl-fuss-leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
	max-width: var(--gl-breite);
	margin-inline: auto;
	padding: 0.75rem var(--gl-rand);
	font-size: 14px;
}

.gl-fuss-leiste p {
	margin: 0 auto 0 0 !important;
}

.gl-body ul.gl-fuss-rechtliches,
.gl-body ul.gl-fuss-profile {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: inherit;
}

.gl-body ul.gl-fuss-profile {
	gap: 0.25rem;
}

.gl-body a.gl-fuss-profil {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background-color var(--gl-uebergang);
}

.gl-body a.gl-fuss-profil:hover {
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

.gl-fuss-profil .gl-icon {
	width: 1.4rem;
	height: 1.4rem;
}

@keyframes gl-auftauchen {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes gl-schuetteln {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

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

/* ---------- kvwmap-Meldungsfenster (Rückfall für Meldungen, die der Kern selbst ausgibt) ---------- */

.gl-body #message_box {
	top: 24px;
	left: 50%;
	width: min(440px, calc(100vw - 32px));
	min-width: 0;
	margin: 0;
	padding: 18px 20px;
	transform: translateX(-50%);
	border: 1px solid var(--gl-linie);
	border-radius: var(--gl-radius);
	background: #fff;
	box-shadow: var(--gl-schatten-hoch);
	font-family: var(--gl-schrift-text);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	color: var(--gl-text);
}

.gl-body #message_box .message-box {
	display: flex;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--gl-radius-klein);
	background: var(--gl-flaeche);
}

.gl-body #message_box .message-box-error {
	background: var(--gl-rot-hell);
	border-left: 3px solid var(--gl-rot);
}

.gl-body #message_box .message-box-type,
.gl-body #message_box .message-box-msg {
	float: none;
	width: auto;
	margin: 0;
}

.gl-body #message_box .message-box-type .fa {
	color: var(--gl-rot) !important;
}

.gl-body #message_box input[type="button"] {
	display: block;
	height: 40px;
	margin: 14px 0 0 auto !important;
	padding: 0 18px;
	border: 0;
	border-radius: var(--gl-radius-klein);
	background: var(--gl-anthrazit);
	color: #fff;
	font-family: var(--gl-schrift-titel);
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.gl-body #message_box input[type="button"]:hover {
	background: #1e2227;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 960px) {
	:root {
		--gl-kopf-hoehe: 72px;
	}

	.gl-held {
		padding-block: 1.5rem 2.5rem;
	}

	/* Anmeldung zuerst, Produkttext darunter */
	.gl-held-innen {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
		max-width: 520px;
	}

	.gl-karte {
		order: -1;
		padding: 28px 20px 22px;
	}
}

/* Im schmalen Kopf nur die Symbole, die Texte bleiben für Screenreader */
@media (max-width: 760px) {
	.gl-body a.gl-kopf-kontakt {
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--gl-linie);
		border-radius: var(--gl-radius-klein);
	}

	.gl-kopf-innen {
		gap: 0.5rem;
	}

	.gl-kopf-kontakt span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (max-width: 520px) {

	.gl-body .gl-kopf-logo img {
		width: 190px;
	}

}
