/* ============================================
   KERNWERK SYSTEMS - KOMPONENTEN STYLES
   ============================================
   Saubere, semantische CSS-Klassen
   Ohne generierte Hash-Suffixe
   ============================================ */

/* ============================================
   GRID LAYOUT SYSTEM
   ============================================
   Responsive Breakpoint-Strategie:
   
   Mobile:          < 600px  → 8 Spalten
   Tablet Portrait: 600-759px → 8 Spalten
   Tablet Landscape: 760-959px → 16 Spalten
   Desktop:         ≥ 960px  → 24 Spalten
   ============================================ */

.grid-layout {
	display: grid;
	width: 100%;
	grid-auto-rows: auto;
	grid-auto-flow: row;
	padding: 0 12px;
	grid-row-gap: 0;
	row-gap: 0;
	grid-template-columns: repeat(8, 1fr); /* Default: Mobile/Tablet Portrait */

	@media (max-width: 599px) {
		padding: 0 16px;
	}

	@media (min-width: 760px) {
		grid-template-columns: repeat(16, 1fr); /* Tablet Landscape */
	}

	@media (min-width: 960px) {
		grid-template-columns: repeat(24, 1fr); /* Desktop */
	}
}

/* ============================================
   HERO SEKTION
   ============================================ */

.hero-section {
	position: relative;
	margin-top: 16px;
	padding-top: clamp(12px, 2vw, 24px);
	padding-bottom: clamp(12px, 2.4vw, 26px);
	min-height: auto;
	align-content: start;
	justify-items: start;
	row-gap: 6px;

}

@media (max-width: 599px){
	.hero-section {
		margin-top: 10px;
		padding-top: 8px;
		padding-bottom: 12px;
		min-height: auto;
		row-gap: 4px;
	}

	.hero-section .text-hero {
		font-size: clamp(60px, 12vw, 86px) !important;
		line-height: 90%;
		letter-spacing: -0.06em;
	}

	.hero__subtitle {
		margin-top: 6px;
	}
}

@media (min-width: 600px) and (max-width: 959px){
	.hero-section {
		margin-top: 12px;
		padding-top: 10px;
		padding-bottom: 16px;
		padding-left: 18px;
		padding-right: 18px;
		min-height: auto;
		row-gap: 6px;
	}

	.hero-section .text-hero {
		font-size: clamp(72px, 10vw, 104px) !important;
		line-height: 90%;
		letter-spacing: -0.06em;
	}

	.hero__subtitle {
		padding-top: 28px;
	}
}

@media (max-width: 760px){
	.hero-section {
		grid-template-columns: repeat(8, 1fr);
	}
}

.hero__title {
	grid-column: 1/-1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	color: var(--headingTextColor, --fontColor);

	@media (min-width: 600px) {
		grid-column: 1/15;
		display: block;
		padding-left: 6px;
	}

	@media (min-width: 960px) {
		grid-column: 1/15;
	}
}

.hero__stripe-text {
	text-align: left;
	align-self: flex-start;
}

.hero__subtitle {
	color: var(--bodyTextColor, --fontColor);
	padding-top: 10px;
	padding-left: 6px;
	padding-right: 6px;
	grid-column: 1/15;
	grid-row: 3;
	font-size: clamp(14px, 1.6vw, 18px);
	line-height: 120%;
	letter-spacing: -0.01em;
	font-weight: 300;
}

/* Override text-lg defaults for the hero subtitle to ensure the smaller scale wins over main.css */
.hero__subtitle.text-lg {
	font-size: clamp(14px, 1.6vw, 18px);
	line-height: 120%;
	letter-spacing: -0.01em;
	font-weight: 300;
}



.hero__plus-icons {
	color: var(--plusIconColor, --fontColor);
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
}

.hero__plus-icons--second {
	grid-row: 3;

	@media (min-width: 600px) {
		display: none;
	}
}

.hero__plus-icons--third {
	padding-top: 8px;
}

@media (min-width: 600px){
	.hero__mobile-break {
		display: inline;
	}
}

@media (min-width: 960px){
	.hero__mobile-break {
		display: none;
	}
}

