/* =========================================================================
   GRAND THEFT PLANET – OVERLAYS

   Newsletter-Fenster und Cookie-Banner. Beide nutzen ausschließlich
   bestehende Bauteile: Signal-Punkt, Eyebrow-Pille, Pricedown-Überschrift,
   Ziel-Klammern.

   1. Newsletter-Fenster
   2. Cookie-Banner
   3. Responsive + Bewegungsreduzierung
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. NEWSLETTER-FENSTER
   ---------------------------------------------------------------------- */

.gtp-news {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gtp-news.is-open {
	opacity: 1;
	visibility: visible;
}

.gtp-news__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 6, 0.82);
	cursor: pointer;
}

.gtp-news__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 40px 36px 32px;
	box-sizing: border-box;
	text-align: center;
	background:
		radial-gradient(120% 90% at 15% 100%, rgba(148, 190, 114, 0.1) 0%, rgba(148, 190, 114, 0) 55%),
		radial-gradient(120% 90% at 100% 0%, rgba(22, 132, 221, 0.16) 0%, rgba(22, 132, 221, 0) 55%),
		#0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gtp-news.is-open .gtp-news__panel {
	transform: translateY(0) scale(1);
}

/* Ziel-Klammern wie auf der Produktseite */
.gtp-news__panel::before,
.gtp-news__panel::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 24px;
	border-color: var(--gtp-blue, #1684dd);
	border-style: solid;
	pointer-events: none;
}

.gtp-news__panel::before {
	top: -1px;
	left: -1px;
	border-width: 2px 0 0 2px;
}

.gtp-news__panel::after {
	right: -1px;
	bottom: -1px;
	border-width: 0 2px 2px 0;
}

.gtp-news__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: none !important;
	border-radius: 4px !important;
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 !important;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gtp-news__close:hover,
.gtp-news__close:focus-visible {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.07) !important;
}

.gtp-news__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	padding: 6px 16px;
	background: rgba(148, 190, 114, 0.14) !important;
	border: 1px solid rgba(148, 190, 114, 0.55) !important;
	border-radius: 999px;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gtp-green-light, #eaf2e3) !important;
}

.gtp-news__signal {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gtp-green, #94be72) !important;
	box-shadow: 0 0 7px rgba(148, 190, 114, 0.9);
	flex-shrink: 0;
}

.gtp-news__title {
	font-family: 'Pricedown', 'Anton', sans-serif;
	font-size: clamp(1.7rem, 5vw, 2.4rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}

.gtp-news__text {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.92rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72) !important;
	margin: 0 0 26px !important;
}

.gtp-news__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.gtp-news__input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 4px !important;
	padding: 14px 16px !important;
	color: #ffffff !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.95rem;
	text-align: center;
	transition: border-color 0.2s ease;
}

.gtp-news__input::placeholder {
	color: rgba(255, 255, 255, 0.58) !important;
}

