/* JOX IT marketing site — styles.css
   ----------------------------------------------------------------
   Pure CSS, no framework. Two themes via custom properties:
   light is the default body theme, dark is applied to the .dark-section
   block (hero + footer) using the same variable names.
*/

:root {
	/* Light theme (page default) */
	--bg:                #ffffff;
	--surface:           #f7f8fa;
	--text-primary:      #0e1525;
	--text-secondary:    #5a6478;
	--border:            #e3e6ec;
	--brand:             #2470ff;
	--brand-hover:       #0d3b9c;

	/* Typography scale */
	--font-sans:         -apple-system, BlinkMacSystemFont, "Segoe UI",
	                     Roboto, Oxygen, Ubuntu, Cantarell,
	                     "Helvetica Neue", Arial, sans-serif;

	/* Spacing rhythm */
	--space-xs:          0.5rem;
	--space-s:           1rem;
	--space-m:           1.5rem;
	--space-l:           2.5rem;
	--space-xl:          4rem;
	--space-2xl:         6rem;

	/* Layout */
	--container-max:     1120px;
	--radius:            6px;
}

/* Dark-section override: same variable names, different values. */
.dark-section {
	--bg:                #0d1326;
	--surface:           #1a2230;
	--text-primary:      #ffffff;
	--text-secondary:    #b8c0d4;
	--border:            #2a3447;
	--brand:             #4a8aff;
	--brand-hover:       #80aaff;
}

/* ---------- Reset & base ---------- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-primary);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--brand);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--brand-hover);
}

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

/* ---------- Layout utilities ---------- */

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--space-m);
	padding-right: var(--space-m);
}

.dark-section {
	background: var(--bg);
	color: var(--text-primary);
}

/* ---------- Top bar ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--border);
	backdrop-filter: saturate(180%) blur(8px);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-m);
	height: 64px;
}

.topbar-logo {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
	color: #0e1525;
}

.topbar-logo .logo-it {
	color: var(--brand);
}

.topbar-nav {
	display: flex;
	align-items: center;
	gap: var(--space-l);
}

.topbar-nav a {
	color: #0e1525;
	font-weight: 500;
	font-size: 0.95rem;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
	color: var(--brand);
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: var(--space-m);
}

.lang-switch {
	display: inline-flex;
	gap: var(--space-xs);
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.lang-switch a {
	color: var(--text-secondary);
}

.lang-switch .lang-current {
	color: #0e1525;
	font-weight: 600;
}

.lang-switch .lang-sep {
	color: var(--border);
}

/* ---------- Mobile burger menu (pure CSS via hidden checkbox) ---------- */

/* The checkbox is the toggle, the label is the burger button, the nav follows. */

/* Desktop default: burger hidden, nav visible as flex item (uses existing .topbar-nav styles) */
.burger {
	display: none;
}

@media (max-width: 720px) {
	/* On mobile: hide the inline nav by default, show the burger */
	.topbar-nav {
		display: none;
	}

	.burger {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		cursor: pointer;
		border-radius: 6px;
		user-select: none;
	}

	.burger:hover,
	.mobile-nav-toggle:focus-visible + .burger {
		background: var(--surface);
	}

	.burger-icon,
	.burger-icon::before,
	.burger-icon::after {
		display: block;
		width: 22px;
		height: 2px;
		background: #0e1525;
		border-radius: 1px;
	}

	.burger-icon {
		position: relative;
	}

	.burger-icon::before,
	.burger-icon::after {
		content: '';
		position: absolute;
		left: 0;
	}

	.burger-icon::before {
		top: -7px;
	}

	.burger-icon::after {
		top: 7px;
	}

	/* When checkbox is checked, show nav as overlay */
	.mobile-nav-toggle:checked ~ .topbar-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: calc(100% + 0.5rem);
		right: 1rem;
		min-width: 220px;
		padding: 1rem 1.25rem;
		background: white;
		border: 1px solid var(--border);
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
		gap: 0.85rem;
		z-index: 100;
	}

	.mobile-nav-toggle:checked ~ .topbar-nav a {
		padding: 0.3rem 0;
	}
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.4rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease,
	            color 0.15s ease, transform 0.05s ease;
	text-decoration: none;
}

