/* ---------------------------------------------------------------------------
   Communicate! Sprachdienstleistungen — Bludit theme
   Reproduces the layout of the original LightNEasy site (templates/lightneasy)
   with a responsive, table-free structure.
   --------------------------------------------------------------------------- */

:root {
	--navy:        #000080;
	--page-bg:     #e5eef7;
	--masthead-bg: #a5c3e1;
	--menu-bg:     #c7dbe7;
	--accent:      #79aad7;
	--rule:        #000000;
	--text:        #1a1a1a;
}

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background-color: var(--page-bg);
	color: var(--text);
	font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
	font-size: 100%;
	line-height: 1.55;
}

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

a {
	color: var(--navy);
}

/* Accessibility ---------------------------------------------------------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 0.5em 1em;
	background: #ffffff;
	color: var(--navy);
}

.skip-link:focus {
	left: 0;
}

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

.layout {
	display: flex;
	flex: 1 0 auto;
	align-items: stretch;
}

.column {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

/* Sidebar ---------------------------------------------------------------- */

.sidebar {
	flex: 0 0 13em;
	background-color: var(--navy);
	padding: 2ex 0.5em;
	text-align: center;
}

.sidebar .portrait {
	display: block;
	width: 117px;
	height: auto;
	margin: 3ex auto;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu li {
	background-color: var(--menu-bg);
	margin: 3px 5px;
	border: 2px outset #ffffff;
	border-top: 1px solid var(--masthead-bg);
	border-bottom: 1px solid var(--masthead-bg);
}

.menu li a {
	display: block;
	padding: 0.8ex 1em;
	color: #000000;
	text-decoration: none;
}

.menu li a:hover,
.menu li a:focus {
	background-color: #ffffff;
	text-decoration: underline;
}

.menu li.current {
	background-color: #ffffff;
}

.menu li.current a {
	font-weight: bold;
	color: var(--navy);
}

/* Menu toggle (small screens only, no JavaScript required) ---------------- */

.nav-toggle-label {
	display: none;
	margin: 0 5px 6px;
	padding: 0.8ex 1em;
	background-color: var(--menu-bg);
	border: 2px outset #ffffff;
	color: #000000;
	cursor: pointer;
	font-weight: bold;
}

/* Masthead --------------------------------------------------------------- */

.masthead {
	background-color: var(--masthead-bg);
	margin-right: 4em;
	padding: 1ex 1em 2ex;
	border-bottom: 2px solid var(--rule);
}

.masthead h1 {
	margin: 0;
	font-weight: normal;
	font-size: 1rem;
	line-height: 1.2;
}

.masthead a {
	color: var(--navy);
	text-decoration: none;
}

.masthead .company {
	font-size: 200%;
	font-family: Georgia, "Times New Roman", serif;
}

.masthead .smaller {
	font-size: 60%;
}

.masthead .slogan {
	margin: 2ex 0 0;
	color: var(--navy);
}

/* Content ---------------------------------------------------------------- */

.content {
	flex: 1 1 auto;
	padding: 2ex 1em;
}

.title {
	max-width: 750px;
	margin: 0 0 1ex;
	padding: 1ex 1em 2ex 0.2em;
	border-bottom: 2px solid var(--rule);
	color: var(--navy);
	font-size: 200%;
	font-weight: normal;
	font-style: italic;
	font-variant: small-caps;
	line-height: 1.2;
}

.maincontent {
	max-width: 750px;
	min-height: 200px;
}

.maincontent p {
	margin: 1ex 0 2ex;
	text-align: justify;
	hyphens: auto;
}

.maincontent ul,
.maincontent ol {
	margin: 1ex 0 2ex 2em;
	padding: 0;
}

.maincontent h2 {
	margin: 3ex 0 1ex;
	color: var(--navy);
	font-size: 125%;
	font-weight: bold;
}

.maincontent h3 {
	margin: 3ex 0 1ex;
	color: var(--navy);
	font-size: 110%;
	font-weight: bold;
}

.maincontent strong {
	color: var(--navy);
}

/* Pull quote — was an inline-styled floating div in the LightNEasy content */
.pullquote {
	float: right;
	width: 32%;
	margin: 3ex 0 3ex 3em;
	padding: 2ex 0.5em;
	background-color: var(--accent);
}

.pullquote p {
	margin: 0 0 1ex;
	text-align: left;
	hyphens: auto;
}

.pullquote p:last-child {
	margin-bottom: 0;
	text-align: right;
}

/* Contact table */
table.contact {
	border-collapse: collapse;
}

table.contact th {
	padding: 0.25ex 2em 0.25ex 0;
	text-align: left;
	vertical-align: top;
}

table.contact td {
	padding: 0.25ex 0;
}

.end {
	width: 50%;
	max-width: 375px;
	height: 2px;
	margin-top: 4ex;
	background-color: var(--rule);
}

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

.footer {
	padding: 1.5ex 1em;
	font-size: 85%;
}

.footer .links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
}

.footer a {
	color: var(--navy);
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 760px) {
	.layout {
		display: block;
	}

	.sidebar {
		padding: 1.5ex 0.5em;
		text-align: left;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 1em;
	}

	.sidebar .portrait {
		width: 56px;
		margin: 0 0 0 5px;
	}

	.nav-toggle-label {
		display: inline-block;
		margin: 0 5px 0 auto;
	}

	.menu {
		display: none;
		flex-basis: 100%;
	}

	.nav-toggle:checked ~ .menu {
		display: block;
	}

	.masthead {
		margin-right: 0;
	}

	.masthead .company {
		font-size: 170%;
	}

	.title {
		font-size: 165%;
		padding-right: 0;
	}

	.maincontent p {
		text-align: left;
	}

	.pullquote {
		float: none;
		width: auto;
		margin: 3ex 0;
	}
}

/* Print ------------------------------------------------------------------ */

@media print {
	.sidebar,
	.footer,
	.skip-link {
		display: none;
	}

	body {
		background: #ffffff;
	}

	.masthead {
		margin-right: 0;
		background: #ffffff;
	}

	.maincontent {
		max-width: none;
	}
}
