
/* NOIO 0.9.2 – unified subpages
   Goal: all subpages share the visual language of the approved homepage. */

:root {
	--noio-stage: 1536px;
	--noio-line: #17384b;
	--noio-bg-deep: #030a11;
	--noio-bg-stage: #06111a;
	--noio-card: #0d1a25;
	--noio-cyan: #24e5ff;
	--noio-magenta: #ff3daa;
	--noio-yellow: #ffd34e;
}

/* Same slim editorial strip as homepage. */
.noio-sub-topline {
	background: #092034;
	color: #dce8ef;
	font-size: .72rem;
	letter-spacing: .22em;
}

.noio-sub-topline-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100% - 30px, 1506px);
	min-height: 42px;
	margin: 0 auto;
}

/* Exact same sticky navigation stage as homepage. */
.noio-sub-nav-desktop {
	position: sticky !important;
	top: 0 !important;
	z-index: 1100 !important;
	background: rgba(3,14,23,.985);
	border-bottom: 1px solid var(--noio-line);
	box-shadow: 0 9px 28px rgba(0,0,0,.18);
}

.admin-bar .noio-sub-nav-desktop {
	top: 32px !important;
}

.noio-sub-nav-stage {
	position: relative;
	width: 100%;
	max-width: var(--noio-stage);
	margin: 0 auto;
	aspect-ratio: 1536 / 88;
	overflow: hidden;
	border-left: 1px solid var(--noio-line);
	border-right: 1px solid var(--noio-line);
	box-sizing: border-box;
}

.noio-sub-nav-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.noio-sub-nav-hotspots {
	position: absolute;
	inset: 0;
	z-index: 4;
}

.noio-sub-nav-hotspots .sub2-hs {
	position: absolute;
	top: 0;
	height: 100%;
	display: block;
	opacity: 0;
	border-radius: 8px;
}

.noio-sub-nav-hotspots .sub2-hs:focus-visible {
	opacity: 1;
	background: rgba(36,229,255,.08);
	box-shadow: inset 0 0 0 2px var(--noio-cyan);
}

.sub2-brand   { left: 2.2%; width: 27.7%; }
.sub2-region  { left: 32.2%; width: 6.8%; }
.sub2-article { left: 39.1%; width: 7.4%; }
.sub2-poll    { left: 46.5%; width: 9%; }
.sub2-events  { left: 55.5%; width: 7.7%; }
.sub2-gaming  { left: 63.2%; width: 7.9%; }
.sub2-culture { left: 71.1%; width: 10%; }
.sub2-opinion { left: 81.1%; width: 9.4%; }
.sub2-search  { left: 90.6%; width: 4.2%; }

.noio-sub-nav-mobile {
	display: none;
}

/* One continuous NOIO stage, matching homepage rails. */
.noio-subpage-frame {
	box-sizing: border-box;
	width: 100% !important;
	max-width: var(--noio-stage) !important;
	margin: 0 auto !important;
	border-left: 1px solid var(--noio-line);
	border-right: 1px solid var(--noio-line);
	background:
		linear-gradient(180deg, #07131d 0%, #050f18 100%);
}

/* Compact subpage hero: scenic, elegant, never oversized. */
.noio-subhero2 {
	position: relative;
	margin: 0 !important;
	min-height: 230px !important;
	border-bottom: 1px solid var(--noio-line);
	overflow: hidden;
}

.noio-subhero2::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg,
			rgba(3,10,17,.88) 0%,
			rgba(3,10,17,.70) 38%,
			rgba(3,10,17,.28) 68%,
			rgba(3,10,17,.18) 100%
		),
		linear-gradient(0deg, rgba(4,12,19,.34), transparent 55%);
}

.noio-subhero2 .wp-block-cover__image-background {
	object-position: center right !important;
	filter: saturate(1.08) contrast(1.04);
}

.noio-subhero2 .wp-block-cover__inner-container {
	position: relative;
	z-index: 3;
	width: 100%;
}

.noio-subhero2-inner {
	box-sizing: border-box;
	width: min(100% - 48px, 1280px) !important;
	max-width: 1280px !important;
	margin: 0 auto !important;
	padding: 42px 0 !important;
	text-align: left;
}