@media (max-width: 599px){
	.hero__stripe-text {
		text-align: left;
		margin-right: 0;
		align-self: flex-start;
	}

	.hero__plus-icons--third {
		display: none;
	}
}

.hero__plus-icons img:first-of-type,
.hero__plus-icons svg:first-of-type {
	grid-column: 1/1;
	grid-row: 1;
}

.hero__plus-icons img:nth-of-type(2n),
.hero__plus-icons svg:nth-of-type(2n) {
	grid-column: 16/16;
	grid-row: 1;
}

.hero__plus-icons img:nth-of-type(3n),
.hero__plus-icons svg:nth-of-type(3n) {
	grid-column: 22/22;
	grid-row: 1;
}

.hero__plus-icons img:nth-of-type(4n),
.hero__plus-icons svg:nth-of-type(4n) {
	grid-column: -2/-1;
	grid-row: 1;
	justify-self: end;
	transform: translateX(50%);
}

@media (max-width: 959px){
	.hero__plus-icons img:first-of-type,
	.hero__plus-icons svg:first-of-type {
		grid-column: 1/1;
	}

	.hero__plus-icons img:nth-of-type(2n),
	.hero__plus-icons svg:nth-of-type(2n) {
		grid-column: 13/13;
	}

	.hero__plus-icons img:nth-of-type(3n),
	.hero__plus-icons svg:nth-of-type(3n) {
		display: none;
	}

	.hero__plus-icons img:nth-of-type(4n),
	.hero__plus-icons svg:nth-of-type(4n) {
		grid-column: -1/-1;
	}
}

@media (max-width: 759px){
	.hero__plus-icons img:nth-of-type(2),
	.hero__plus-icons svg:nth-of-type(2) {
		grid-column: 6/6;
	}
}

/* ============================================
   SECTION BASE
   ============================================ */

.section {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	grid-template-rows: auto;
}

/* ============================================
   SCROLL EFFECTS (PARALLAX & REVEAL)
   ============================================ */

