/*
 * Landingpage — nur logische Eigenschaften (margin-inline-*, padding-inline-*,
 * inset-inline-*, text-align: start), damit dieselbe Datei RTL und LTR traegt.
 * Geprueft von scripts/check.sh.
 */

/* IBM Plex Sans Arabic (OFL-1.1, siehe fonts/OFL.txt), selbst gehostet aus
 * @fontsource/ibm-plex-sans-arabic@5.3.0. Nur die Untermengen arabic und latin. */
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--text: #1b2430;
	--muted: #46505c;
	--bg: #ffffff;
	--surface: #f3f6f5;
	--primary: #0b5d4b;
	--on-primary: #ffffff;
	--focus: #b3541e;
	--border: #d5ddda;
	--radius: 0.75rem;
	--content: 68rem;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

body {
	margin: 0;
	font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
	font-size: 1.0625rem;
	/* Arabisch braucht Platz fuer Diakritika; Latein wird unten enger gesetzt. */
	line-height: 1.8;
	color: var(--text);
	background: var(--bg);
	text-align: start;
	overflow-wrap: break-word;
}

body:lang(en) {
	line-height: 1.6;
}

h1,
h2,
h3 {
	line-height: 1.35;
	font-weight: 600;
	margin-block: 0 0.5em;
}

h1 {
	font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
}

h2 {
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
}

h3 {
	font-size: 1.15rem;
}

p {
	margin-block: 0 1em;
}

a {
	color: var(--primary);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.wrap {
	max-inline-size: var(--content);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* Skip-Link: ausserhalb des Sichtfelds, bei Fokus sichtbar. */
.skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-start: -10rem;
	z-index: 10;
	padding-block: 0.5rem;
	padding-inline: 1rem;
	background: var(--primary);
	color: var(--on-primary);
	border-radius: var(--radius);
}

.skip-link:focus {
	inset-block-start: 1rem;
}

.site-header {
	border-block-end: 1px solid var(--border);
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1rem;
}

.brand {
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.brand img {
	inline-size: 2rem;
	block-size: 2rem;
}

.lang-switch {
	display: inline-block;
	padding-block: 0.35rem;
	padding-inline: 0.9rem;
	border: 1px solid var(--primary);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.hero {
	background: var(--surface);
	padding-block: clamp(3rem, 8vw, 6rem);
}

.hero p {
	font-size: 1.2rem;
	color: var(--muted);
	max-inline-size: 42rem;
	margin-block-end: 0;
}

section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-intro {
	color: var(--muted);
	max-inline-size: 42rem;
}

.cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding-block: 1.25rem;
	padding-inline: 1.25rem;
}

.card p {
	color: var(--muted);
	margin-block-end: 0;
}

.alt {
	background: var(--surface);
}

.contact p {
	font-size: 1.15rem;
}

.site-footer {
	border-block-start: 1px solid var(--border);
	padding-block: 1.5rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.site-footer p {
	margin: 0;
}