/* Smaller and calmer than the current "Kategorie: Region". */
.noio-subtitle2,
.noio-subtitle2.wp-block-post-title,
.noio-subtitle2.wp-block-query-title {
	max-width: 920px;
	margin: 8px 0 0 !important;
	color: #fff;
	font-size: clamp(2.15rem, 4vw, 3.65rem) !important;
	line-height: 1.02 !important;
	font-weight: 780 !important;
	letter-spacing: -.025em !important;
	text-shadow: 0 4px 22px rgba(0,0,0,.30);
}

.noio-single-title2 {
	font-size: clamp(2rem, 3.7vw, 3.35rem) !important;
}

.noio-subclaim2,
.noio-subdesc2,
.noio-single-date2 {
	max-width: 760px;
	margin: 12px 0 0 !important;
	color: #cbd7de !important;
	font-size: .98rem !important;
	line-height: 1.55;
}

.noio-subdesc2:empty {
	display: none;
}

/* Main content continues inside exactly the same frame. */
.noio-subcontent2,
.noio-archive2 {
	box-sizing: border-box;
	width: min(100% - 48px, 1180px) !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
	padding: clamp(3rem, 5vw, 5.2rem) 0 clamp(4.5rem, 7vw, 7rem) !important;
}

.noio-subcontent2 {
	color: #d7e1e8;
	font-size: 1.02rem;
	line-height: 1.72;
}

.noio-subcontent2 h2,
.noio-subcontent2 h3,
.noio-subcontent2 h4 {
	color: #fff;
	letter-spacing: -.015em;
}

.noio-subcontent2 a,
.noio-archive2 a {
	color: var(--noio-cyan);
}

.noio-subcontent2 a:hover,
.noio-archive2 a:hover {
	color: var(--noio-magenta);
}

/* Forms now look like NOIO cards instead of foreign widgets. */
.noio-subcontent2 .wpforms-container {
	margin: 1.8rem 0 0;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid #20384a;
	border-radius: 13px;
	background: var(--noio-card);
	box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.noio-subcontent2 .wpforms-container input,
.noio-subcontent2 .wpforms-container textarea,
.noio-subcontent2 .wpforms-container select {
	background: #07131d !important;
	color: #f3f7fa !important;
	border: 1px solid #35536a !important;
}

.noio-subcontent2 .wpforms-container button {
	background: var(--noio-cyan) !important;
	color: #031018 !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-weight: 800 !important;
}

/* Archive cards */
.noio-archive2 .wp-block-post-template {
	gap: 18px;
}

.noio-archive2 .noio-news-card {
	height: 100%;
	border: 1px solid #20384a;
	border-radius: 12px;
	background: var(--noio-card);
	overflow: hidden;
}

.noio-archive2 .wp-block-query-pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #20384a;
}

/* Empty archive no longer wastes a giant empty field. */
.noio-empty2 {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid #20384a;
	border-radius: 13px;
	background: var(--noio-card);
	text-align: left;
}

