/* ==========================================================================
   appgedreht – Haupt-Stylesheet
   ========================================================================== */

/* Schrift: Nunito wird genutzt, wenn sie in assets/fonts liegt (siehe README),
   sonst die runde Systemschrift (iPhone/Mac: SF Rounded). Kein Google-Server. */

:root {
	--brand: #6c4cf1;
	--brand-strong: #5636e0;
	--brand-text: #6c4cf1;
	--brand-soft: #efebff;

	--ink: #1e1b3a;
	--text: #3d3a5c;
	--muted: #6e6a8a;
	--bg: #fbfaff;
	--surface: #ffffff;
	--surface-2: #f4f2fb;
	--line: #e7e4f2;

	--font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 24px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(30, 27, 58, .05), 0 10px 30px -14px rgba(30, 27, 58, .22);
	--shadow-lg: 0 2px 4px rgba(30, 27, 58, .05), 0 24px 50px -20px rgba(30, 27, 58, .32);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--container: 1180px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--brand: #7b5cff;
		--brand-strong: #9479ff;
		--brand-text: #b3a3ff;
		--brand-soft: #251e4d;
		--ink: #f4f2ff;
		--text: #cdc9e6;
		--muted: #9a95ba;
		--bg: #0e0c1d;
		--surface: #17142b;
		--surface-2: #1d1938;
		--line: #2b2650;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 50px -20px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: .18em; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--brand-text); margin-bottom: 14px;
}

/* Das gedrehte Hervorhebungswort */
.twist {
	display: inline-block;
	color: #fff;
	background: var(--brand);
	padding: 0 .22em .04em;
	margin: 0 .04em;
	border-radius: .22em;
	transform: rotate(-6deg);
	box-shadow: 0 .12em .4em -.1em color-mix(in srgb, var(--brand) 60%, transparent);
	transition: transform .5s var(--ease);
}
.hero__title:hover .twist { transform: rotate(4deg) scale(1.04); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px;
	font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn--primary:hover { background: var(--brand-strong); transform: translateY(-2px) rotate(-1deg); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ---------- Kopfzeile ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30, 27, 58, .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; color: var(--ink); }
.brand__logo { width: 168px; height: auto; overflow: visible; }
.brand__logo text { font-family: var(--font); font-weight: 800; }
.brand__tile { transform: rotate(-12deg); transform-origin: 50px 50px; transform-box: view-box; transition: transform .5s var(--ease); }
.brand__tile rect { fill: var(--brand); }
.brand__tile text { fill: #fff; font-size: 44px; }
.brand__word { fill: currentColor; font-size: 31px; letter-spacing: -.5px; }
.brand__word tspan { fill: var(--brand-text); }
.brand:hover .brand__tile { transform: rotate(8deg); }
.custom-logo { max-height: 44px; width: auto; }

.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 8px 16px; border-radius: 999px;
	color: var(--ink); font-weight: 700; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.nav__list a:hover, .nav__list .current-menu-item > a { background: var(--brand-soft); color: var(--brand-text); }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
	background: var(--surface-2); cursor: pointer; padding: 0;
	flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle__bar { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; left: 16px; right: 16px; top: 72px;
		background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: var(--shadow-lg); padding: 10px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: 12px 16px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); overflow: hidden; }
.hero__glow, .app-hero__glow {
	position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
	background:
		radial-gradient(40% 45% at 78% 35%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
		radial-gradient(30% 35% at 15% 10%, color-mix(in srgb, #ff6b9a 16%, transparent), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero__inner--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-bottom: 20px; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__stack { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero__tile {
	position: absolute; width: 34%; aspect-ratio: 1;
	animation: float 7s ease-in-out infinite;
	filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--app-color, var(--brand)) 40%, transparent));
}
.hero__tile .app-icon { width: 100%; height: 100%; font-size: 3.4rem; }
.hero__tile--1 { left: 33%; top: 30%; width: 40%; --r: -10deg; z-index: 3; animation-delay: -1s; }
.hero__tile--2 { left: 4%;  top: 6%;  --r: 12deg;  animation-delay: -2s; }
.hero__tile--3 { left: 66%; top: 2%;  width: 28%; --r: -16deg; animation-delay: -3s; }
.hero__tile--4 { left: 2%;  top: 60%; width: 28%; --r: -6deg;  animation-delay: -4s; }
.hero__tile--5 { left: 68%; top: 58%; --r: 9deg;  animation-delay: -5s; }
.hero__tile--6 { left: 36%; top: 78%; width: 22%; --r: 18deg; animation-delay: -6s; }
@keyframes float {
	0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
	50%      { transform: rotate(calc(var(--r, 0deg) * -.4)) translateY(-12px); }
}

/* ---------- App-Icons ---------- */

.app-icon { width: 72px; height: 72px; border-radius: 22.5%; object-fit: cover; flex-shrink: 0; }
.app-icon--placeholder {
	display: grid; place-items: center;
	background: var(--app-color, var(--brand));
	color: #fff; font-weight: 900; font-size: 2rem; line-height: 1;
	box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .12), inset 0 6px 14px rgba(255, 255, 255, .18);
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding-top: 24px; }
.section--muted { background: var(--surface-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }

/* Filter */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	font: inherit; font-weight: 700; font-size: .95rem;
	padding: 9px 16px; border-radius: 999px; cursor: pointer;
	background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
	transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__count { font-size: .78rem; opacity: .6; }

/* ---------- App-Karten ---------- */

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.app-grid__empty { color: var(--muted); padding: 24px 0; }

.app-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.app-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none;
	background: radial-gradient(70% 100% at 18% 0%, color-mix(in srgb, var(--app-color) 18%, transparent), transparent 75%);
}
.app-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--app-color) 40%, var(--line)); }
.app-card.is-hidden { display: none; }

