/* ==========================================================================
   Tertia Botha – statische Website
   Nachbau der WordPress-/GeneratePress-Seite, ohne PHP, ohne externe Requests
   ========================================================================== */

/* ---------- Schrift (lokal, kein Google-Fonts-Request) ---------- */
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
	--bg: #000000;
	--text: #f0f0f0;
	--muted: #b2b2be;
	--accent: #0366d6;
	--accent-hover: #222222;
	--btn-grey: #32373c;
	--site-width: 2400px;
	--font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
	overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { font-weight: 400; margin: 0 0 20px; }
h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 35px; line-height: 1.2; }
h3 { font-size: 25px; line-height: 1.2; }
p { margin: 0 0 1.5em; }

/* Tastatur-Fokus sichtbar lassen */
a:focus-visible, button:focus-visible {
	outline: 2px solid #e5c027;
	outline-offset: 2px;
}

.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: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: #fff;
	color: #000;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	max-width: var(--site-width);
	margin: 0 auto;
}

.inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 40px;
}

.site-logo { line-height: 0; }
.site-logo img { width: 199px; height: 114px; }

/* ---------- Navigation ---------- */
.main-navigation { margin-left: auto; }

.main-nav ul {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: flex;
	align-items: center;
	height: 60px;
	padding: 0 20px;
	color: var(--muted);
	font-size: 21px;
	text-decoration: none;
	transition: color .2s ease;
}
.main-nav a:hover, .main-nav a:focus { color: #ffffff; }
.main-nav svg { width: 1em; height: 1em; fill: currentColor; display: block; }

.menu-toggle {
	display: none;
	padding: 0 10px;
	height: 60px;
	background: none;
	border: 0;
	color: var(--muted);
	cursor: pointer;
	line-height: 0;
}
.menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Farbige Trennlinie (Südafrika-Flagge) ---------- */
.sa {
	background-image: url('../img/line.svg');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	height: 10px;
	opacity: .8;
	max-width: 98%;
	margin: 0 auto;
}

/* ==========================================================================
   Inhalt
   ========================================================================== */
.site-main { padding-bottom: 40px; }

.container {
	max-width: 98%;
	margin: 0 auto;
	padding: 0 2em;
}

.text-center { text-align: center; }

.hero { padding-top: 40px; }

.contact-address {
	margin-bottom: 0;
	text-align: center;
}

/* ---------- Kontakt-Buttons ---------- */
.button-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	margin: 2em 20px;
}

.btn {
	display: inline-flex;
	align-items: center;
	column-gap: .5em;
	padding: 15px 20px;
	margin: 1em;
	background-color: var(--accent);
	color: #ffffff;
	text-decoration: none;
	transition: background-color .2s ease;
}
.btn:hover, .btn:active, .btn:focus {
	background-color: var(--accent-hover);
	color: #ffffff;
	text-decoration: none;
}
.btn .icon { line-height: 0; }
.btn .icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Download-Bereich (CV) ---------- */
.download-block {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.btn-download {
	display: inline-flex;
	align-items: center;
	column-gap: .6em;
	padding: 14px 26px;
	background-color: var(--btn-grey);
	color: #ffffff;
	font-size: 15px;
	border-radius: 2em;
	text-decoration: none;
	transition: background-color .2s ease;
}
.btn-download:hover, .btn-download:focus {
	background-color: var(--accent);
	color: #ffffff;
	text-decoration: none;
}
.btn-download svg { width: 1em; height: 1em; fill: currentColor; }

.download-hint {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 14px;
}

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.entry {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 0 20px;
}
.entry h1 { text-align: center; }
.entry h2 {
	font-size: 28px;
	margin-top: 1.6em;
}
.entry h3 {
	font-size: 21px;
	margin-top: 1.4em;
	margin-bottom: .6em;
}
.entry ul { padding-left: 1.2em; }
.entry li { margin-bottom: .5em; }
.entry a { color: #5aa9f8; word-break: break-word; }
.entry .uppercase { text-transform: uppercase; }

.credit img { width: 20px; height: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	color: var(--muted);
	font-size: 15px;
	text-align: center;
	padding: 30px 20px 40px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover, .site-footer a:focus { color: #ffffff; }
.site-footer .sep { padding: 0 6px; opacity: .6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.inside-header {
		flex-wrap: wrap;
		padding: 20px 30px;
	}

	.site-logo img { width: 160px; height: auto; }

	.menu-toggle {
		display: block;
		margin-left: auto;
	}

	.main-navigation { margin-left: 0; }

	.main-nav {
		display: none;
		flex-basis: 100%;
		order: 3;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
	}
	.main-nav a {
		height: auto;
		padding: 14px 0;
		justify-content: flex-start;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}

	.container { padding: 0 20px; }

	h1 { font-size: 34px; }
	h2 { font-size: 28px; }

	.button-row { margin: 1.5em 0; }
	.btn {
		margin: .5em;
		justify-content: center;
	}

	.entry h2 { font-size: 24px; }
	.entry h3 { font-size: 19px; }
}

@media (max-width: 420px) {
	.button-row { flex-direction: column; align-items: stretch; }
	.btn { margin: .4em 0; }
}

@media print {
	.site-header, .site-footer, .sa, .button-row { display: none; }
	body { background: #fff; color: #000; }
}
