/* Newsletter Layer – Südwolle */

/* ----- Shared trigger ----- */
.swg-newsletter {
	display: inline-flex;
	align-items: center;
}

.swg-newsletter__trigger {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 180ms ease, opacity 180ms ease;
}

.swg-newsletter__icon {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	fill: currentColor;
}

/* =========================================================
   Normal header – meta navigation (desktop / mobile)
   Mirrors .navigation.meta.desktop / .navigation.meta.mobile
   ========================================================= */

.meta-newsletter-row--desktop {
	display: block;
	position: relative;
	margin: 0 0 3.2rem;
}

.swg-newsletter--meta-desktop {
	display: inline-flex;
	margin: 0;
}

.swg-newsletter--meta-desktop .swg-newsletter__trigger {
	font-size: 1.4rem;
	line-height: 1.2;
	color: #000;
	opacity: 0.3;
}

.with-hover .swg-newsletter--meta-desktop .swg-newsletter__trigger:hover,
.swg-newsletter--meta-desktop .swg-newsletter__trigger:focus-visible {
	opacity: 0.6;
	outline: none;
}

/* Desktop placement under social icons is handled by JS — keep out of normal flow */
body:not(.use-mobile-navigation) .swg-newsletter--meta-desktop {
	position: absolute;
	visibility: hidden; /* shown after JS positions it */
	pointer-events: none;
	z-index: 2;
}

.meta-newsletter-row--mobile {
	display: none;
	width: 100%;
	background: #f49a18;
}

.swg-newsletter--meta-mobile {
	display: flex;
	width: 100%;
	justify-content: center;
	margin: 0;
	padding: 0 3rem 3rem;
	box-sizing: border-box;
}

.swg-newsletter--meta-mobile .swg-newsletter__trigger {
	font-size: 2.8rem;
	line-height: 3.4rem;
	color: #fff;
	opacity: 1;
	justify-content: center;
}

.with-hover .swg-newsletter--meta-mobile .swg-newsletter__trigger:hover,
.swg-newsletter--meta-mobile .swg-newsletter__trigger:focus-visible {
	opacity: 0.85;
	outline: none;
}

.use-mobile-navigation .meta-newsletter-row--desktop {
	display: none;
}

.use-mobile-navigation .meta-newsletter-row--mobile {
	display: block;
}

/* =========================================================
   Redesign header – icons top-right, newsletter centered under them
   ========================================================= */

@media (min-width: 901px) {
	.site-header .social-nav {
		position: absolute !important;
		top: 28px;
		right: 24px;
		left: auto !important;
		bottom: auto !important;
		z-index: 2;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		width: max-content !important;
		max-width: calc(50% - 160px);
		margin: 0 !important;
		gap: 5px !important;
		justify-self: auto;
	}
}

.site-header .social-nav__icons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 34px;
	order: 1;
	width: 100%;
}

.site-header .swg-newsletter--redesign {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	order: 2;
	display: flex !important;
	justify-content: center;
	width: 100%;
}

.site-header .swg-newsletter--redesign .swg-newsletter__trigger {
	color: #9a9a9a;
	justify-content: center;
}

.site-header .swg-newsletter--redesign .swg-newsletter__trigger:hover,
.site-header .swg-newsletter--redesign .swg-newsletter__trigger:focus-visible {
	color: #f49a18;
	outline: none;
}

/* =========================================================
   Overlay / dialog (shared)
   ========================================================= */

.swg-newsletter__layer {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.swg-newsletter__layer[hidden] {
	display: none !important;
}

.swg-newsletter__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.swg-newsletter__dialog {
	--swg-newsletter-iframe-height: 220px;

	position: relative;
	z-index: 1;
	width: min(480px, 100%);
	height: auto;
	max-height: calc(100vh - 48px);
	padding: 28px 24px 24px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;

    border-radius:8px;
}

.swg-newsletter__close {
	position: absolute;
	top: 6px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #545554;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 180ms ease, background 180ms ease;
}

.swg-newsletter__close:hover,
.swg-newsletter__close:focus-visible {
	color: #f49a18;
	background: rgba(244, 154, 24, 0.1);
	outline: none;
}

.swg-newsletter__frame-wrap {
	position: relative;
	width: 100%;
	height: var(--swg-newsletter-iframe-height);
	flex: 0 0 var(--swg-newsletter-iframe-height);
	overflow: hidden;
	background: #fff;
}

.swg-newsletter__iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

html.swg-newsletter-open,
html.swg-newsletter-open body {
	overflow: hidden;
}

/* =========================================================
   Redesign mobile
   ========================================================= */

@media (max-width: 900px) {
	.site-header .social-nav {
		position: static !important;
		top: auto !important;
		right: auto !important;
		width: auto !important;
		max-width: none !important;
		justify-self: auto;
		margin-left: auto;
		margin-right: auto;
		gap: 12px !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
	}

	.site-header .social-nav__icons {
		gap: 18px;
	}

    .site-header .swg-newsletter.swg-newsletter--redesign svg{
        margin-left:4px!important;
    }

	/* Moved into .main-nav-inner via JS while menu is open */
	.site-header .social-nav.social-nav--in-menu {
		position: static !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		top: auto !important;
		z-index: auto !important;
		width: 100% !important;
		max-width: none !important;
		margin: 28px 0 0;
		padding: 24px 16px 8px;
		box-sizing: border-box;
		align-items: center !important;
		justify-self: stretch;
	}

	.swg-newsletter__dialog {
		--swg-newsletter-iframe-height: 220px;
		padding: 32px 20px 20px;
		max-height: calc(100vh - 32px);
	}

	.swg-newsletter__layer {
		padding: 16px;
	}
}
