/* ==========================================================================
   vfoc.de – Website-Layout (Header, Sektionen, Hero, Mockups, Preise, Footer)
   Benötigt tokens.css + components.css.
   ========================================================================== */

/* ---- Header ---- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
	color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
	padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit;
	display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Dropdown „Funktionen“ */
.dropdown { position: relative; }
.dropdown-panel {
	position: absolute; top: calc(100% + 10px); left: -16px; width: 600px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg); padding: 10px; display: none;
	grid-template-columns: 1fr 1fr; gap: 2px;
}
.dropdown-panel.open { display: grid; }
.dropdown-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item .icon-box { width: 36px; height: 36px; }
.dropdown-item .icon { width: 18px; height: 18px; }
.dropdown-item b { display: block; font-size: .93rem; }
.dropdown-item small { display: block; color: var(--text-muted); font-size: .83rem; line-height: 1.4; }
.dropdown-footer { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 6px; padding: 10px 12px 4px; font-size: .9rem; }

/* Theme-Umschalter */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile Navigation */
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		/* Header hat backdrop-filter und ist damit Bezugsrahmen für position:fixed – daher top:100% statt inset */
		display: none; position: fixed; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); z-index: 49;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: var(--bg); padding: 16px 20px 32px; overflow-y: auto; margin: 0;
	}
	.nav.open { display: flex; }
	.nav-link { padding: 12px; font-size: 1.05rem; justify-content: space-between; }
	.nav-sep { display: none; }
	.dropdown-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; background: none; }
	.nav-actions { flex-direction: column; align-items: stretch; margin-top: 12px; }
	.nav-actions .theme-toggle { align-self: flex-start; }
	body.nav-open { overflow: hidden; }
}

