.theme-machine {
	--steel: #293640;
	--paper: #EDD9C1;
	--brand: #FFA843;
	--frame-width: var(--width-wide);

	--color-bg: var(--steel);
	--color-text: var(--paper);
	--color-accent: var(--brand);
}

/* Body-Styling innerhalb des Themes */
.theme-machine body {
	overflow: hidden;
	background: #f5efe9;
	box-shadow:
		inset 220px 0 190px -120px rgba(78, 60, 43, 0.34),
		inset -220px 0 190px -120px rgba(78, 60, 43, 0.34);
	padding-inline: 5rem;
	min-height: 100vh;
}

.theme-machine .page-frame {
	width: min(var(--frame-width), 100%);
	height: 100%;
	overflow-y: auto;
	border-radius: 6px;
	box-shadow:
		/* Drop Shadow */
		0 10px 50px rgba(0, 0, 0, 0.6),
		0 30px 90px rgba(0, 0, 0, 0.3);
}


/* Dekorative vertikale Linie links neben dem Frame. Beginnt auf Höhe des Headers. */
.theme-machine body::before {
    content: "";
    position: fixed;
    top: 1.2rem; /* wie .site-header padding-top – Linie startet auf Header-Höhe */
    bottom: 0;
    left: calc(50% - var(--frame-width) / 2 + 4rem);
    width: 1.5px;
    background: #e59a2f;
    box-shadow: 0 0 6px rgba(229, 154, 47, 0.3);
    opacity: .82;
    pointer-events: none;
    z-index: 0;
}

/* Header-Centering */
.theme-machine .site-header .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

/* Große Überschrift */
.theme-machine .site-title {
	font-size: 5rem;
}

/* Uppercase-Regeln */
.theme-machine .site-title,
.theme-machine .footer-title,
.theme-machine .footer-nav a {
	text-transform: uppercase;
}

/* Startseite: Hero + Listen (Tokens, gemeinsame Regeln) */
.theme-machine .home-hero { margin-bottom: var(--space-l); }
.theme-machine .home-hero-description {
	font-size: var(--font-size-base);
	max-width: 36em;
	opacity: 0.95;
}
.theme-machine .home-hero-illustration {
	margin-top: var(--space-l);
	margin-bottom: 0;
	width: calc(100% + 2rem);
	margin-left: -1rem;
}
.theme-machine .home-hero-illustration-image {
	width: 100%;
	display: block;
	height: auto;
	/* Tint black SVG lines to theme text color (--paper) */
	filter: brightness(0) saturate(100%) invert(91%) sepia(10%) saturate(650%) hue-rotate(336deg) brightness(101%) contrast(94%);
}
.theme-machine .home-section-title {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
	margin-bottom: var(--space-s);
}
.theme-machine .home-teaser { margin-bottom: var(--space-l); }

.theme-machine .home-teaser-list,
.theme-machine .home-archive-list {
	list-style: none;
	margin-block: 0;
	padding-left: 0;
}
.theme-machine .home-teaser-item,
.theme-machine .home-archive-item {
	margin-block: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-machine .home-teaser-item::before,
.theme-machine .home-archive-item::before { content: none; }

.theme-machine .home-teaser-link,
.theme-machine .home-archive-link {
	display: block;
	padding: var(--space-s) 0;
	color: inherit;
	text-decoration: none;
	border-bottom: none;
}
.theme-machine .home-teaser-link:hover,
.theme-machine .home-archive-link:hover { opacity: 0.85; }

.theme-machine .home-teaser-title,
.theme-machine .home-archive-title {
	display: block;
	font-weight: 600;
	font-size: var(--font-size-h3);
	margin-bottom: var(--space-2xs);
}
.theme-machine .home-teaser-desc,
.theme-machine .home-archive-teaser {
	display: block;
	font-size: var(--font-size-base);
	margin-bottom: var(--space-2xs);
	opacity: 0.85;
}
.theme-machine .home-teaser-meta,
.theme-machine .home-archive-meta {
	font-size: 0.85em;
	opacity: 0.6;
}

/* "Texte aus dem Maschinenraum" as two-column magazine grid */
.theme-machine .home-archive-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2.2rem;
	row-gap: 1.4rem;
	position: relative;
}

.theme-machine .home-archive-list::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #e59a2f;
	transform: translateX(-0.5px);
	pointer-events: none;
}

.theme-machine .home-archive-item {
	border-bottom: none;
	margin: 0;
	padding-bottom: 0.25rem;
}

.theme-machine .home-teaser-item {
	border-bottom: none;
}

.theme-machine .home-archive-link {
	border-bottom: none;
}

/* Root language hub (/ → DE | EN) */
.theme-machine .home-lang-hub {
	padding-block: var(--space-xl);
	max-width: 32rem;
}

.theme-machine .home-lang-hub-title {
	font-family: var(--font-display);
	font-size: var(--step-4);
	margin-bottom: var(--space-s);
}

.theme-machine .home-lang-hub-lead {
	margin-bottom: var(--space-l);
	line-height: var(--leading-normal);
}

.theme-machine .home-lang-hub-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-m);
}

.theme-machine .home-lang-hub-list li {
	margin: 0;
}

.theme-machine .home-lang-hub-list li::before {
	content: none;
}

.theme-machine .home-lang-hub-link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.theme-machine .home-lang-hub-list + #language-hint {
	margin-top: var(--space-m);
}

/* Theme machine: responsive (max-width 800px) */
@media (max-width: 800px) {
	.theme-machine body {
		padding-inline: 0.75rem;
		overflow: auto;
		height: auto;
		min-height: 100vh;
		box-shadow: none;
	}

	.theme-machine .page-frame {
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	}

	.theme-machine body::before {
		content: none;
		display: none;
	}

	.theme-machine .site-title {
		font-size: clamp(2rem, 9vw, 5rem);
	}

	.theme-machine .home-hero-illustration {
		margin-top: var(--space-s);
		width: 100%;
		margin-left: 0;
	}

	.theme-machine .home-archive-list {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.theme-machine .home-archive-list::before {
		content: none;
	}

	.theme-machine .home-archive-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}