/* Einheitliche Easing-Kurve für Scroll-Reveals */
* {
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-layer {
	will-change: transform;
	transform: translateY(var(--parallax-offset, 0px));
	transition: transform 160ms ease-out;
}

.reveal,
[data-scroll='fade-up'] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible,
[data-scroll='fade-up'].is-visible {
	opacity: 1;
	transform: translateY(0);
}

[data-scroll='fade-up'] + .section-subtitle,
.section-title[data-scroll='fade-up'] + [data-scroll='fade-up'] {
	transition-delay: 0.12s;
}

.location-info .info-block[data-scroll='fade-up'] {
	transition-delay: 0s;
}

.location-info .info-block[data-scroll='fade-up']:nth-of-type(2) {
	transition-delay: 0.12s;
}

.location-info .info-block[data-scroll='fade-up']:nth-of-type(3) {
	transition-delay: 0.24s;
}

.contact-info [data-scroll="fade-up"] {
	transition-delay: 0s;
}

.contact-info [data-scroll="fade-up"]:nth-of-type(2) {
	transition-delay: 0.12s;
}

.contact-info [data-scroll="fade-up"]:nth-of-type(3) {
	transition-delay: 0.24s;
}

.contact-form[data-scroll="fade-up"] {
	transition-delay: 0.3s;
}

/* Gestaffeltes Einblenden der 6 System-Baustein-Karten */
.system-section__list .objective {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	transition-delay: 0ms;
}

.system-section__list .objective.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.system-section__list .objective:nth-of-type(1) { --objective-index: 0; }
.system-section__list .objective:nth-of-type(2) { --objective-index: 1; }
.system-section__list .objective:nth-of-type(3) { --objective-index: 2; }
.system-section__list .objective:nth-of-type(4) { --objective-index: 3; }
.system-section__list .objective:nth-of-type(5) { --objective-index: 4; }
.system-section__list .objective:nth-of-type(6) { --objective-index: 5; }

@media (prefers-reduced-motion: reduce) {
	.parallax-layer {
		transform: none !important;
		transition: none;
	}

	.reveal,
	[data-scroll='fade-up'] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================
   ICONS
   ============================================ */

.plus-icon {
	display: block;
	color: var(--plusIconColor);
	transform: translateX(-50%);
}

.square-icon {
	width: 8px;
	height: 8px;
	min-width: 8px;
	min-height: 8px;
	margin-top: 0.5px;
	background-color: var(--squareTextColor);
}

.arrow-icon {
	display: block;
	color: var(--listItemIconColor);
	width: 10px;
	height: 10px;
}

/* ============================================
   TABLE HEADER
   ============================================ */

.table-header {
	display: grid;
	grid-template-columns: subgrid;
	border-bottom: 0.5px solid var(--sectionLabels, --fontColor);
	padding-bottom: 6px;
	align-self: start;
}

.table-header__label {
	color: var(--sectionLabels, --fontColor);
	display: flex;
	gap: 4px;
	grid-column: 1/-1;
}

/* ============================================
   TAG KOMPONENTE
   ============================================ */

.tag {
	display: inline-block;
	padding: 2px 5px 2.5px;
	border: 1px dotted var(--tagBorderColor);
	border-radius: 3px;
	line-height: 1;
	white-space: nowrap;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.tag,
.tag:visited {
	color: var(--tagTextColor);
}

.tag[href]:hover {
	background-color: #FFD700;
	color: #000;
	border-color: #FFD700;
}

button.tag {
	cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
	grid-template-rows: auto auto;
	border-top: 0.5px solid var(--borderColor);
	margin-top: 100px;
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 0;

	@media (min-width: 760px) {
		margin-top: 160px;
	}
}


.footer__docs-section {
	grid-column: 1/-1;
	display: flex;
	flex-direction: column;
	gap: 16px;

	@media (min-width: 960px) {
		grid-column: 1/6;
	}
}

.footer__links-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__link-list {
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px;
}

.footer__docs-button,
.footer__resources-label {
	margin-top: auto;
}

.footer__copyright {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer__misc-list {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;

	@media (min-width: 600px) {
		gap: 16px;
	}

	@media (min-width: 960px) {
		gap: 32px;
	}
}

.footer__separator {
	border-top: 1px solid var(--borderColorLight);
	margin-top: 12px;
	padding-top: 12px;
	width: 100%;
}

.footer__copyright-center {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0 0;
}

@media (max-width: 959px){
	.footer {
		row-gap: 8px;
	}


	.footer__docs-section,
	.footer__links-section {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.footer__copyright,
	.footer__links-label,
	.footer__resources-label {
		margin-top: 0;
	}

	.footer__links-section {
		gap: 16px;
	}

	.footer__misc-list {
		margin-top: 0;
	}
}

/* ============================================
   FEATURED POSTS
   ============================================ */

.featured-posts {
	row-gap: 16px;
	margin-top: 48px;

	@media (min-width: 760px) {
		row-gap: 32px;
	}
}

.featured-posts__title {
	grid-column: 1/-1;
}

.featured-post {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: span 12;
	position: relative;
	grid-gap: 20px;
	gap: 20px;
	padding: 14px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(255,255,255,0.65), rgba(255,255,255,0.28));
	border: 1px solid rgba(255,255,255,0.45);
	box-shadow: 0 14px 48px rgba(17,24,39,0.2);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

.featured-post:last-of-type {
	grid-column: 1/-1;
}

.featured-post:last-of-type:before {
	content: "";
	position: absolute;
	left: -12px;
	top: -24px;
	height: calc(100% + 70px);
	border-left: 0.5px dashed var(--borderColor);
}

@media (max-width: 599px){
	.featured-post:last-of-type {
		margin-top: 30px;
	}

	.featured-post:last-of-type:before {
		width: 100%;
		left: 0;
		top: -16px;
		height: 0;
		border-left: none;
		border-top: 0.5px dashed var(--borderColor);
	}

	.featured-post {
		row-gap: 8px;
	}

	.featured-post__image {
		grid-column: 1/-1;
		grid-row: 1;
	}
}

.featured-post__image {
	grid-column: 1/7;
	grid-row: span 2;
}

@media (max-width: 599px){
	.featured-post__image {
		grid-column: 1/8;
	}
}

/* ============================================
   ART KOMPONENTE (Canvas Window)
   ============================================ */

.art-window {
	position: relative;
	width: clamp(180px, 70vw, 320px);
	opacity: 0;
	animation: art-fadein 0.3s forwards;
	--chromeHeight: 0px;
	background: transparent;
	box-shadow: none;
	border: none;
	overflow: visible;

	@media (min-width: 600px) {
		width: clamp(220px, 28vw, 320px);
	}
}

.art-window__dragline {
	flex-basis: 100%;
	margin: 0 10px;
	height: 1px;
	background: var(--windowBarText);
	opacity: 0;
}

.art-window:hover .art-window__dragline {
	display: block;
	opacity: 0.4;
}

.art-window__canvas {
	position: relative;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s;
	display: block;
}

.art-window__background {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0.35;
	border-radius: inherit;
}

.art-window__background svg {
	width: 100%;
	height: 100%;
	fill: var(--windowBarText);
}

.art-window__logo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.art-window__logo svg,
.art-window__logo img {
	width: 180px;
	height: 180px;
	opacity: 0.9;
	object-fit: contain;
}

.art-window__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	opacity: 0.75;
	pointer-events: none;
}

.art-window__badge {
	position: absolute;
	left: 10px;
	top: 7px;
	display: flex;
	align-items: center;
	opacity: 0;
}

.art-window__badge svg {
	display: block;
	top: 1px;
	position: relative;
	fill: var(--windowBarText);
}

.art-window__canvas-container {
	position: relative;
	width: 100%;
	aspect-ratio: 326/276;
	margin: 0 auto;
	animation: art-fadein 0.3s forwards;
	border: 1px solid rgba(255,255,255,0.28);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
	backdrop-filter: blur(12px) saturate(1.1);
	-webkit-backdrop-filter: blur(12px) saturate(1.1);
	overflow: visible;
}

.art-window__canvas-container:hover:active .art-window__badge {
	animation: art-fadein 1s infinite;
}

.art-window__chrome {
	display: block;
	position: static;
	height: 0;
	padding: 0;
	background: none;
}

.art-window__chrome svg {
	display: block;
	fill: var(--windowBarText);
}

.art-window__figure-label {
	position: absolute;
	bottom: -14px;
	right: 0;
	font-size: 10px;
	white-space: nowrap;
	line-height: 1;
	color: var(--windowBarText);
	z-index: 4;
	pointer-events: none;
}

.art-window__side {
	display: none;
}

.art-window__bottom {
	display: none;
}

.art-window__row {
	display: block;
}

/* Fallback für Browser ohne backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
	.featured-post {
		background: rgba(255,255,255,0.9);
		border-color: rgba(255,255,255,0.65);
		box-shadow: 0 10px 32px rgba(17,24,39,0.16);
	}

	.art-window {
		background: rgba(255,255,255,0.82);
		border-color: rgba(255,255,255,0.6);
		box-shadow: 0 10px 32px rgba(17,24,39,0.16);
	}
}

@keyframes art-fadein {
	0% {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
	position: fixed;
	width: 100%;
	max-width: 1728px;
	transform: translateX(-50%);
	left: 50%;
	margin: auto;
	top: 0;
	display: flex;
	gap: 3px;
	padding: 12px;
	justify-content: space-between;
	z-index: 2;
}

.nav__left {
	display: flex;
	gap: 12px;
}

.nav__right {
	display: flex;
	gap: 0px;
	align-items: center;
	padding: 5px 8px;
	background: var(--navButtonBG);
	border-radius: 2px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.nav__branding {
	color: #000;
	font-family: sohne-mono;
	text-transform: uppercase;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.5px;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.nav__branding-sub {
	align-self: end;
	opacity: 0.80;
	font-weight: 500;
}

.nav__link {
	background: var(--navButtonBG);
	padding: 5px 8px;
	display: flex;
	border-radius: 2px;
	align-items: center;
	justify-content: center;
	font-family: sohne-mono;
	text-transform: uppercase;
	color: var(--buttonColor);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

@media (pointer: fine){
	.nav__link:hover {
		background: var(--highlightColor);
	}

	.nav__link:hover .nav__logo {
		color: var(--invertedTextColor);
	}
}

.nav__logo {
	display: block;
	color: var(--buttonColor);
	background: var(--navButtonBG);
	border-radius: 2px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 5px 8px;
	height: 46px;
	width: auto;
	flex-shrink: 0;
}

@media (max-width: 599px){
	.nav {
		padding: 10px 16px;
		justify-content: center;
		left: 50%;
		transform: translateX(-50%);
	}

	.nav__left {
		gap: 8px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.nav__right {
		display: none;
	}

	.nav__branding,
	.nav__branding-sub,
	.nav__logo {
		display: none;
	}
}

@media (max-height: 520px) and (max-width: 960px){
	.hero-section {
		margin-top: 20px;
		padding-top: 16px;
		padding-bottom: 36px;
	}

	.text-hero {
		font-size: clamp(48px, 14vw, 68px);
		line-height: 88%;
	}

	.hero__subtitle {
		padding-top: 16px;
		font-size: clamp(14px, 3vw, 18px);
	}
}

.nav-button {
	background: var(--navButtonBG);
	padding: 5px 8px;
	display: flex;
	border-radius: 2px;
	align-items: center;
	justify-content: center;
	line-height: 1;
	letter-spacing: -0.3px;
	color: var(--buttonColor);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 0;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.nav-button:active,
.nav-button:visited {
	color: var(--buttonColor);
}

@media (pointer: fine){
	.nav-button:hover {
		background: var(--highlightColor);
		color: var(--invertedTextColor);
	}
}

.nav-button__hotkey {
	letter-spacing: -1px;
	margin-right: 8px;
}

@media (max-width: 959px){
	.nav-button__hotkey {
		display: none;
	}
}

/* ============================================
   STATISTICS TICKER
   ============================================ */

.statistics-section {
	row-gap: 4px;
	position: relative;
	margin-top: 10px;
}

@media (max-width: 599px) {
	.statistics-section {
		margin-top: 24px;
	}
}

.statistics-section__title {
	grid-column: 1/-1;
}

.statistics-ticker {
	padding: 8px;
	grid-column: 1/-1;
	position: absolute;
	left: 0;
	top: clamp(20px, 4vw, 30px);
	width: 100%;
	overflow: hidden;
	flex-wrap: none;

	@media (pointer: fine) {
		&:hover .statistics-ticker__container {
			animation-play-state: paused;
		}
	}
}

.statistics-ticker__container {
	display: flex;
	animation: ticker-scroll 25s linear infinite;
	width: fit-content;
}

.statistics-ticker__item {
	color: var(--marqueeTextColor, --fontColor);
	display: flex;
	white-space: nowrap;
	align-items: center;
	border-right: 1px dotted var(--marqueeTextColor, --fontColor);
	padding: 0 12px;
	gap: 8px;
}

.statistics-ticker__tag {
	color: var(--marqueeTextColor, --tagColor);
	border: 1px dotted var(--marqueeTagBorder, --borderColorLight);
}

@keyframes ticker-scroll {
	0% {
		transform: translateX(0);
	}
	to {
		transform: translateX(-33.333333333333%);
	}
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
	grid-column: 1/-1;
	display: flex;
	color: var(--headingTextColor, --fontColor);
	font-size: calc(42px + ((82 - 42) * (100vw - 390px) / (1728 - 390)));
	font-style: normal;
	font-weight: 300;
	line-height: 84%;
	letter-spacing: -0.06em;
	text-transform: uppercase;

	@media (min-width: 960px) {
		grid-column: 1/14;
	}

	@media (min-width: 1728px) {
		font-size: 82px;
	}
}

.section-title__counter {
	color: var(--counterColor, --fontColor);
	font-size: calc(12px + ((20 - 12) * (100vw - 390px) / (1728 - 390)));
	line-height: 100%;
	letter-spacing: -0.03em;
	vertical-align: top;
	margin-left: 8px;

	@media (min-width: 1728px) {
		font-size: 20px;
	}
}

/* ============================================
   LIST ITEM
   ============================================ */

.list-item {
	display: grid;
	grid-template-columns: subgrid;
	border-bottom: 0.5px solid var(--borderColor, --fontColor);
	color: var(--listItemText);
	grid-column: 1/-1;
}

/* ============================================
   system SECTION (System Overview)
   ============================================ */

.system-section {
	row-gap: 36px;
	margin-top: 100px;
	padding-top: 56px;

	@media (min-width: 760px) {
		margin-top: 160px;
		padding-top: 72px;
		row-gap: 56px;
	}
}

/* ============================================
   PLANS SECTION (Pricing Grid)
   ============================================ */

.plans-section {
	row-gap: 36px;
	margin-top: 100px;

	@media (min-width: 760px) {
		margin-top: 160px;
		row-gap: 56px;
	}
}

.system-section__toc {
	position: -webkit-sticky;
	position: sticky;
	top: var(--stickyOffset);
	display: none;
	grid-column: 1/7;
	grid-template-columns: subgrid;
	align-self: start;
	row-gap: 16px;
}

/* Firefox Fallback */
@-moz-document url-prefix(){
	.system-section__toc {
		top: 0;
		position: relative;
	}
}

.system-section__art {
	grid-column: 1/-1;
}

.system-section__list {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	grid-row-gap: 24px;
	row-gap: 24px;
}

.system-section__list-header,
.system-section__toc-header {
	grid-column: 1/-1;
}

@media (min-width: 960px){
	.system-section {
		row-gap: 56px;
	}

	.system-section__toc {
		display: grid;
	}

	.system-section__list {
		grid-column: 8/25;
	}
}

/* ============================================
   OBJECTIVE CARD
   ============================================ */

.objective {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	padding-bottom: 28px;
	border-bottom: 0.5px solid var(--borderColor);
	align-items: center;
	grid-row-gap: 16px;
	row-gap: 16px;
}

.objective__body,
.objective__main-link,
.objective__title {
	grid-column: 1/-1;
}

.objective__link-list {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	align-self: end;
}

.objective__list-item {
	border-bottom: 1px dotted var(--dottedBorderColor);
}

.objective__list-item:last-of-type {
	border-bottom: none;
}


.objective__link {
	padding: 10px 14px;
	display: flex;
	grid-column: 1/-2;
	align-items: center;
	color: #161616;
	width: 55%;
	border-radius: 6px;
	white-space: nowrap;

	@media (pointer: fine) {
		&:hover {
			background-color: var(--highlightColor);
		}

		&:hover * {
			--squareTextColor: var(--invertedTextColor);
			color: var(--invertedTextColor);
		}
	}
}

.objective__label {
	grid-column: 1/-3;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	color: #161616;
	white-space: nowrap;
}

@media (min-width: 960px){
	.objective__body,
	.objective__title {
		grid-column: 1/8;
	}

	.objective__main-link {
		margin-top: 16px;
		align-self: start;
		grid-column: 1/5;
	}

	.objective__link-list {
		grid-column: 9/-1;
		grid-row: 2/4;
	}
}


/* ============================================
   SLIDESHOW
   ============================================ */

.kernwerk-section {
	row-gap: 36px;
	grid-column: 1/-1;
	margin-top: 100px;

	@media (min-width: 760px) {
		margin-top: 160px;
		row-gap: 56px;
	}
}

.slideshow {
	grid-column: 1/-1;
	position: relative;
	width: 100%;
	overflow: hidden;
	margin-top: 2px;
	will-change: transform;
}

.slideshow__slider {
	display: flex;
	gap: 48px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 12px 24px 24px;
	-webkit-overflow-scrolling: touch;

	@media (max-width: 599px) {
		gap: 16px;
		padding: 12px 16px 24px;
	}
}

.slideshow__slider::-webkit-scrollbar {
	display: none;
}

.slideshow__slider {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.slideshow__slide {
	flex: 0 0 calc(100% - 48px);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-width: calc(100% - 48px);
	padding: clamp(12px, 4vw, 20px);
	border-radius: 2px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	display: grid;
	grid-template-rows: 0.3fr 1fr 1.5fr 0.2fr;
	grid-template-columns: 1fr;
	gap: clamp(12px, 3vw, 16px);
}

@media (min-width: 600px) {
	.slideshow__slide {
		flex: 0 0 calc(50% - 24px);
		min-width: calc(50% - 24px);
	}
}

@media (min-width: 960px) {
	.slideshow__slide {
		flex: 0 0 calc(33.333% - 16px);
		min-width: calc(33.333% - 16px);
	}
}

	.slideshow__controls {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		margin-top: 20px;
	}

.slideshow__dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 0;
		padding: 0;
}

.slideshow__dot {
		display: inline-block;
		width: 8px;
		height: 8px;
		padding: 0;
		border-radius: 50%;
		background: var(--borderColor, rgba(0, 0, 0, 0.2));
		cursor: pointer;
		transition: all 200ms ease;
		border: 1px solid rgba(255,255,255,0.2);
}

.slideshow__dot.active {
		background: var(--fontColor);
		width: 10px;
		border-radius: 999px;
		border-color: transparent;
	}

	.slideshow__arrow {
		width: 36px;
		height: 36px;
		border-radius: 6px;
		border: 1px solid var(--borderColor, rgba(0, 0, 0, 0.25));
		background: rgba(255,255,255,0.65);
		color: var(--fontColor);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
	}

	@media (pointer: fine){
		.slideshow__arrow:hover {
			background: var(--highlightColor);
			color: var(--invertedTextColor);
			border-color: transparent;
			transform: translateY(-2px);
		}
	}

	.slideshow__arrow:disabled {
		opacity: 0.45;
		cursor: not-allowed;
		transform: none;
}

/* ============================================
   PLANS GRID (Pricing Cards)
   ============================================ */

.plans-grid {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	grid-template-rows: auto;
	row-gap: 32px;
}

.plans-grid__card {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: 1/-1;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.2);
	background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	gap: 16px;
	row-gap: 16px;
}

.plans-grid__card--1 {
	grid-column: 1/-1;
}

@media (min-width: 960px) {
	.plans-grid__card--1 {
		grid-column: 3/9;
	}
}

.plans-grid__card--2 {
	grid-column: 1/-1;
}

@media (min-width: 960px) {
	.plans-grid__card--2 {
		grid-column: 10/16;
	}
}

.plans-grid__card--3 {
	grid-column: 1/-1;
}

@media (min-width: 960px) {
	.plans-grid__card--3 {
		grid-column: 17/23;
	}
}

.plans-grid__card .tag {
	width: fit-content;
}

.plans-grid__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.plans-grid__title {
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 500;
	color: var(--fontColor);
}

.plans-grid__desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--fontColor);
	opacity: 0.8;
}

.plans-grid__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.plans-grid__feature {
	font-size: 13px;
	line-height: 1.4;
	color: var(--fontColor);
	opacity: 0.7;
}

.plans-grid__cta {
	margin-top: auto;
}

/* ============================================
   NAVIGATION BUTTONS - Hidden States
   ============================================ */

.nav-button[href="/profile"],
.nav-button[href="/logout"] {
	display: none;
}

/* ============================================
   AUTH MODAL - LOGIN / REGISTER
   ============================================ */

.auth-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 599px) {
	.auth-modal {
		height: 100dvh;
	}
}

