/*
Theme Name: MBits Software
Theme URI: https://software.mb-its.de
Author: MBits
Author URI: https://www.mb-its.de
Description: Code-Editor-Design für die Software-Seite von MBits aus Goslar. Dunkler Editor-Hintergrund, Monospace-Schrift, Akzente in den MBits-Farben Hellblau und Dunkelblau. Schwester-Theme von MBits Secure.
Version: 0.4.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbits-software
*/

/* ------------------------------------------------------------------
   Design Tokens – MBits-Farben #1170CF (Hellblau) und #210F63 (Dunkelblau)
   Abgeleitet: Editor-Hintergrund, Flächen, Syntax-Farben (alle Blau/Violett).
------------------------------------------------------------------ */
:root {
	--blue: #1170cf;
	--navy: #210f63;
	--blue-light: #5aa9f0;   /* Links/Akzente auf dunklem Grund (Kontrast) */

	--bg: #0b0a1f;
	--bg-2: #110f2e;
	--panel: #14123a;
	--bar: #08071a;
	--text: #e6e9f5;
	--muted: #9aa0bd;
	--line: rgba(90, 169, 240, .28);
	--line-soft: rgba(90, 169, 240, .12);
	--glow: 0 0 22px rgba(17, 112, 207, .45);

	/* Syntax */
	--c-key: #b7a8ff;
	--c-str: #8fd3ff;
	--c-fn: #5aa9f0;
	--c-com: #6f7598;

	--font: "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--wrap: 1180px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--header-h: 72px;
	--radius: 10px;
}