.btn-primary {
	background: var(--brand);
	color: #ffffff;
	border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--brand-hover);
	border-color: var(--brand-hover);
	color: #ffffff;
}

.btn-ghost {
	background: transparent;
	color: var(--text-primary);
	border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	border-color: var(--text-primary);
	color: var(--text-primary);
}

.dark-section .btn-ghost {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
}

.dark-section .btn-ghost:hover,
.dark-section .btn-ghost:focus-visible {
	border-color: #ffffff;
	color: #ffffff;
}

.btn:active {
	transform: translateY(1px);
}

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

.hero {
	padding: var(--space-2xl) 0 var(--space-xl);
	position: relative;
	overflow: hidden;
}

.hero::before {
	/* subtle radial accent in the corner */
	content: "";
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(74, 138, 255, 0.18) 0%,
	                             transparent 70%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	max-width: 720px;
}

.hero-eyebrow {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: var(--space-m);
}

.hero-title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 var(--space-m);
	color: var(--text-primary);
}

.hero-subtitle {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.55;
	color: var(--text-secondary);
	margin: 0 0 var(--space-l);
	max-width: 620px;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
	margin-bottom: var(--space-l);
}

.hero-trust {
	font-size: 0.9rem;
	color: var(--text-secondary);
	border-top: 1px solid var(--border);
	padding-top: var(--space-m);
	max-width: 620px;
}

.hero-trust strong {
	color: var(--text-primary);
	font-weight: 600;
}

/* ---------- Generic section ---------- */

.section {
	padding: var(--space-2xl) 0;
}

.section-eyebrow {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: var(--space-s);
}

.section-title {
	font-size: clamp(1.6rem, 3.2vw, 2.3rem);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-m);
	color: var(--text-primary);
	max-width: 720px;
}

.section-intro {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin: 0 0 var(--space-xl);
	max-width: 720px;
}

/* ---------- Capabilities (2x2 grid) ---------- */

.capabilities-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-m);
}

@media (max-width: 720px) {
	.capabilities-grid {
		grid-template-columns: 1fr;
	}
}

.capability-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-l);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.capability-card:hover {
	border-color: var(--brand);
	transform: translateY(-2px);
}

.capability-tagline {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: var(--space-xs);
}

.capability-title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-s);
	color: var(--text-primary);
}

.capability-body {
	color: var(--text-secondary);
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0;
}

/* ---------- Prose section (About) ---------- */

.prose {
	max-width: 720px;
	font-size: 1.05rem;
	color: var(--text-secondary);
}

.prose p {
	margin: 0 0 var(--space-m);
}

.prose strong {
	color: var(--text-primary);
	font-weight: 600;
}

/* ---------- Quote block ---------- */

.quote-block {
	max-width: 800px;
	margin: 0 auto;
	padding: var(--space-l) var(--space-m);
	text-align: center;
}

.quote-body {
	font-size: clamp(1.2rem, 2.3vw, 1.55rem);
	line-height: 1.45;
	font-style: italic;
	color: var(--text-primary);
	margin: 0 0 var(--space-m);
	position: relative;
}

.quote-body::before {
	content: "\201C";
	display: block;
	font-size: 3rem;
	line-height: 1;
	color: var(--brand);
	margin-bottom: var(--space-xs);
	font-family: Georgia, "Times New Roman", serif;
	font-style: normal;
}

/* When multiple .quote-body paragraphs live in the same blockquote
   (multi-paragraph customer testimonial), only the first one gets
   the opening quote mark — the rest are continuation of the same
   statement, not separate quotes. */
.quote-body ~ .quote-body::before {
	content: none;
}