.auth-modal.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.auth-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	cursor: pointer;
}

@media (min-width: 600px) {
	.auth-modal__overlay {
		-webkit-backdrop-filter: blur(10px) saturate(1.1);
		backdrop-filter: blur(10px) saturate(1.1);
	}
}

.auth-modal.active .auth-modal__overlay {
	background: rgba(0, 0, 0, 0.3);
}

.auth-modal__content {
	position: relative;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
	width: 90%;
	max-width: 420px;
	padding: 40px 32px;
	z-index: 1001;
	animation: slideUp 0.5s ease;
	border: 1px solid rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

@media (min-width: 600px) {
	.auth-modal__content {
		backdrop-filter: blur(20px);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	cursor: pointer;
	color: #1e1e1e;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.auth-modal__close:hover {
	color: #FFD700;
}

.auth-modal__tabs {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	border-bottom: 2px solid #1e1e1e44;
}

.auth-modal__tab {
	flex: 1;
	background: none;
	border: none;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 500;
	color: #2e2e2e;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

.auth-modal__tab:hover {
	color: #1e1e1e;
}

.auth-modal__tab--active {
	color: #1e1e1e;
	border-bottom-color: #FFD700;
}

.auth-modal__form {
	display: none;
	animation: fadeIn 0.2s ease;
}

.auth-modal__form--active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.auth-modal__title {
	font-family: sohne-var;
	font-size: 24px;
	font-weight: 600;
	color: #1e1e1e;
	margin-bottom: 24px;
	letter-spacing: -0.02em;
}

.auth-modal__field {
	margin-bottom: 20px;
}

.auth-modal__label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #2e2e2e;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.auth-modal__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #1e1e1e44;
	border-radius: 6px;
	font-size: 15px;
	color: #1e1e1e;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.auth-modal__input::placeholder {
	color: #2e2e2e88;
}

.auth-modal__input:focus {
	outline: none;
	border-color: #FFD700;
	box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.auth-modal__forgot-link {
	display: inline-block;
	font-size: 13px;
	color: #1e1e1e;
	text-decoration: none;
	margin-bottom: 20px;
	transition: color 0.2s ease;
	border-bottom: 1px solid #FFD700;
}

.auth-modal__forgot-link:hover {
	color: #FFD700;
}

.auth-modal__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
}

.auth-modal__checkbox-input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #FFD700;
}

.auth-modal__checkbox-label {
	font-size: 13px;
	color: #2e2e2e;
	line-height: 1.5;
	cursor: pointer;
}

.auth-modal__checkbox-label a {
	color: #1e1e1e;
	text-decoration: none;
	border-bottom: 1px solid #FFD700;
	transition: color 0.2s ease;
}

.auth-modal__checkbox-label a:hover {
	color: #FFD700;
}

.auth-modal__submit {
	width: 100%;
	padding: 12px 16px;
	background: #1e1e1e;
	color: #eaeaea;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 8px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.auth-modal__submit:hover {
	background: #FFD700;
	color: #1e1e1e;
}

.auth-modal__submit:active {
	background: #E8C200;
}

/* Mobile Responsive */
@media (max-width: 599px) {
	.auth-modal__content {
		width: 95%;
		max-width: 100%;
		padding: 32px 20px;
	}

	.auth-modal__title {
		font-size: 20px;
	}

	.auth-modal__input {
		font-size: 16px;
	}
}

/* ============================================
   PROFILE POPUP STYLES
   ============================================ */

.profile-avatar-section {
	text-align: center;
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 2px solid #1e1e1e22;

}

.profile-avatar {
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	border: 3px solid rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.profile-name {
	font-size: 20px;
	font-weight: 600;
	color: #1e1e1e;
	margin: 12px 0 6px;
	letter-spacing: -0.3px;
	font-family: sohne-var;
}

.profile-email {
	font-family: sohne-mono, monospace;
	font-size: 13px;
	color: #666;
	margin: 0;
	letter-spacing: 0.3px;
}

/* ============================================
   TYPEWRITER EFFECT - Text Animation
   ============================================ */

.typewriter-text {
	display: inline;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.typewriter-cursor {
	display: inline-block;
	width: 2px;
	height: 1em;
	background-color: #FFD700;
	margin-left: 2px;
	animation: typewriter-blink 0.6s steps(1) infinite;
	vertical-align: text-bottom;
}

@keyframes typewriter-blink {
	0%, 49% {
		opacity: 1;
	}
	50%, 100% {
		opacity: 0;
	}
}

/* Mobile responsive */
@media (max-width: 599px) {
	.typewriter-cursor {
		height: 0.9em;
	}
}

/* ============================================
   AUTH TOAST NOTIFICATIONS
   ============================================ */

.auth-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #1e1e1e;
	color: #eaeaea;
	padding: 12px 24px;
	border-radius: 6px;
	font-family: sohne-mono, monospace;
	font-size: 14px;
	font-weight: 300;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-width: 90%;
	text-align: center;
}

.auth-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.auth-toast--success {
	background: #10b981;
	color: #ffffff;
}

.auth-toast--error {
	background: #ef4444;
	color: #ffffff;
}

@media (max-width: 599px) {
	.auth-toast {
		bottom: 16px;
		font-size: 13px;
		padding: 10px 20px;
	}
}