/* ISSP Software und Service GmbH - site stylesheet */

:root {
	--color-bg: #ffffff;
	--color-surface: #f4f6f8;
	--color-text: #1f2937;
	--color-muted: #52606d;
	--color-primary: #10375c;
	--color-primary-dark: #0a2338;
	--color-accent: #c99a2e;
	--color-border: #d8dee4;
	--color-header-bg: #fcf003;
	--color-header-text: #4a4a4a;
	--color-header-text-strong: #1a1a1a;
	--radius: 8px;
	--max-width: 1080px;
	--font-base: "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body.page {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-surface);
}

img { max-width: 100%; height: auto; }

p { margin: 0 0 1rem; text-align: left; }

h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

table { border-collapse: collapse; width: 100%; }

a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }
a:visited { color: var(--color-primary); }

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--color-primary);
	color: #fff;
	padding: 0.75em 1.25em;
	z-index: 100;
	border-radius: 0 0 var(--radius) 0;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Header / navigation */
.site-header {
	background: var(--color-header-bg);
	color: var(--color-header-text);
	flex-shrink: 0;
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--color-header-text-strong);
	line-height: 1.15;
}
.brand:hover .brand-sub { color: var(--color-primary); }
.brand-logo { display: block; height: 40px; width: auto; max-width: none; }
.brand-sub { font-size: 0.8rem; font-weight: 600; color: var(--color-header-text); transition: color 0.15s ease; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 2px solid rgba(0, 0, 0, 0.35);
	border-radius: var(--radius);
	width: 42px;
	height: 38px;
	cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-header-text-strong); }

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	display: block;
	width: 20px;
	height: 2px;
	background: var(--color-header-text-strong);
	position: relative;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 4px; }

.primary-nav { width: 100%; }

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
}

.primary-menu a {
	display: inline-block;
	padding: 0.6rem 1rem;
	color: var(--color-header-text);
	text-decoration: none;
	border-radius: var(--radius);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
	background-color: rgba(0, 0, 0, 0.07);
	color: var(--color-header-text-strong);
}

.primary-menu a.is-current {
	background-color: rgba(0, 0, 0, 0.09);
	color: var(--color-header-text-strong);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Main content */
.site-main {
	flex: 1 0 auto;
	max-width: var(--max-width);
	width: 100%;
	margin: 2rem auto;
	padding: 0 1.25rem;
}

.content-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: 0 1px 2px rgba(16, 55, 92, 0.06);
}

/* News */
.news-item {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; }
.news-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}
.news-header h3 { margin: 0; }
.news-date { color: var(--color-muted); font-size: 0.9rem; white-space: nowrap; }

/* History / timeline */
.history-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 1.1rem;
}
.history-item {
	border-left: 4px solid var(--color-accent);
	background: var(--color-surface);
	padding: 1rem 1.25rem;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.history-item h3 { margin-top: 0; }
.history-item p { margin-bottom: 0.5rem; }
.history-stat {
	display: inline-block;
	font-weight: 700;
	color: var(--color-primary);
}
.history-summary {
	padding: 1.25rem;
	background: var(--color-primary);
	color: #fff;
	border-radius: var(--radius);
	text-align: center;
	font-size: 1.15rem;
}
.history-summary strong { color: var(--color-accent); }

/* Section sub-navigation (e.g. ECM subpages) */
.subnav {
	margin: -0.25rem 0 1.5rem;
	border-bottom: 1px solid var(--color-border);
}
.subnav-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0 0 0.75rem;
}
.subnav-menu a {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	color: var(--color-primary);
	text-decoration: none;
	border-radius: var(--radius);
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.subnav-menu a:hover,
.subnav-menu a:focus-visible {
	background-color: var(--color-surface);
	color: var(--color-accent);
}
.subnav-menu a.is-current {
	background-color: var(--color-primary);
	color: #fff;
}

/* Comparison table */
.table-wrap {
	overflow-x: auto;
	margin: 0 0 0.5rem;
	-webkit-overflow-scrolling: touch;
}
.compare-table {
	min-width: 560px;
}
.compare-table th,
.compare-table td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}
.compare-table thead th {
	background: var(--color-primary);
	color: #fff;
	font-weight: 700;
}
.compare-table tbody th[scope="row"] {
	background: var(--color-surface);
	color: var(--color-primary);
	font-weight: 600;
	white-space: nowrap;
}
.compare-table tbody tr:nth-child(even) td {
	background: var(--color-surface);
}
.table-footnotes {
	color: var(--color-muted);
	font-size: 0.85rem;
	margin: 0.5rem 0 1.5rem;
}
.table-footnotes sup {
	color: var(--color-accent);
	font-weight: 700;
}

/* OOBE pivot table */
.oobe-table tbody tr.oobe-group th {
	background: var(--color-primary-dark);
	color: #fff;
	font-size: 1rem;
	text-align: left;
}
.oobe-table tbody tr:nth-child(even) td {
	background: transparent;
}
.stars {
	display: inline-block;
	color: var(--color-accent);
	letter-spacing: 0.1em;
	font-size: 1.1rem;
	white-space: nowrap;
}

/* Contact form */
.form-errors {
	background: #fdf1f0;
	border: 1px solid #e2b3ae;
	color: #8a2c24;
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.form-errors p { margin: 0 0 0.4rem; }
.form-errors ul { margin: 0; }
.form-success {
	background: #eef6ef;
	border: 1px solid #b7d8ba;
	color: #24572b;
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
}

.contact-form {
	display: grid;
	gap: 1.1rem;
	max-width: 640px;
}
.form-row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.form-row label,
.form-fieldset legend {
	font-weight: 600;
	color: var(--color-primary);
}
.required { color: var(--color-accent); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
	font: inherit;
	color: var(--color-text);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0.65rem 0.85rem;
}
.form-row input:focus,
.form-row textarea:focus {
	border-color: var(--color-primary);
}
.form-row textarea { resize: vertical; }

.form-fieldset {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0.9rem 1.1rem 1rem;
	gap: 0.5rem;
}
.form-fieldset legend { padding: 0 0.3rem; }
.radio-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
	color: var(--color-text);
	cursor: pointer;
}

.checkbox-option {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	color: var(--color-text);
	cursor: pointer;
}
.checkbox-option input { margin-top: 0.25rem; }

.form-row-submit { margin-top: 0.25rem; }
.btn-submit {
	align-self: start;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--color-primary);
	border: none;
	border-radius: var(--radius);
	padding: 0.75rem 1.75rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.btn-submit:hover,
.btn-submit:focus-visible {
	background: var(--color-primary-dark);
}

/* Honeypot field - hidden from sighted users, left in the tab flow trap for bots */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Footer */
.site-footer {
	background: var(--color-primary-dark);
	color: #c6d3e0;
	flex-shrink: 0;
	margin-top: 3rem;
}
.footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 0.9rem;
}
.footer-inner p { margin: 0; }
.footer-links a {
	color: #eef2f6;
	margin-left: 1.25rem;
	text-decoration: underline;
}
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: var(--color-accent); }

/* Responsive nav for small screens */
@media (max-width: 720px) {
	.nav-toggle { display: inline-flex; }

	.primary-menu {
		display: none;
		flex-direction: column;
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: var(--radius);
		padding: 0.5rem;
		margin-top: 0.75rem;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu a { padding: 0.75rem 1rem; }

	.content-card { padding: 1.25rem; }
	h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.primary-menu a { transition: none; }
}