.gtp-news__input:focus {
	border-color: var(--gtp-blue, #1684dd) !important;
	outline: none;
}

.gtp-news__input.has-error {
	border-color: var(--gtp-green, #94be72) !important;
}

.gtp-news__submit {
	width: 100%;
	padding: 15px 20px !important;
	background: var(--gtp-blue-solid, #1479ca) !important;
	border: 2px solid var(--gtp-blue-solid, #1479ca) !important;
	border-radius: 0 !important;
	color: #ffffff !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.gtp-news__submit:hover,
.gtp-news__submit:focus-visible {
	background: var(--gtp-blue-dark, #0e5690) !important;
	border-color: var(--gtp-blue-dark, #0e5690) !important;
}

.gtp-news__submit.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.gtp-news__msg {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.82rem;
	line-height: 1.6;
	margin: 0 0 4px !important;
	min-height: 1.3em;
	color: rgba(255, 255, 255, 0.72) !important;
}

.gtp-news__msg.is-success {
	color: var(--gtp-green, #94be72) !important;
}

/* ---------- Gutscheincode nach erfolgreicher Anmeldung ---------- */

.gtp-news__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 16px;
	background: rgba(148, 190, 114, 0.1);
	border: 1px dashed rgba(148, 190, 114, 0.55);
	border-radius: 4px;
	text-align: left;
}

.gtp-news__code[hidden] {
	display: none;
}

.gtp-news__code-label {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58) !important;
	display: block;
}

.gtp-news__code-value {
	flex: 1;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: #ffffff !important;
	font-variant-numeric: tabular-nums;
}

.gtp-news__code-copy {
	padding: 8px 14px !important;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 3px !important;
	color: #ffffff !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gtp-news__code-copy:hover,
.gtp-news__code-copy:focus-visible {
	border-color: var(--gtp-green, #94be72) !important;
	background: rgba(148, 190, 114, 0.14) !important;
}

.gtp-news__small {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.58) !important;
	margin: 18px 0 0 !important;
}

/* -------------------------------------------------------------------------
   2. COOKIE-BANNER
   Bewusst als Leiste unten, nicht als Vollbild-Fenster: der Shop bleibt
   sichtbar und bedienbar, das Banner drängt sich nicht auf.
   ---------------------------------------------------------------------- */

.gtp-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 280;
	padding: 16px;
	box-sizing: border-box;
	transform: translateY(110%);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gtp-cookie[hidden] {
	display: none;
}

.gtp-cookie.is-open {
	transform: translateY(0);
}

.gtp-cookie__panel {
	max-width: 1320px;
	margin: 0 auto;
	padding: 20px 24px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 28px;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 2px solid var(--gtp-blue, #1684dd);
	border-radius: 4px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.gtp-cookie__body {
	flex: 1;
	min-width: 0;
}

.gtp-cookie__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gtp-blue-light, #d0e6f8) !important;
}

.gtp-cookie__signal {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gtp-green, #94be72) !important;
	box-shadow: 0 0 6px rgba(148, 190, 114, 0.8);
	flex-shrink: 0;
}

.gtp-cookie__text {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.85rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72) !important;
	margin: 0 !important;
}

.gtp-cookie__link {
	color: var(--gtp-blue-light, #d0e6f8) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-left: 6px;
}

.gtp-cookie__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.gtp-cookie__btn {
	padding: 13px 24px !important;
	border-radius: 0 !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Beide Buttons gleich prominent – "Ablehnen" darf rechtlich nicht
   schwerer erreichbar sein als "Akzeptieren". */
.gtp-cookie__btn--ghost {
	background: transparent !important;
	border: 2px solid rgba(255, 255, 255, 0.8) !important;
	color: #ffffff !important;
}

.gtp-cookie__btn--ghost:hover,
.gtp-cookie__btn--ghost:focus-visible {
	border-color: #ffffff !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

.gtp-cookie__btn--solid {
	background: var(--gtp-blue-solid, #1479ca) !important;
	border: 2px solid var(--gtp-blue-solid, #1479ca) !important;
	color: #ffffff !important;
}

.gtp-cookie__btn--solid:hover,
.gtp-cookie__btn--solid:focus-visible {
	background: var(--gtp-blue-dark, #0e5690) !important;
	border-color: var(--gtp-blue-dark, #0e5690) !important;
}

.gtp-cookie__reopen {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

/* -------------------------------------------------------------------------
   3. RESPONSIVE + BEWEGUNGSREDUZIERUNG
   ---------------------------------------------------------------------- */

@media (max-width: 780px) {
	.gtp-cookie__panel {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 20px;
	}
	.gtp-cookie__actions {
		flex-direction: column-reverse;
	}
	.gtp-cookie__btn {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.gtp-news {
		padding: 16px;
	}
	.gtp-news__panel {
		padding: 34px 22px 26px;
	}
	.gtp-news__code {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.gtp-news__code-copy {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtp-news,
	.gtp-news__panel,
	.gtp-cookie,
	.gtp-news__close,
	.gtp-news__submit,
	.gtp-news__input,
	.gtp-news__code-copy,
	.gtp-cookie__btn {
		transition: none !important;
	}
	.gtp-news__panel {
		transform: none;
	}
}