.app-card__main { position: relative; flex: 1; padding: 24px 24px 12px; color: inherit; text-decoration: none; }
.app-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.app-card__icon {
	width: 76px; height: 76px;
	box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--app-color) 70%, transparent);
	transition: transform .5s var(--ease);
}
.app-card:hover .app-card__icon { transform: rotate(-10deg) scale(1.05); }
.app-card__title { font-size: 1.35rem; margin: 0 0 2px; }
.app-card__sub { font-weight: 700; color: color-mix(in srgb, var(--app-color) 75%, var(--ink)); margin: 0 0 10px; font-size: .95rem; }
.app-card__text { color: var(--muted); font-size: .98rem; margin: 0; }

.badge {
	font-size: .75rem; font-weight: 800; letter-spacing: .04em;
	padding: 5px 11px; border-radius: 999px;
	background: var(--surface-2); color: var(--muted);
}
.badge--new { background: var(--brand); color: #fff; transform: rotate(4deg); }

.app-card__badges { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.app-card__cat { margin: 12px 0 0; font-size: .82rem; font-weight: 700; color: var(--muted); opacity: .8; }
.app-card__website { color: var(--brand-text) !important; }

/* Verfügbarkeit */
.status {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .78rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
	padding: 5px 11px 5px 9px; border-radius: 999px;
	background: var(--status-bg); color: var(--status-text);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-dot, currentColor); flex-shrink: 0; }
.status--live, .status__dot--live, .chip--live { --status-bg: #e3f7ea; --status-text: #146c35; --status-dot: #22c55e; }
.status--review, .status__dot--review { --status-bg: #fff3dc; --status-text: #8a4b06; --status-dot: #f59e0b; }
.status--dev, .status__dot--dev { --status-bg: var(--surface-2); --status-text: var(--muted); --status-dot: #a3a0b8; }
.status--live .status__dot { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-color-scheme: dark) {
	.status--live, .status__dot--live, .chip--live { --status-bg: #12341f; --status-text: #8ee6ac; }
	.status--review, .status__dot--review { --status-bg: #3a2a0c; --status-text: #fcd38a; }
}
.chip--live .status__dot { background: var(--status-dot); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.hero__stats li { display: inline-flex; align-items: center; gap: 8px; }
.hero__stats strong { color: var(--ink); font-size: 1.1rem; }
.hero__stats .status__dot { width: 10px; height: 10px; }

.store-soon {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0;
	padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line);
	color: var(--muted); font-size: .95rem;
}
.btn--website { padding: 11px 20px; }

.app-card__links {
	position: relative; display: flex; flex-wrap: wrap; gap: 4px;
	padding: 12px 18px 18px; margin-top: 6px; border-top: 1px dashed var(--line);
}
.app-card__links a {
	font-size: .88rem; font-weight: 700; color: var(--muted); text-decoration: none;
	padding: 6px 10px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.app-card__links a:hover { background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Über mich ---------- */

.about {
	display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
	padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.about__badge {
	aspect-ratio: 1; border-radius: 32%; background: var(--brand-soft);
	display: grid; place-items: center; transform: rotate(6deg);
}
.brand__mark { width: 62%; overflow: visible; }
.brand__mark .brand__tile text { font-family: var(--font); font-weight: 800; font-size: 52px; }
.about:hover .brand__mark .brand__tile { transform: rotate(10deg); }
.about__text p { font-size: 1.1rem; max-width: 40em; }
.about__text .section__title { margin-bottom: 14px; }

@media (max-width: 760px) {
	.about { grid-template-columns: 1fr; gap: 24px; }
	.about__badge { width: 120px; }
}

/* ---------- App-Detailseite ---------- */

.app-hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.app-hero__glow {
	background:
		radial-gradient(40% 60% at 20% 30%, color-mix(in srgb, var(--app-color) 26%, transparent), transparent 70%),
		radial-gradient(35% 50% at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.app-hero__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.app-hero__icon {
	width: clamp(140px, 20vw, 220px); height: clamp(140px, 20vw, 220px);
	font-size: 5rem; transform: rotate(-8deg);
	box-shadow: 0 30px 50px -20px color-mix(in srgb, var(--app-color) 75%, transparent);
	transition: transform .6s var(--ease);
}
.app-hero__icon:hover { transform: rotate(4deg) scale(1.03); }
.app-hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0; }
.app-hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800; color: color-mix(in srgb, var(--app-color) 70%, var(--ink)); margin: 4px 0 14px; }
.app-hero__lead { font-size: 1.15rem; max-width: 36em; }

.back-link {
	display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 18px;
	font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: none;
}
.back-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.back-link:hover { color: var(--brand-text); }
.back-link:hover .icon { transform: translateX(-3px); }

.store-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.store-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 20px 10px 16px; border-radius: 14px;
	background: var(--ink); color: var(--bg); text-decoration: none;
	transition: transform .25s var(--ease);
}
.store-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.store-btn .icon { width: 26px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.1rem; }
.store-btn small { font-size: .72rem; font-weight: 600; opacity: .8; }

@media (max-width: 640px) {
	.app-hero__inner { grid-template-columns: 1fr; }
	.app-hero__icon { width: 128px; height: 128px; font-size: 3.4rem; }
}

.app-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .app-layout { grid-template-columns: 1fr; } }

.info-card {
	position: sticky; top: 96px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px; box-shadow: var(--shadow);
}
.info-card__title { font-size: 1.15rem; margin-bottom: 14px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.link-list a {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
	color: var(--ink); text-decoration: none; transition: background-color .2s;
}
.link-list a:hover { background: var(--surface-2); }
.link-list .icon {
	width: 40px; height: 40px; padding: 9px; border-radius: 12px; flex-shrink: 0;
	background: color-mix(in srgb, var(--app-color, var(--brand)) 14%, transparent);
	color: color-mix(in srgb, var(--app-color, var(--brand)) 80%, var(--ink));
}
.link-list span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.link-list small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }

/* ---------- Seitenkopf / Rechtstexte ---------- */

.page-head { padding: clamp(40px, 6vw, 80px) 0 16px; }
.page-head--small { padding-bottom: 0; }
.page-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head__lead { font-size: 1.15rem; max-width: 40em; }

.legal-head { padding: clamp(32px, 5vw, 64px) 0 8px; }
.legal-head__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.legal-head__icon { width: 84px; height: 84px; transform: rotate(-8deg); }
.legal-head__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.legal-head__meta { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.legal-head .back-link { margin-bottom: 6px; }
.lang-switch {
	display: inline-flex; align-items: center; gap: 8px; align-self: start;
	padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
	font-weight: 700; color: var(--ink); text-decoration: none; background: var(--surface);
}
.lang-switch .icon { width: 18px; height: 18px; }
.lang-switch:hover { border-color: var(--brand); }
@media (max-width: 640px) {
	.legal-head__inner { grid-template-columns: auto 1fr; }
	.legal-head__icon { width: 64px; height: 64px; }
	.lang-switch { grid-column: 1 / -1; justify-self: start; }
}

.prose { max-width: 72ch; }
.prose--legal {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(24px, 4vw, 48px); max-width: 860px;
}
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose .legal-intro { font-size: 1.1rem; color: var(--muted); }
.prose section + section { margin-top: 2em; }
.prose section > h2:first-child { margin-top: 0; }
.prose section h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--brand); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.post-list { display: grid; gap: 16px; max-width: 760px; }
.post-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.post-item__title { font-size: 1.4rem; }
.post-item__title a { color: var(--ink); text-decoration: none; }

/* ---------- 404 ---------- */

.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; color: var(--ink); line-height: 1; margin: 0 0 16px; letter-spacing: -.04em; }
.error-code .twist { transform: rotate(-14deg); }

/* ---------- Fußzeile ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; }
.section--muted + .site-footer, .site-main + .site-footer { margin-top: 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer__brand p { color: var(--muted); margin: 8px 0 0; }
.site-footer .brand__logo { width: 150px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--brand-text); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
	color: var(--muted); font-size: .9rem;
}

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__stack { max-width: 320px; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* WordPress-Standardklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .9rem; }
.nav-links { display: flex; gap: 8px; margin-top: 24px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--brand); color: #fff; border-color: var(--brand); }