.noio-empty2 h2 {
	margin: .55rem 0 .6rem;
	color: #fff;
	font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.noio-empty2 p {
	color: #b8c7d1;
}

/* Single article */
.noio-single-featured2 {
	margin-bottom: 2.2rem !important;
	overflow: hidden;
	border-radius: 14px;
}

.noio-single-featured2 img {
	width: 100%;
	border-radius: 14px;
}

.noio-single-content2 blockquote {
	margin: 2rem 0;
	padding: 1.2rem 1.5rem;
	border-left: 4px solid var(--noio-cyan);
	background: var(--noio-card);
}

/* Search */
.noio-search2 .wp-block-search {
	max-width: 720px;
	margin-bottom: 2.5rem;
}

.noio-search2 .wp-block-search__input {
	background: #07131d;
	color: #fff;
	border: 1px solid #35536a;
}

.noio-search2 .wp-block-search__button {
	background: var(--noio-cyan);
	color: #031018;
}

/* Footer remains the lower end of the same frame. */
.noio-footer {
	box-sizing: border-box;
	width: 100% !important;
	max-width: var(--noio-stage) !important;
	margin: 0 auto !important;
	border-left: 1px solid var(--noio-line);
	border-right: 1px solid var(--noio-line);
	border-bottom: 1px solid var(--noio-line);
}

/* Events: pull The Events Calendar into the same framed visual system. */
body.post-type-archive-tribe_events .tribe-events-view,
body.tribe-events-page-template .tribe-events-view,
body.post-type-archive-tribe_events .tribe-common,
body.tribe-events-page-template .tribe-common {
	box-sizing: border-box;
	max-width: var(--noio-stage) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: var(--noio-bg-stage);
	border-left: 1px solid var(--noio-line);
	border-right: 1px solid var(--noio-line);
}

.tribe-events .tribe-events-l-container,
.tribe-common .tribe-common-l-container {
	max-width: 1180px !important;
	padding-top: clamp(3rem, 5vw, 5rem) !important;
	padding-bottom: clamp(4rem, 6vw, 6rem) !important;
}

.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn {
	background: var(--noio-cyan) !important;
	color: #031018 !important;
	border-radius: 999px !important;
}

/* Remove visual influence of old 0.7 subpage shell if any cached markup appears. */
.noio-subpage-content {
	max-width: 1180px !important;
}

/* Mobile */
@media (max-width: 900px) {
	.noio-sub-topline,
	.noio-sub-nav-desktop {
		display: none;
	}

	.noio-sub-nav-mobile {
		position: sticky !important;
		top: 0 !important;
		z-index: 1100 !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 68px;
		padding: 0 17px;
		background: rgba(6,14,22,.985);
		border-top: 3px solid transparent;
		border-image: linear-gradient(90deg,var(--noio-cyan),var(--noio-magenta),var(--noio-yellow)) 1;
		border-bottom: 1px solid var(--noio-line);
		box-shadow: 0 9px 28px rgba(0,0,0,.2);
	}

	.admin-bar .noio-sub-nav-mobile {
		top: 46px !important;
	}

	.noio-sub-mobile-brand2 {
		display: flex;
		flex-direction: column;
		text-decoration: none;
		line-height: 1;
	}

	.noio-sub-mobile-brand2 strong {
		font-size: 1.75rem;
		font-weight: 900;
		letter-spacing: .08em;
		background: linear-gradient(90deg,var(--noio-cyan),#fff 56%,var(--noio-magenta));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}

	.noio-sub-mobile-brand2 span {
		margin-top: 5px;
		font-size: .62rem;
		color: #d5e0e7;
	}

	.noio-sub-mobile-menu2 {
		position: relative;
	}

	.noio-sub-mobile-menu2 summary {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 42px;
		height: 42px;
		list-style: none;
		cursor: pointer;
	}

	.noio-sub-mobile-menu2 summary::-webkit-details-marker {
		display: none;
	}

	.noio-sub-mobile-menu2 summary span {
		width: 26px;
		height: 2px;
		background: #fff;
	}

	.noio-sub-mobile-menu2 nav {
		position: absolute;
		top: 49px;
		right: 0;
		width: 240px;
		padding: 9px;
		border: 1px solid #20384a;
		border-radius: 12px;
		background: #08131d;
		box-shadow: 0 25px 55px rgba(0,0,0,.42);
	}

	.noio-sub-mobile-menu2 nav a {
		display: block;
		padding: 10px 11px;
		color: #f2f7fb;
		text-decoration: none;
	}

	.noio-subpage-frame {
		border-left: 0;
		border-right: 0;
	}

	.noio-subhero2,
	.noio-subhero2[style] {
		min-height: 190px !important;
	}

	.noio-subhero2-inner {
		width: calc(100% - 36px) !important;
		padding: 32px 0 !important;
	}

	.noio-subtitle2,
	.noio-subtitle2.wp-block-post-title,
	.noio-subtitle2.wp-block-query-title {
		font-size: clamp(2rem, 10vw, 2.9rem) !important;
	}

	.noio-subcontent2,
	.noio-archive2 {
		width: calc(100% - 32px) !important;
		padding-top: 2.6rem !important;
		padding-bottom: 4rem !important;
	}

	.noio-archive2 .wp-block-post-template,
	.noio-search2 .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}