/* ---- Sektionen ---- */
.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p:last-child { color: var(--text-muted); margin-bottom: 0; }
.section-more { margin-top: var(--space-6); }
.section-head.center + .section-more, .center .section-more { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 80px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -160px 0 auto; height: 620px; background: var(--glow); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 .accent { color: var(--accent); }
.hero .lead { max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--text-muted); font-size: var(--fs-sm); }
.hero-points li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.page-hero { padding: 64px 0 48px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 520px; background: var(--glow); pointer-events: none; }
.page-hero .container { position: relative; }
.breadcrumb { font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---- Geräte & Screenshot-Platzhalter ---- */
.visual { position: relative; padding-bottom: 36px; }
.device-browser { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.device-phone {
	position: absolute; right: -8px; bottom: 0; width: 23%; min-width: 120px;
	border: 7px solid #0b1120; border-radius: 26px; background: var(--surface);
	box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (max-width: 560px) { .device-phone { display: none; } }
.status-chip {
	position: absolute; left: -10px; bottom: 56px; display: flex; align-items: center; gap: 8px;
	background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
	border-radius: var(--radius-pill); padding: 8px 14px; font-weight: 700; font-size: var(--fs-sm);
}
.status-chip .dot { color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
@media (max-width: 560px) { .status-chip { left: 8px; } }

/* Platzhalter, bis echte Screenshots aus scripts/bilder.sh vorliegen (data-bild = Dateiname ohne Endung) */
.shot-ph {
	aspect-ratio: 16 / 10; display: grid; place-content: center; gap: 6px; text-align: center;
	background:
		linear-gradient(135deg, var(--accent-soft), transparent 60%),
		repeating-linear-gradient(0deg, transparent 0 23px, var(--border) 23px 24px),
		repeating-linear-gradient(90deg, transparent 0 23px, var(--border) 23px 24px),
		var(--bg-alt);
	color: var(--text-dim); font-size: var(--fs-sm);
}
.shot-ph b { color: var(--text-muted); font-size: 1rem; }
.shot-ph code { color: var(--accent); }
.device-phone .shot-ph { aspect-ratio: 9 / 19.5; font-size: .7rem; }

/* HTML-App-Ansicht (Hero, bis Screenshots vorliegen) */
.app-mock { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; font-size: 12px; }
.app-mock aside { background: var(--bg); border-right: 1px solid var(--border); padding: 14px 10px; }
.app-mock aside b { display: block; color: var(--text-dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin: 12px 6px 6px; }
.app-mock aside b:first-child { margin-top: 0; }
.app-mock aside span { display: block; padding: 6px 8px; border-radius: 6px; color: var(--text-muted); }
.app-mock aside span.on { background: var(--accent-soft); color: var(--accent); }
.app-mock main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.app-mock .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-mock .kpi { padding: 10px; }
.app-mock .kpi strong { font-size: 18px; }
.app-mock .rows { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.app-mock .rows div { display: grid; grid-template-columns: 64px 1fr 56px 78px; gap: 6px; padding: 7px 10px; border-top: 1px solid var(--border); align-items: center; }
.app-mock .rows div:first-child { border: 0; color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.app-mock .badge { font-size: 10px; padding: 0 7px; }
@media (max-width: 560px) { .app-mock { grid-template-columns: 1fr; } .app-mock aside { display: none; } }

/* ---- Leisten ---- */
.logo-strip { border-block: 1px solid var(--border); background: var(--bg-alt); padding: 22px 0; }
.logo-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--text-dim); font-weight: 700; letter-spacing: .03em; }
.logo-strip .label { color: var(--text-muted); font-weight: 500; }
.fact-strip { border-block: 1px solid var(--border); background: var(--surface); }
.fact-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact-strip .fact { padding: 22px 18px; border-left: 1px solid var(--border); }
.fact-strip .fact:first-child { border-left: 0; }
.fact-strip strong { display: block; font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
.fact-strip span { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .fact-strip .container { grid-template-columns: 1fr 1fr; } .fact-strip .fact:nth-child(3) { border-left: 0; } }

/* ---- Schritte ---- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--space-5) 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 58px; }
.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--accent-strong); color: var(--on-accent);
	display: grid; place-items: center; font-weight: 800;
}
.steps strong { display: block; }
.steps span { color: var(--text-muted); }

/* ---- Abwechselnde Split-Blöcke ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: var(--space-9); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

/* ---- Tabs-Vorschau ---- */
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin-top: var(--space-6); }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }

/* ---- Preise ---- */
.pricing-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; margin-bottom: var(--space-6); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; }
.plan.ist-hervorgehoben { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong) inset; }
.plan h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.plan .desc { color: var(--text-dim); font-size: .88rem; min-height: 2.6em; margin: 0; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 14px 0 0; line-height: 1.2; }
.plan .price small { font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.plan .alt { color: var(--text-dim); font-size: .82rem; margin: 4px 0 0; min-height: 1.3em; }
.plan .users { margin: 14px 0 20px; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; font-size: .93rem; }
.plan .btn { margin-top: auto; }
.plan .btn-plan { border-color: var(--border-strong); }
.plan.ist-hervorgehoben .btn-plan { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.pricing-note { color: var(--text-dim); font-size: .88rem; margin-top: 20px; }

/* ---- CTA ---- */
.cta-band { padding: var(--space-8) 0; text-align: center; background: linear-gradient(135deg, #0c4a6e, #082f49); color: #fff; }
.cta-band p { color: #bae6fd; max-width: 40em; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }
.cta-band .btn-light { background: #fff; color: #0c4a6e; }
.cta-band .btn-light:hover { background: #e0f2fe; }
.cta-band .btn-outline-light { border-color: rgb(255 255 255 / .5); color: #fff; }
.cta-band .btn-outline-light:hover { border-color: #fff; }

/* ---- Rechtstexte & Fließtext ---- */
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { color: var(--text); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; color: var(--text-muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-nav strong { display: block; color: var(--text); margin-bottom: 10px; }
.footer-nav a { display: block; padding: 3px 0; color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-dim); font-size: .85rem; }

/* ---- Druck (Preisliste) ---- */
@media print {
	:root { color-scheme: light; --bg: #fff; --surface: #fff; --text: #000; --text-muted: #333; --border: #ccc; }
	.site-header, .site-footer, .no-print, .cta-band { display: none !important; }
	.section { padding: 0; }
}