.quote-attribution {
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.quote-attribution strong {
	color: var(--text-primary);
	font-weight: 600;
}

.customers-note {
	max-width: 720px;
	margin: var(--space-xl) auto 0;
	text-align: center;
	font-size: 1rem;
	color: var(--text-secondary);
}

.customers-note strong {
	color: var(--text-primary);
	font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: start;
}

@media (max-width: 720px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

.contact-block address {
	font-style: normal;
	color: var(--text-secondary);
	line-height: 1.7;
}

.contact-block address strong {
	color: var(--text-primary);
	font-weight: 600;
	display: block;
	margin-bottom: var(--space-xs);
}

.contact-block a:not(.btn) {
	color: var(--brand);
	font-weight: 500;
}

/* ---------- Footer ---------- */

.footer {
	background: var(--bg);
	color: var(--text-primary);
	padding: var(--space-xl) 0 var(--space-l);
	border-top: 1px solid var(--border);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-l);
	justify-content: space-between;
	align-items: flex-start;
}

.footer-brand {
	display: inline-flex;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
	color: var(--text-primary);
}

.footer-brand .logo-it {
	color: var(--brand);
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-m) var(--space-l);
	font-size: 0.95rem;
}

.footer-nav a {
	color: var(--text-secondary);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
	color: var(--text-primary);
}

.footer-bottom {
	margin-top: var(--space-l);
	padding-top: var(--space-m);
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--text-secondary);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-s);
}

/* ================================================================
   UX & A11y polish
   ================================================================ */

/* Anchor target offset for the sticky topbar.
   When the user clicks an in-page anchor (#funktionen, #ueber, ...),
   the target section is otherwise scrolled directly under the
   topbar and visually clipped. scroll-margin-top reserves room.
   The topbar is 64px high (see .topbar-inner); we add 1rem padding. */
section[id] {
	scroll-margin-top: calc(64px + 1rem);
}

/* Visible keyboard focus indicator.
   Default browser outlines vary and are sometimes invisible against
   our brand colour. This rule gives every focusable element a clear,
   consistent focus ring — important for keyboard navigation
   (Tab through nav, screen readers, accessibility audits). */
:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Buttons already have their own visual style and don't need a
   border-radius override on focus. */
.btn:focus-visible {
	outline-offset: 3px;
	border-radius: var(--radius);
}

/* Reduced-motion override.
   Users can request reduced motion in their OS settings — typically
   for vestibular disorders, motion sensitivity, or just personal
   preference. This block respects that signal:
     - turns off smooth scrolling (jump immediately on anchor click)
     - kills CSS transitions and animations site-wide
   We set durations to 0.01ms (not 0) so that JS that listens for
   "animationend" / "transitionend" events still fires. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ================================================================
   Print stylesheet
   ----------------------------------------------------------------
   Pages most likely to be printed are Impressum/Datenschutz; their
   long prose should print cleanly without the dark hero, the navigation
   bar, or the dark footer. Light typography, page-friendly margins.
   ================================================================ */

@media print {
	/* Hide site chrome (navigation, CTA, footer) — irrelevant on paper */
	.topbar,
	.footer,
	.btn,
	.hero-cta,
	.contact-grid {
		display: none !important;
	}

	/* Flatten dark sections; printers don't render dark backgrounds well
	   and waste ink */
	body,
	.dark-section,
	.hero {
		background: #ffffff !important;
		color: #000000 !important;
	}

	/* Headings and prose readable in black */
	h1, h2, h3, h4,
	.section-title,
	.hero-title,
	.capability-title {
		color: #000000 !important;
	}

	/* Make links visible as URLs after the link text — helpful on paper */
	a[href^="http"]::after,
	a[href^="mailto:"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		color: #555;
	}

	/* Avoid huge type breaks at page boundaries */
	h1, h2, h3 {
		page-break-after: avoid;
	}
	p, li {
		page-break-inside: avoid;
	}

	/* Sensible page margins */
	@page {
		margin: 2cm 1.8cm;
	}
}
