/* ibosmarter — "Primetime Dashboard": dunkle SaaS-/Konsolen-Optik.
   Nur Systemschriften, keine externen Anfragen, keine Bilder. */

:root {
	--bg: #0b0e14;
	--surface: #141924;
	--surface-2: #1b2230;
	--surface-3: #222b3c;
	--ink: #eef2fa;
	--ink-2: #9aa7c2;
	--ink-3: #6c7793;
	--line: #232b3d;
	--violet: #8b5cf6;
	--violet-hover: #a378ff;
	--violet-ink: #ffffff;
	--lime: #c6ff3d;
	--lime-ink: #10200a;
	--ok: #4ade80;
	--radius: 10px;
	--radius-lg: 16px;
	--wrap: 1180px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--head-h: 72px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	color-scheme: dark;
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--head-h) + 1rem);
	scrollbar-color: var(--ink-3) var(--bg);
	hyphens: auto;
	-webkit-hyphens: auto;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: var(--violet-ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	color: var(--ink);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.3rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

b, strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.mono { font-family: var(--font-mono); }

.fine { color: var(--ink-3); font-size: 0.92rem; }
.fine a { font-weight: 600; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--lime); color: var(--lime-ink);
	padding: 0.75rem 1.1rem; border-radius: var(--radius);
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-main:focus { outline: none; }

.ibo-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Knöpfe ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 48px; padding: 0.75rem 1.3rem;
	border-radius: var(--radius); border: 1px solid transparent;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}
.btn:hover { color: inherit; }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-violet { background: var(--violet); color: var(--violet-ink); }
.btn-violet:hover { background: var(--violet-hover); color: var(--violet-ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); }

.btn-compact { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9rem; }

.trial-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin: 1.5rem 0; }
.btn-lang { color: var(--ink-2); }

/* ---------- Kopfbereich ---------- */

.site-head {
	position: sticky; top: 0; z-index: 50;
	height: var(--head-h);
	background: rgb(11 14 20 / 0.85);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }

.head-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.head-brand { flex: none; }
.head-nav { margin-left: auto; }
.head-actions { display: flex; align-items: center; gap: 0.6rem; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--lime); flex: none; box-shadow: 0 0 0.6em rgb(198 255 61 / 0.6); }
.custom-logo { max-height: 40px; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav-list a {
	color: var(--ink-2); text-decoration: none; font-weight: 600;
	padding: 0.4rem 0; border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list [aria-current="page"],
.nav-list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--lime); }

.nav-toggle {
	display: none; width: 42px; height: 42px;
	align-items: center; justify-content: center;
	background: transparent; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.head-nav {
		position: absolute; left: 0; right: 0; top: var(--head-h);
		background: var(--surface); border-bottom: 1px solid var(--line);
		padding: 0.5rem var(--gutter) 1.25rem;
		display: none;
	}
	.head-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 0.9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
	.nav-list [aria-current="page"], .nav-list .current-menu-item > a { border-bottom-color: var(--line); color: var(--lime); }
}

@media (max-width: 560px) {
	.head-actions .btn span:not(.screen-reader-text) { display: none; }
	.head-actions .btn { padding: 0.5rem 0.65rem; }
}

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

.section { padding: clamp(2.5rem, 6vh, 4.5rem) 0; }
.section-head { max-width: 38rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-2); }

