/* ==========================================================================
   LueneNerd 1.6.48 – Startbereich: Prompt-Zeile im Hero und drei Kacheln
   ========================================================================== */

/* ---------- Prompt-Zeile (im Navy-Hero, volle Breite unter Text und Buttons) ---------- */

.ln-hero.ln-band > .ln-prompt,
.ln-hero.ln-band > .wp-block-luenenerd-start {
	flex: 1 0 100%;
	margin: 0;
}

.ln-prompt {
	margin-top: 0.15rem !important;
	padding-top: 0.6rem;
	border-top: 1px solid #243150;
}

.ln-prompt__z {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 1.6em;
	margin: 0;
	overflow: hidden;
	color: #c5d0e6;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	line-height: 1.5;
	white-space: nowrap;
}

.ln-prompt__p {
	flex: 0 0 auto;
	color: #39ff7f;
}

.ln-prompt__k {
	flex: 0 0 auto;
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	background: #1f2a4d;
	color: #39ff7f;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}

.ln-prompt__k[data-k="neu"] {
	background: #39ff7f;
	color: #0a0f1e;
	font-weight: 600;
}

.ln-prompt__t {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ln-prompt__t a {
	color: #e7ecf5;
	text-decoration: underline;
	text-decoration-color: rgba(57, 255, 127, 0.5);
	text-underline-offset: 3px;
}

.ln-prompt__t a:hover {
	color: #39ff7f;
}

.ln-prompt__c {
	flex: 0 0 auto;
	margin-left: -0.3rem;
	color: #39ff7f;
	animation: ln-blink-164 1.1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
	.ln-prompt__c {
		animation: ln-blink-164 1.1s steps(1) infinite !important;
	}
}

/* ---------- Kacheln ---------- */

.ln-main--home > .ln-startk {
	margin-block: 0 1.1rem;
}

.ln-start {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 14px;
}

.ln-st {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-width: 0;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.ln-st:hover,
a.ln-st:focus-visible {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.ln-st__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ln-st__h,
.ln-st h2.ln-st__h {
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ln-st--com .ln-st__h {
	color: var(--wp--preset--color--muted);
}

.ln-st-meta {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
}

.ln-st__t {
	margin-top: auto;
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
	font-weight: 700;
}

/* Was geht bei mir? */
.ln-st-was {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 14px;
}

.ln-st-was__i {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ln-st-was__l {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

.ln-st-ico {
	width: 14px;
	height: 14px;
}

.ln-st-was__t {
	overflow: hidden;
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ln-st-was__t a {
	color: inherit;
	text-decoration: none;
}

.ln-st-was__t a:hover {
	color: var(--wp--preset--color--accent);
}

.ln-st-bar {
	display: block;
	height: 5px;
	margin-top: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--wp--preset--color--surface-2);
}

.ln-st-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ln-line-grad, var(--wp--preset--color--accent));
}

/* Werkstatt */
.ln-st-neu {
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #111831;
	color: #39ff7f;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ln-st-ics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ln-st-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: rgba(57, 255, 127, 0.12);
	color: var(--wp--preset--color--accent);
}

.ln-st-ic .ln-wk-icon {
	width: 17px;
	height: 17px;
}

.ln-st-ic--mehr {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
}

html[data-theme="light"] .ln-st-ic {
	background: rgba(4, 122, 58, 0.1);
}

/* Community */
.ln-st .ln-st-com__z {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--wp--preset--color--heading);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.ln-st a.ln-st-com__z:hover {
	color: var(--wp--preset--color--accent);
}

.ln-st-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--muted);
}

.ln-st-dot[data-st="live"],
.ln-st-dot[data-st="online"] {
	background: #39ff7f;
	box-shadow: 0 0 8px #39ff7f;
}

.ln-st-dot[data-st="live"] {
	animation: ln-blink-164 1.6s ease-in-out infinite;
}

.ln-st-dot[data-st="bald"] {
	background: var(--ln-amber, #f5b544);
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 960px) {
	.ln-start {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ln-st--was {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.ln-start {
		grid-template-columns: minmax(0, 1fr);
	}

	.ln-st-was {
		grid-auto-flow: row;
		gap: 10px;
	}

	.ln-prompt__z {
		flex-wrap: wrap;
		row-gap: 0.2rem;
		font-size: 0.74rem;
		white-space: normal;
	}
}

/* Kachel-Links ohne Unterstreichung (globale Link-Regel überschreiben) */
a.ln-st,
a.ln-st *,
.ln-st a {
	text-decoration: none !important;
}

/* „Neu“-Abzeichen: im Dunkel-Modus grün gefüllt, damit es auf der Navy-Fläche sichtbar bleibt */
html:not([data-theme="light"]) .ln-st-neu {
	background: #39ff7f;
	color: #0a0f1e;
	font-weight: 600;
}

/* Prozentzahl neben dem Fortschrittsbalken (ab 1.6.56): sagt, was der Balken bedeutet */
.ln-st-pr {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
}

/* ==========================================================================
   Hero-Band der Startseite (ab 1.6.57): volles Band, Gitter, zwei Leuchtflecken, drei Kennzahlen.
   Bleibt in beiden Farbmodi dunkel (Navy-Fläche); die Kacheln schieben sich 64 px über das Band.
   ========================================================================== */

.ln-hb {
	--hb-bg: #0e1530;
	--hb-text: #c5d0e6;
	--hb-muted: #a5b1c9;
	--hb-neon: #39ff7f;
	position: relative;
	overflow: hidden;
	background: var(--hb-bg);
	color: var(--hb-text);
}

.ln-hb__gitter {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(147, 161, 188, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 161, 188, 0.09) 1px, transparent 1px);
	background-size: 44px 44px;
}

.ln-hb__glut {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.ln-hb__glut--1 {
	top: -200px;
	right: -140px;
	width: 620px;
	height: 620px;
	background: radial-gradient(circle, rgba(57, 255, 127, 0.2), rgba(57, 255, 127, 0) 65%);
}

.ln-hb__glut--2 {
	bottom: -320px;
	left: -160px;
	width: 640px;
	height: 640px;
	background: radial-gradient(circle, rgba(91, 140, 255, 0.22), rgba(91, 140, 255, 0) 65%);
}

.ln-hb__in {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem 2.5rem;
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1420px) + 3rem);
	min-height: 300px;
	margin-inline: auto;
	padding: 2.25rem 1.5rem 6.5rem;
}

.ln-hb__text {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-width: 0;
	max-width: 42rem;
}

.ln-hb__pfad {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	color: var(--hb-muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
}

.ln-hb__pfad b {
	color: var(--hb-neon);
	font-weight: 500;
}

.ln-hb__kw {
	padding: 0.1rem 0.65rem;
	border-radius: 999px;
	background: rgba(91, 140, 255, 0.2);
	color: #9dbaff;
	font-size: 0.8125rem;
}

.ln-hb .ln-hb__h1 {
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 2.875rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.ln-hb .ln-prompt {
	margin: 0 !important;
	padding: 0;
	border-top: 0;
}

.ln-hb .ln-prompt__z {
	font-size: 0.95rem;
	color: var(--hb-text);
}

.ln-hb__lead {
	margin: 0;
	max-width: 34rem;
	color: var(--hb-text);
	font-size: 1.125rem;
	line-height: 1.55;
}

/* Kennzahlen im Band */
.ln-hb__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 9.5rem));
	gap: 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ln-hb__stat {
	display: grid;
	gap: 0.1rem;
	margin: 0;
	padding: 0.85rem 1.1rem;
	border: 1px solid rgba(91, 140, 255, 0.4);
	border-radius: 20px;
	background: rgba(10, 15, 30, 0.7);
}

.ln-hb__stat b {
	color: var(--hb-neon);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.625rem;
	font-weight: 700;
	line-height: 1.1;
}

.ln-hb__stat span {
	color: var(--hb-muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Kacheln schieben sich über das Band; der Hauptbereich beginnt direkt darunter */
.ln-hb + .ln-main--home {
	position: relative;
	z-index: 1;
	margin-top: -64px;
	padding-top: 0;
}

@media (max-width: 1100px) {
	.ln-hb__in {
		grid-template-columns: minmax(0, 1fr);
	}

	.ln-hb__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 34rem;
	}
}

@media (max-width: 600px) {
	.ln-hb__in {
		padding: 1.75rem 1rem 5.5rem;
	}

	.ln-hb__stats {
		gap: 0.5rem;
	}

	.ln-hb__stat {
		padding: 0.6rem 0.7rem;
		border-radius: 14px;
	}

	.ln-hb__stat b {
		font-size: 1.9rem;
	}

	.ln-hb__stat span {
		font-size: 0.68rem;
	}
}

/* ==========================================================================
   Hero-Band auf allen anderen Seiten (ab 1.6.57): Seiten, Beiträge, Werkstatt, Archive, Suche, 404
   ========================================================================== */

.ln-hb--seite .ln-hb__in {
	display: block;
	min-height: 0;
	padding: 2.25rem 1.5rem 6rem;
}

.ln-hb--seite.ln-hb--flach .ln-hb__in {
	padding-bottom: 2.5rem;
}

.ln-hb--seite .ln-hb__text {
	max-width: 56rem;
}

.ln-hb--seite .ln-hb__lead {
	max-width: 44rem;
}

.ln-hb .ln-post-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem 0.9rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.ln-hb .ln-post-path {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.875rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ln-hb .ln-post-chip {
	font-size: 0.75rem;
}

/* Inhalt schiebt sich 64 px über das Band (Seiten und Beiträge), sonst beginnt er darunter */
.ln-hb--ueber + .ln-main {
	position: relative;
	z-index: 1;
	margin-top: -64px;
	padding-top: 0;
}

.ln-hb--flach + .ln-main {
	padding-top: 2.5rem;
}

/* Beitragsbild als Karte ganz oben im Hauptbereich, ragt über das Band */
.ln-main--post > .ln-post-hero {
	min-height: 0;
	max-height: 34rem;
	aspect-ratio: 21 / 9;
	margin-block: 0 1.5rem;
	box-shadow: 0 26px 48px -24px rgba(7, 11, 22, 0.75);
}

.ln-search-box {
	margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
	.ln-hb--seite .ln-hb__in {
		padding: 1.75rem 1rem 5rem;
	}

	.ln-hb--seite.ln-hb--flach .ln-hb__in {
		padding-bottom: 2rem;
	}
}

/* 404: Suchfeld in der Breite des Terminal-Fensters */
main.ln-404 > .wp-block-search {
	width: 100%;
	max-width: var(--wp--style--global--content-size, 740px);
	margin-inline: auto;
}