/* ------------------------------------------------------------------
   Basis
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
	background:
		radial-gradient(900px 520px at 88% -8%, rgba(33, 15, 99, .95), transparent 65%),
		radial-gradient(700px 520px at -10% 45%, rgba(17, 112, 207, .16), transparent 65%),
		var(--bg);
	background-attachment: fixed;
}
::selection { background: var(--blue); color: #fff; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue-light); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; color: #fff; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 2000; top: .5rem; left: .5rem;
	background: var(--blue); color: #fff; padding: .75rem 1rem; font-weight: 700;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: rgba(33, 15, 99, .35); border-block: 1px solid var(--line-soft); }
.eyebrow { display: inline-block; color: var(--c-com); font-size: .9rem; margin-bottom: .6rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* Platzhalter: deutlich als TODO sichtbar, damit nichts Unfertiges unbemerkt live geht */
.todo { color: var(--c-com); font-style: italic; }
.todo::before { content: "/* TODO: "; color: #f0b35a; font-style: normal; }
.todo::after { content: " */"; color: #f0b35a; font-style: normal; }

/* Blinkender Cursor */
.cursor::after { content: "▍"; display: inline-block; margin-left: .08em; color: var(--blue-light); animation: blink 1.1s steps(2, start) infinite; font-style: normal; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: var(--blue-light); vertical-align: text-bottom; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem;
	border: 1px solid var(--blue); border-radius: 6px; background: transparent; color: var(--blue-light);
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.btn::before { content: "→"; order: 2; transition: transform .15s ease; }
.btn:hover { background: var(--blue); color: #fff; box-shadow: var(--glow); transform: translateY(-2px); }
.btn:hover::before { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--outline { border-color: var(--line); }

/* ------------------------------------------------------------------
   Topbar
------------------------------------------------------------------ */
.topbar { background: var(--bar); color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar__phone { color: var(--muted); text-decoration: none; }
.topbar__phone span { color: var(--c-com); }
.topbar__phone:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }

.social { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--blue-light); transition: background .2s, color .2s; }
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------------------------
   Header / Navigation (Menüpunkte als Editor-Tabs)
------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(11, 10, 31, .9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line); transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(17, 112, 207, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; transition: min-height .25s ease; }
.site-header.is-scrolled .site-header__inner { min-height: 60px; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--navy), var(--blue), var(--blue-light)); transform: scaleX(0); transform-origin: left; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand .custom-logo, .brand__mark { width: 46px; height: 46px; object-fit: contain; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand__mark, .brand:hover .custom-logo { transform: rotate(-12deg) scale(1.08); }
/* Mitgeliefertes Puzzle-Logo (grün, aus MBits Secure, Hintergrund freigestellt) per Farbdrehung ins MBits-Blau,
   dazu ein blauer Glow, der beim Überfahren aufleuchtet. Ein im Customizer hochgeladenes Logo wird nicht umgefärbt. */
.brand__mark {
	filter: hue-rotate(140deg) saturate(1.1) drop-shadow(0 0 4px rgba(90, 169, 240, .75)) drop-shadow(0 0 12px rgba(17, 112, 207, .55));
	transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), filter .3s ease;
}
.brand:hover .brand__mark { filter: hue-rotate(140deg) saturate(1.2) drop-shadow(0 0 6px rgba(90, 169, 240, .95)) drop-shadow(0 0 18px rgba(17, 112, 207, .8)); }
.brand .custom-logo { filter: drop-shadow(0 0 10px rgba(17, 112, 207, .5)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.brand__name span { color: var(--blue-light); }
.brand__tag { font-size: .75rem; color: var(--muted); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; padding: 0; color: var(--blue-light); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; margin: auto; transition: transform .25s ease, background .2s ease; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { position: relative; display: block; padding: .55rem .9rem; color: var(--muted); text-decoration: none; font-weight: 700; border-radius: 6px 6px 0 0; transition: background .15s, color .15s; }
.main-nav a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -2px; height: 2px; background: var(--blue-light); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(17, 112, 207, .14); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; background: var(--panel); }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { transform: scaleX(1); }
.main-nav .sub-menu { display: none; }

@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
	.main-nav a { padding: .85rem 1rem; border-radius: 6px; }
	.main-nav a::after { display: none; }
	.main-nav .menu-button > a { text-align: center; }
	.brand__tag { display: none; }
}

/* ------------------------------------------------------------------
   Editor-Fenster
------------------------------------------------------------------ */
.editor { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 70px -35px rgba(17, 112, 207, .6); overflow: hidden; }
.editor__bar { display: flex; align-items: stretch; gap: 0; background: var(--bar); border-bottom: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); overflow: hidden; }
.editor__dots { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .9rem; }
.editor__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(154, 160, 189, .35); }
.editor__dots i:first-child { background: var(--blue); }
.editor__tab { padding: .55rem .95rem; border-right: 1px solid var(--line-soft); white-space: nowrap; }
.editor__tab.is-active { background: var(--panel); color: #fff; box-shadow: inset 0 2px 0 var(--blue-light); }

.code { margin: 0; padding: 1.1rem 1.2rem 1.3rem 0; list-style: none; counter-reset: ln; font-size: .92rem; line-height: 1.75; overflow-x: auto; }
.code li { counter-increment: ln; white-space: pre; }
.code li::before { content: counter(ln); display: inline-block; width: 3rem; padding-right: 1.1rem; text-align: right; color: var(--c-com); opacity: .7; user-select: none; }
.code li.in::before { margin-right: 2ch; }
.js [data-code] .is-hidden { visibility: hidden; }
.c-key { color: var(--c-key); }
.c-str { color: var(--c-str); }
.c-fn { color: var(--c-fn); }
.c-com { color: var(--c-com); font-style: italic; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.hero__grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .6;
	background-image: radial-gradient(rgba(90, 169, 240, .22) 1px, transparent 1.5px);
	background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 7, 26, .6); font-size: .82rem; margin-bottom: 1.4rem; color: var(--text); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 0 rgba(90, 169, 240, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(90, 169, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 169, 240, 0); } }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; margin-bottom: .5em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-light), #b7a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em.cursor::after { -webkit-text-fill-color: var(--blue-light); }
.hero__lead { font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--text); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__editor { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.hero__editor:hover { transform: none; }
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__editor { transform: none; }
	.code { font-size: .8rem; }
	.code li::before { width: 2.2rem; padding-right: .7rem; }
}
@media (max-width: 480px) {
	.code { font-size: .72rem; padding-right: .6rem; }
	.code li::before { width: 1.9rem; padding-right: .6rem; }
	.editor__tab:nth-child(n+4) { display: none; }
}

/* ------------------------------------------------------------------
   Produkt-Karten
------------------------------------------------------------------ */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--blue-light); box-shadow: 0 26px 60px -26px rgba(17, 112, 207, .7); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem; }
.card h3 { font-size: 1.6rem; margin-bottom: .15em; }
.card__sub { color: var(--blue-light); font-weight: 700; }
.card .btn { margin-top: auto; align-self: flex-start; }
.glow { --mx: 50%; --my: 50%; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(340px circle at var(--mx) var(--my), rgba(90, 169, 240, .16), transparent 60%); }
.glow:hover::before { opacity: 1; }

