/* ============================================================
   Alexandra Schamel – website stylesheet
   Recreates the look of the former WordPress theme "Spacious"
   (boxed layout, green accent colour, Lato font).

   To change the accent colour, edit --accent below.
   ============================================================ */

:root {
	--accent: #0FBE7C;      /* links, hover colour */
	--text: #666666;        /* normal text */
	--heading: #222222;     /* headings and site title */
	--line: #EAEAEA;        /* thin grey lines */
	--page-bg: #EAEAEA;     /* grey area around the white page */
	--soft-bg: #F8F8F8;     /* footer bar */
}

/* ---------- Font (stored locally, no Google connection) ---------- */
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Lato';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/lato-latin-400-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/lato-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Lato';
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/lato-latin-700-italic.woff2') format('woff2');
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 30px 0;
	background: var(--page-bg);
	color: var(--text);
	font: 16px/24px 'Lato', sans-serif;
	overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 {
	margin: 0;
	color: var(--heading);
	font-weight: normal;
}

p { margin: 0 0 15px; }

strong { font-weight: bold; }

hr {
	border: 0;
	border-top: 1px solid var(--line);
	height: 0;
	margin: 30px 0;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

/* ---------- Page box ---------- */
.page {
	max-width: 1268px;
	margin: 0 auto;
	background: #FFFFFF;
	box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}

.inner-wrap {
	max-width: 1218px;
	margin: 0 auto;
	padding: 0 25px;
}

/* ---------- Header: name, language switch, menu ---------- */
.site-header-bar {
	border-bottom: 1px solid var(--line);
}

.site-header-bar .inner-wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 25px;
	padding-top: 15px;
	padding-bottom: 15px;
}

.site-branding { padding-top: 10px; }

.site-title {
	margin: 0;
	padding-bottom: 5px;
	font-size: 36px;
	line-height: 36px;
	font-weight: normal;
}
.site-title a { color: var(--heading); }
.site-title a:hover { color: var(--accent); text-decoration: none; }

.site-description {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
}

.header-right { text-align: right; }

.language-switch {
	padding-top: 10px;
	margin: 0;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 5px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.main-nav li { padding-left: 25px; }
.main-nav a {
	display: block;
	padding-top: 16px;
	height: 46px;
	color: #444444;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
	color: var(--accent);
	text-decoration: none;
}

/* ---------- Header picture ---------- */
.header-image {
	display: block;
	width: 100%;
	margin: 0;
	border-bottom: 1px solid var(--line);
}

/* ---------- Grey title bar (all pages except the start page) ---------- */
.page-title-bar {
	border-bottom: 1px solid var(--line);
	padding: 20px 0;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05) inset;
}
.page-title-bar h1 {
	font-size: 22px;
	line-height: 36px;
}

/* ---------- Content + sidebar ---------- */
.main {
	padding: 40px 0 10px;
}
.main .inner-wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.content { width: 61.5763547%; }
.sidebar { width: 34.4827586%; }

.content ul {
	list-style: square;
	margin: 0 0 30px;
	padding: 0 0 0 35px;
}
.content li { margin: 0; }

.content::after { content: ""; display: block; clear: both; }

.alignleft  { float: left;  margin: 0 30px 18px 0; }
.alignright { float: right; margin: 0 0 18px 30px; }

/* Sidebar quote (Kaschnitz) */
.sidebar-quote {
	margin: 0 0 35px;
}
.sidebar-quote p { margin: 0 0 24px; }
.sidebar-quote .quote-author {
	text-align: right;
	font-style: italic;
	margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 10px 0;
	background: var(--soft-bg);
	border-top: 1px solid var(--line);
	font-size: 12px;
	line-height: 18px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Tablets and phones ---------- */
@media (max-width: 768px) {
	body { padding: 0; }

	.site-header-bar .inner-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.site-branding { text-align: center; padding: 0 0 10px; }
	.header-right { text-align: center; }
	.language-switch { padding: 0 0 5px; }
	.main-nav ul { justify-content: center; padding: 0; }
	.main-nav li { padding: 0 10px; }
	.main-nav a { height: auto; padding: 6px 0; }

	.main .inner-wrap { display: block; }
	.content, .sidebar { width: 100%; }
	.sidebar { margin-top: 20px; }
}

@media (max-width: 480px) {
	.inner-wrap { padding: 0 16px; }
	.site-title { font-size: 30px; }
	.alignleft, .alignright {
		float: none;
		display: block;
		margin: 0 auto 18px;
	}
}