.kicker {
	display: inline-block; color: var(--lime); font-family: var(--font-mono);
	font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.lead { color: var(--ink-2); font-size: 1.15rem; max-width: 42rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (max-width: 960px) { .three-col { grid-template-columns: 1fr; } }

.term.is-recommended { border-color: var(--lime); }

.prose :is(h2, h3) { margin-top: 1.5em; }
.prose :is(ul, ol) { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

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

.hero { padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(2rem, 5vh, 3.5rem); background: radial-gradient(120% 100% at 10% 0%, rgb(139 92 246 / 0.16), transparent 55%), var(--bg); }

.status-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.chip {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	padding: 0.4rem 0.85rem; font-size: 0.86rem; color: var(--ink-2);
	text-decoration: none;
}
a.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip b { color: var(--ink); }
.live { color: var(--lime); font-size: 0.7em; }

/* ---------- Kennzahlen ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; }
.stat-tile { background: var(--surface); padding: 1.25rem 1.1rem 1rem; position: relative; }
.stat-tile .num { color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.stat-tile .label { color: var(--ink-3); font-size: 0.85rem; margin-top: 0.2rem; }
.stat-tile .spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: 0.85rem; }
.stat-tile .spark i { display: block; flex: 1; height: 70%; background: linear-gradient(180deg, var(--lime), rgb(198 255 61 / 0.25)); border-radius: 1px; }

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

/* ---------- Geräte-Terminal ---------- */

.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.term-bar { display: flex; gap: 6px; padding: 0.7rem 0.9rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.term-body { padding: 0.5rem 1rem 1rem; }
.term-row { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; flex-wrap: wrap; }
.term-row:last-child { border-bottom: none; }
.term-row .path { color: var(--lime); }
.term-row .arrow { color: var(--ink-3); }
.term-row .apps { color: var(--ink-2); }

/* ---------- Preis-Konsole ---------- */

.console { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.console-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.6rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.console-tabs button {
	flex: 1; min-width: 4.5rem; padding: 0.55rem 0.5rem; border-radius: calc(var(--radius) - 2px);
	border: 1px solid transparent; background: transparent; color: var(--ink-2);
	font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.console-tabs button:hover { color: var(--ink); }
.console-tabs button.active { background: var(--violet); color: var(--violet-ink); }

.console-panel { display: none; padding: 0; }
.console-panel.is-active { display: block; }
/* Serverseitig ist immer genau ein Panel aktiv (ibo_plan_matrix-Default), daher
   ist der Preisstand ohne JavaScript korrekt sichtbar; alle übrigen Panels bleiben
   im Quelltext vorhanden und für Suchmaschinen crawlbar. JavaScript erlaubt nur den Wechsel. */

table.plan { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.plan th, table.plan td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.plan th { color: var(--ink-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
table.plan tr:last-child td { border-bottom: none; }
table.plan tr.best { background: rgb(139 92 246 / 0.08); }
table.plan .price { color: var(--ink); font-weight: 700; }
.tag-best { display: inline-block; margin-left: 0.5rem; background: var(--lime); color: var(--lime-ink); font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }

.btn-row {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.5rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.btn-row:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Protokoll (Ablauf) ---------- */

.log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.5rem 1.25rem; }
.log-line { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log-line:last-child { border-bottom: none; }
.log-tag { color: var(--lime); flex: none; font-size: 0.9rem; }
.log-text { color: var(--ink-2); }
.log-text b { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; }
.faq-item summary {
	padding: 1rem 0; cursor: pointer; color: var(--ink); font-weight: 600;
	list-style: none; display: flex; align-items: center; gap: 0.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--lime); font-family: var(--font-mono); flex: none; width: 1em; }
.faq-item[open] summary::before { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; color: var(--ink-2); }

/* ---------- Abschluss-CTA ---------- */

.close-cta { background: linear-gradient(180deg, var(--surface), var(--bg)); border-top: 1px solid var(--line); text-align: center; }
.close-cta .section-head { max-width: 36rem; margin-inline: auto; }
.close-cta .trial-buttons { justify-content: center; }

/* ---------- Fußbereich ---------- */

.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vh, 3.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.foot-brand p { color: var(--ink-3); font-size: 0.92rem; margin-top: 0.75rem; }
.foot-title { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; }
.foot-title-spaced { margin-top: 1.4rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.foot-col a:hover { color: var(--ink); }
.foot-extra { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.foot-base { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.foot-base p { color: var(--ink-3); font-size: 0.82rem; max-width: 60rem; }
.foot-disclaimer { margin-top: 0.4rem; }

@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head { padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(1.5rem, 3vh, 2rem); background: radial-gradient(120% 100% at 10% 0%, rgb(139 92 246 / 0.12), transparent 55%), var(--bg); }

.crumbs { margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; font-size: 0.85rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

.updated { color: var(--ink-3); font-size: 0.85rem; }

/* ---------- Installationsanleitung Sprungmarken ---------- */

.jump-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 0 1.5rem; }
a.chip.mono:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- 404 / Suche / Archiv ---------- */

.nf { text-align: center; padding: 2rem 0; }
.nf-code { color: var(--surface-3); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.nf h1 { margin-bottom: 0.5rem; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.75rem 0; padding: 0; }
.nf .search-form { max-width: 26rem; margin-inline: auto; }

.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.post-item { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.post-title { margin-bottom: 0.3rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--lime); }
.post-excerpt { color: var(--ink-2); }

.empty { text-align: center; padding: 2rem 0; }
.empty-links { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0; }

.search-form label { display: block; color: var(--ink-2); font-size: 0.9rem; margin-bottom: 0.5rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input[type="search"] {
	flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink); padding: 0.7rem 0.9rem; font: inherit;
}
.search-row input[type="search"]:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }

.page-links { margin-top: 2rem; font-size: 0.9rem; color: var(--ink-3); }
.page-links a { margin-left: 0.4rem; }

/* ---------- Formulare: Fokus & allgemeine Zustände ---------- */

button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