/* Ablauf */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); list-style: none; margin: 0; padding: 0; }
.steps li { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem; background: rgba(8, 7, 26, .45); transition: border-color .2s, transform .2s; }
.steps li:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.steps__no { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: .6rem; color: var(--c-com); }
.steps li:hover .steps__no { color: var(--blue-light); }
.steps h3 { margin-bottom: .3em; color: var(--c-fn); }
.steps p { color: var(--muted); margin: 0; }

/* CTA */
.cta-band { text-align: center; border-top: 1px solid var(--line); background: radial-gradient(700px 300px at 50% 0%, rgba(17, 112, 207, .35), transparent 70%), var(--navy); }
.cta-band h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); }
.cta-band p { color: var(--text); max-width: 38rem; margin-inline: auto; }
.cta-band .btn { margin-top: 1rem; }

/* ------------------------------------------------------------------
   Inhaltsseiten
------------------------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); background: radial-gradient(800px 260px at 90% -30%, rgba(17, 112, 207, .35), transparent 65%), var(--navy); }
.page-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero .prompt { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.page-hero .prompt span { color: var(--blue-light); }
.page-hero .entry-meta { color: var(--muted); margin-top: .75rem; }

.content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry { max-width: 820px; margin-inline: auto; }
.entry > * + * { margin-top: 1.2em; }
.entry:has(.team-grid) { max-width: var(--wrap); }
.entry h2 { margin-top: 1.8em; }
.entry h2::before { content: "# "; color: var(--c-com); }
.entry > h2:first-child { margin-top: 0; }
.entry ul { list-style: none; padding-left: 0; }
.entry ul li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.entry ul li::before { content: "–"; position: absolute; left: 0; color: var(--blue-light); font-weight: 700; }
.entry ol { padding-left: 1.6rem; }
.entry ol li::marker { color: var(--blue-light); font-weight: 700; }
.entry img { border-radius: var(--radius); }
.entry blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-left: 3px solid var(--blue); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.entry th { color: var(--blue-light); }
.entry .alignwide { max-width: min(100vw - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.entry .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry .btn { color: var(--blue-light); }
.entry .btn--primary, .entry .btn:hover { color: #fff; }
.entry code { background: var(--panel); color: var(--c-str); padding: .1em .4em; border-radius: 4px; }
.entry pre { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.2rem; overflow-x: auto; }
.callout { padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-left: 3px solid var(--blue-light); border-radius: var(--radius); background: var(--panel); }

/* Team (gleiche Klassen wie bei MBits Secure, damit Seiteninhalte übertragbar sind) */
.team-photo { margin: 0 0 2.5rem; }
.team-photo img { width: 100%; }
.team-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.team-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.1rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); transition: transform .2s, border-color .2s; }
.team-card:hover { transform: translateY(-3px); border-color: var(--blue-light); }
.team-card img { width: 140px; height: 147px; flex: none; object-fit: cover; border-radius: 6px; }
.team-card h3 { margin-bottom: .5rem; }
.team-card ul { margin: 0; font-size: .92rem; }
.team-card ul li { color: var(--muted); }
@media (max-width: 480px) { .team-card { flex-direction: column; align-items: flex-start; } .team-card img { width: 100%; height: auto; } }

/* Formulare */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: .75rem 1rem; font: inherit; color: var(--text); background: var(--bar); border: 1px solid var(--line); border-radius: 6px;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-light); outline: 2px solid var(--blue-light); outline-offset: 1px; }
input[type="submit"], button[type="submit"], .wp-block-button__link, .wpcf7-submit {
	padding: .8rem 1.4rem; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: #fff; border-color: #fff; color: var(--navy); }
label { display: block; margin-bottom: .3rem; color: var(--muted); }

/* Beiträge */
.post-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.post-card { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.post-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card__body { padding: 1.4rem; }
.post-card h2 { font-size: 1.25rem; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-card h2 a:hover { color: var(--blue-light); }
.post-card time { font-size: .85rem; color: var(--muted); }
.pagination, .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.page-numbers { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.error-404 { text-align: center; }
.error-404__code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--blue-light), #b7a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------
   Footer + Statusleiste
------------------------------------------------------------------ */
.site-footer { background: var(--bar); color: var(--muted); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 3rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; color: #fff; }
.site-footer .footer__brand { color: #fff; }
.site-footer .footer__brand:hover { text-decoration: none; }
.site-footer .btn { white-space: nowrap; }
.footer__brand .brand__mark, .footer__brand .custom-logo { width: 42px; height: 42px; }
.site-footer h2 { font-size: .9rem; color: var(--c-com); margin-bottom: 1rem; font-weight: 400; }
.site-footer address { font-style: normal; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__social { margin-top: 1.1rem; }
.footer__social .social { margin-left: -.35rem; }
.statusbar { background: var(--blue); color: #fff; font-size: .8rem; }
.statusbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1.5rem; min-height: 30px; padding-block: .25rem; }
.statusbar__right { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.statusbar__ok { margin-left: 1rem; opacity: .85; }
.site-footer .statusbar a { color: #fff; }
.site-footer .statusbar a:hover { color: #fff; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Einblend-Animation (nur mit JS)
------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Menüs aus dem Backend: Button-Hervorhebung, Untermenüs */
.main-nav li { position: relative; }
.main-nav .menu-button > a { border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #fff; margin-left: .5rem; }
.main-nav .menu-button > a::after { display: none; }
.main-nav .menu-button > a:hover { background: #fff; color: var(--navy); }
.main-nav .menu-item-has-children { display: flex; align-items: center; }
.sub-toggle { width: 1.6rem; height: 1.6rem; margin-left: -.4rem; border: 0; background: none; color: var(--blue-light); cursor: pointer; padding: 0; font: inherit; }
.sub-toggle::before { content: "▾"; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; flex-direction: column; align-items: stretch; gap: .1rem; padding: .4rem; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(17, 112, 207, .6); }
.main-nav .sub-menu a { white-space: nowrap; border-radius: 6px; }
.main-nav .sub-menu a::after { display: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.is-open > .sub-menu { display: flex; }
@media (max-width: 1000px) {
	.main-nav .menu-item-has-children { flex-wrap: wrap; }
	.main-nav .menu-item-has-children > a { flex: 1; }
	.sub-toggle { width: 2.6rem; height: 2.6rem; margin: 0; }
	.main-nav .sub-menu { position: static; flex-basis: 100%; box-shadow: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; margin-left: 1rem; padding: 0 0 0 .5rem; background: none; }
	.main-nav li:hover > .sub-menu { display: none; }
	.main-nav li.is-open > .sub-menu { display: flex; }
	.main-nav .menu-button > a { margin: .5rem 0 0; }
}

/* ------------------------------------------------------------------
   Startseite: Puzzle-Satz, 4 Leistungskarten, 5 Schritte, Vorteile (seit 0.2.0)
------------------------------------------------------------------ */
.hero__lead strong { color: #fff; }
.puzzle-band { padding-block: clamp(2.2rem, 5vw, 3.2rem); border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(33, 15, 99, .55), rgba(17, 112, 207, .18)); }
.puzzle-band__text { margin: 0 auto; max-width: 52rem; text-align: center; font-size: clamp(1.1rem, 2.3vw, 1.5rem); line-height: 1.5; color: var(--text); }
.puzzle-band__text::before { content: "/* "; color: var(--c-com); }
.puzzle-band__text::after { content: " */"; color: var(--c-com); }
.puzzle-band__text strong { color: var(--blue-light); }

.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards--4 { grid-template-columns: 1fr; } }
.cards--4 .card h3 { font-size: 1.2rem; margin-bottom: .6em; }
.cards--4 .card p { color: var(--muted); font-size: .95rem; }

.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) {
	.steps--5 { grid-template-columns: 1fr; gap: .8rem; }
	.steps--5 li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; align-items: baseline; padding: 1.1rem 1.25rem; }
	.steps--5 .steps__no { grid-row: span 2; font-size: 1.8rem; margin: 0; }
}
.steps--5 h3 { font-size: 1.05rem; }
.steps--5 p { font-size: .92rem; }
.section-more { margin: 2rem 0 0; }

.benefits { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); list-style: none; margin: 0; padding: 0; }
.benefits li { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line-soft); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(8, 7, 26, .45); transition: border-color .2s, transform .2s; }
.benefits li:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.benefits code { font: inherit; font-weight: 700; color: var(--blue-light); }
.benefits span { color: var(--muted); font-size: .95rem; }

/* Inhaltsseiten: Leistungs- und Schrittblöcke */
.entry .lead { font-size: 1.15rem; color: #fff; }
.entry .service { scroll-margin-top: 90px; }
.entry .steps-list { list-style: none; padding: 0; counter-reset: st; }
.entry .steps-list li { counter-increment: st; position: relative; padding: 1rem 1.2rem 1rem 4rem; margin-bottom: .8rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.entry .steps-list li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 1.1rem; top: .95rem; font-weight: 700; color: var(--blue-light); }
.entry .steps-list li::marker { content: none; }
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Startseite: Software + KI (seit 0.3.0)
------------------------------------------------------------------ */
.rule { position: relative; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem 1.25rem 1.6rem; border: 1px solid var(--line); border-left: 3px solid var(--c-key); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); }
.rule__label { display: block; margin-bottom: .35rem; color: var(--c-com); font-size: .85rem; }
.rule p { margin: 0; }
.rule strong { color: var(--c-key); }
.ki-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .ki-grid { grid-template-columns: 1fr; } }
.ki-tile { padding: 1.3rem 1.4rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(8, 7, 26, .5); transition: border-color .2s, transform .2s, box-shadow .2s; }
.ki-tile:hover { border-color: var(--c-key); transform: translateY(-3px); box-shadow: 0 20px 50px -28px rgba(183, 168, 255, .6); }
.ki-tile code { display: inline-block; margin-bottom: .7rem; padding: .15rem .55rem; border-radius: 4px; background: rgba(183, 168, 255, .12); color: var(--c-key); font: inherit; font-size: .85rem; }
.ki-tile h3 { font-size: 1.1rem; margin-bottom: .4em; }
.ki-tile p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Inhaltsseiten: Beispiele */
.entry .examples { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding: 0; }
.entry .examples li { padding: 1rem 1.2rem; margin: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.entry .examples li::before { content: none; }
.entry .examples strong { display: block; color: var(--blue-light); margin-bottom: .25rem; }

/* Vorteile: erster Punkt (Usability) hervorgehoben, volle Breite (seit 0.3.1) */
.benefits li:first-child { grid-column: 1 / -1; border-left-color: var(--c-key); background: linear-gradient(90deg, rgba(183, 168, 255, .12), rgba(8, 7, 26, .45) 70%); }
.benefits li:first-child code { color: var(--c-key); font-size: 1.1rem; }
.benefits li:first-child span { color: var(--text); font-size: 1.02rem; }

/* ------------------------------------------------------------------
   Seite „Fakten“ und Kennzahlen im Hero (seit 0.4.0)
------------------------------------------------------------------ */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.facts__item { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.facts__item strong { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: .45rem; background: linear-gradient(90deg, var(--blue-light), var(--c-key)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts__item span { color: var(--muted); font-size: .92rem; }
.entry .platforms { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .entry .platforms { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .entry .platforms { grid-template-columns: 1fr; } }
.platform { padding: 1.1rem 1.2rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(8, 7, 26, .5); transition: border-color .2s, transform .2s; }
.platform:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.platform code { display: inline-block; margin-bottom: .5rem; font-size: .8rem; }
.entry .platform h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.entry .platform p { margin: 0; color: var(--muted); font-size: .92rem; }

.hero__stats { color: inherit; text-decoration: none; }
.hero__stats:hover strong { color: var(--blue-light); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.5rem; line-height: 1.15; color: #fff; }
.hero__stats strong em { font-style: normal; color: var(--blue-light); }
.hero__stats span { font-size: .82rem; color: var(--muted); }
.hero__stats div:last-child strong { font-size: 1.15rem; line-height: 1.6; }
