/*
 * hpkraemer.it — statischer Nachbau
 * Rekonstruiert nach dem WordPress-Theme "Twenty Sixteen" mit den
 * Customizer-Einstellungen aus theme_mods_twentysixteen (Stand 05/2019):
 *   link_color #007acc · main_text_color #1a1a1a · secondary_text_color #686868
 *   page_background_color #ffffff · custom_logo · header_image = random
 * Schrift: Tahoma (per Plugin "Easy Google Fonts" ueber Merriweather/Montserrat gelegt).
 */

/* ---------------------------------------------------------------- Tokens */

:root {
	--text: #1a1a1a;
	--text-muted: #686868;
	--link: #007acc;
	--rule: #d1d1d1;
	--page: #fff;
	--gold: #b29f62; /* Markenfarbe aus dem Logo */
	--epi-teal: #1a5f6e; /* Hausfarben der Schule, uebernommen von epiedu.eu */
	--epi-gold: #c4a44a;
	--epi-gold-light: #e8d5a0; /* aufgehellt, damit Text auf Petrol 4.5:1 erreicht */
	--font: Tahoma, Verdana, Geneva, "DejaVu Sans", sans-serif;
	--gutter: 7.6923%;
}

/* ------------------------------------------------------------- Grundlage */

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

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

body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	margin: 0;
	font-weight: 700;
	text-rendering: optimizeLegibility;
}

p {
	margin: 0 0 1.75em;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

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

hr {
	height: 1px;
	margin: 0 0 1.75em;
	border: 0;
	background-color: var(--rule);
}

ul,
ol {
	margin: 0 0 1.75em 1.25em;
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

/* Sichtbar nur bei Tastaturfokus — Sprung zum Inhalt. */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.75em 1.5em;
	background: var(--page);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

.skip-link:focus {
	left: 6px;
	top: 7px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --------------------------------------------------------------- Geruest */

.site-inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
}

.site-header {
	padding: 2.625em var(--gutter);
}

.site-header-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.site-branding {
	min-width: 0;
	max-width: 100%;
	margin: 0.875em auto 0.875em 0;
	overflow: hidden;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	max-width: 180px;
}

.site-title {
	margin: 0.608695652em 0 0;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.2173913;
}

.site-title a {
	color: var(--text);
}

.site-title a:hover,
.site-title a:focus {
	color: var(--link);
	text-decoration: none;
}

.site-description {
	display: none;
	margin: 0.538461538em 0 0;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.0769231;
}

/* ------------------------------------------------------------- Navigation
 * Der Umschalter ist eine versteckte Checkbox: so kommt das Mobilmenue
 * ohne JavaScript aus. Das Label ist der sichtbare Button.
 */

#menu-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.menu-toggle {
	display: inline-block;
	margin: 1.076923077em 0;
	padding: 0.769230769em;
	border: 1px solid var(--rule);
	color: var(--text);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
}

.menu-toggle:hover {
	border-color: var(--link);
	color: var(--link);
}

#menu-toggle:focus-visible + .menu-toggle {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

#menu-toggle:checked + .menu-toggle {
	border-color: var(--text);
	background-color: var(--text);
	color: var(--page);
}

.site-header-menu {
	display: none;
	flex: 0 0 100%;
	margin: 0 0 1.75em;
}

#menu-toggle:checked ~ .site-header-menu {
	display: block;
}

.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	border-bottom: 1px solid var(--rule);
	position: relative;
}

.main-navigation li:first-child {
	border-top: 1px solid var(--rule);
}

.main-navigation a {
	display: block;
	padding: 0.84375em 0;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3125;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--link);
	text-decoration: none;
}

/* Aktuelle Seite und uebergeordneter Bereich sehen gleich aus; unterschieden
 * werden sie nur fuer Screenreader, wo allein die exakte Seite aria-current
 * traegt. */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--text-muted);
}

/* ----------------------------------------------------------- Kopfgrafik */

.header-image {
	clear: both;
	margin: 0.875em 0;
}

.header-image img {
	display: block;
	width: 100%;
}

/* ------------------------------------------------------ Banner der Schule
 * Liegt zwischen Kopf und Inhalt ueber die volle Breite, also ausserhalb des
 * zweispaltigen Rasters. Traegt die Farben von epiedu.eu und nicht die dieser
 * Seite: die Schule ist ein eigenes Haus mit eigener Domain, kein Unterkapitel.
 * Nur auf der Startseite eingebunden; dort ersetzt es die Kopfgrafik.
 * Die seitlichen Abstaende folgen denen von Kopf und Inhalt, damit Logo,
 * Menue, Banner und Text auf einer Fluchtlinie stehen.
 */

.epi-banner {
	margin: 0 var(--gutter) 2.625em;
	padding: 1.75em 1.5em;
	border-radius: 8px;
	background: var(--epi-teal);
	color: #fff;
	overflow-wrap: break-word;
	/* Zwei Lagen: der weite, farbige Schein traegt die Karte, der enge
	 * dunkle setzt die Kante — ein einzelner Schatten wirkt entweder
	 * schmutzig oder schwebend, nie beides. */
	box-shadow:
		0 14px 36px -10px rgba(26, 95, 110, 0.55),
		0 3px 10px rgba(26, 26, 26, 0.10);
}

.epi-banner-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25em;
}

.epi-logo {
	flex: 0 0 auto;
	width: 88px;
	height: auto;
}

.epi-eyebrow {
	margin: 0 0 0.35em;
	color: var(--epi-gold-light);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.epi-banner h2 {
	margin: 0 0 0.3em;
	font-size: 23px;
	line-height: 1.25;
}

.epi-claim {
	margin: 0 0 0.9em;
	color: #d6e4e8;
}

.epi-facts {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
	color: #e8f0f2;
	font-size: 14px;
}

.epi-facts li {
	position: relative;
	padding-left: 1em;
}

.epi-facts li::before {
	content: "";
	position: absolute;
	top: 0.65em;
	left: 0;
	width: 6px;
	height: 6px;
	background: var(--epi-gold);
}

.epi-cta {
	display: block;
	padding: 0.7em 1.4em;
	border-radius: 4px;
	background: var(--epi-gold);
	color: #14262b;
	font-weight: 700;
	text-align: center;
}

.epi-cta::after {
	content: "\00a0\2192";
}

.epi-cta:hover,
.epi-cta:focus {
	background: var(--page);
	color: var(--epi-teal);
	text-decoration: none;
}

/* Das Blau des Fokusrings verschwindet auf dem Petrol fast; hier weiss. */
.epi-banner :focus-visible {
	outline-color: var(--page);
}

/* -------------------------------------------------------------- Inhalte */

.site-content {
	word-wrap: break-word;
}

.site-main {
	margin-bottom: 3.5em;
}

.entry-header,
.entry-content {
	margin-right: var(--gutter);
	margin-left: var(--gutter);
}

.entry-title {
	margin-bottom: 1em;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h1 {
	margin: 2em 0 1em;
	font-size: 28px;
	line-height: 1.25;
}

.entry-content h2 {
	margin: 2.1739130435em 0 1.2173913043em;
	font-size: 23px;
	line-height: 1.2173913;
}

.entry-content h3 {
	margin: 2.7368421053em 0 1.4736842105em;
	font-size: 19px;
	line-height: 1.4736842;
}

.entry-content h4 {
	margin: 3.5em 0 1.75em;
	font-size: 16px;
	line-height: 1.75;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-bottom: 0;
}

/* Ausrichtungs-Klassen aus dem WordPress-Editor, im Original vom Theme
 * gestellt — die Inhalte benutzen sie weiterhin.
 *
 * Umflossen wird erst ab 710 px, genau wie im Original-Theme. Auf einem
 * schmalen Telefon bliebe neben einem 350 px breiten Bild sonst eine Spalte
 * von wenigen Zeichen Breite uebrig. Bis dahin steht das Bild als eigener
 * Block ueber dem Text. */
.alignleft,
.alignright {
	display: block;
	margin: 0 0 1.75em;
}

.aligncenter {
	display: block;
	margin: 0 auto 1.75em;
}

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

/* Zwei Logos mit nebenstehendem Text (Mitgliedschaften auf der Startseite). */
.membership {
	display: flex;
	gap: 1.25em;
	align-items: center;
	margin: 0 0 1.75em;
}

.membership img {
	flex: 0 0 auto;
	width: 96px;
	height: auto;
}

.membership p {
	margin: 0;
}

/* Hervorgehobener Hinweiskasten (im Original: gelb/orange hinterlegter Text). */
.notice {
	margin: 0 0 1.75em;
	padding: 0.875em 1.25em;
	border-left: 4px solid var(--gold);
	background: #faf6ec;
}

.notice > :last-child {
	margin-bottom: 0;
}

/* Vergangene Veranstaltungen: als Liste ohne Aufzaehlungszeichen. */
.event-list {
	margin: 0 0 1.75em;
	padding: 0;
	list-style: none;
}

.event-list > li {
	margin: 0 0 1.75em;
	padding-left: 1.25em;
	border-left: 1px solid var(--rule);
}

.event-list > li > :last-child {
	margin-bottom: 0;
}

.event-date {
	display: block;
	color: var(--text-muted);
	font-size: 14px;
	letter-spacing: 0.046875em;
	text-transform: uppercase;
}

.event-list h3 {
	margin: 0 0 0.35em;
	font-size: 19px;
	line-height: 1.4;
}

.section-label {
	margin: 0 0 1.75em;
	font-size: 16px;
	letter-spacing: 0.046875em;
	text-transform: uppercase;
}

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

.sidebar {
	margin-bottom: 3.5em;
	padding: 0 var(--gutter);
}

.widget {
	margin-bottom: 3.5em;
	padding-top: 1.75em;
	border-top: 4px solid var(--text);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	margin: 0 0 1.75em;
	font-size: 16px;
	letter-spacing: 0.046875em;
	line-height: 1.3125;
	text-transform: uppercase;
}

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

.widget li {
	border-bottom: 1px solid var(--rule);
}

.widget li:first-child {
	border-top: 1px solid var(--rule);
}

.widget li a {
	display: block;
	padding: 0.5em 0;
	color: var(--text);
	font-size: 14px;
	line-height: 1.4;
}

.widget li a:hover,
.widget li a:focus {
	color: var(--link);
	text-decoration: none;
}

.widget .current-menu-item a,
.widget .current-menu-ancestor a {
	color: var(--text-muted);
}

.widget p {
	margin: 0 0 1em;
	font-size: 14px;
	line-height: 1.6;
}

.widget p:last-child {
	margin-bottom: 0;
}

.lang-switch {
	display: flex;
	gap: 0.75em;
	align-items: center;
}

.lang-switch img {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
}

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

.site-footer {
	padding: 0 var(--gutter) 1.75em;
}

.site-info {
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.6153846;
}

.site-info a {
	color: var(--text-muted);
}

.site-info a:hover,
.site-info a:focus {
	color: var(--link);
}

.site-info .sep {
	margin: 0 0.5em;
}

/* -------------------------------------------------- Verschleierte E-Mail
 * Die Adresse steht rueckwaerts im Markup und wird per CSS zurueckgedreht.
 * Einfache Adress-Sammler lesen damit die falsche Zeichenfolge.
 */

.email-obfuscated {
	unicode-bidi: bidi-override;
	direction: rtl;
	white-space: nowrap;
}

/* --------------------------------------------------------- Kontaktformular */

.contact-form {
	margin: 0 0 1.75em;
	max-width: 34em;
}

.contact-form p {
	margin: 0 0 1.25em;
}

.contact-form label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.046875em;
	text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 0.625em 0.75em;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: var(--page);
	color: var(--text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.contact-form textarea {
	min-height: 11em;
	resize: vertical;
}

/* Der Rahmen ersetzt hier den Systemfokus — aber nur bei Feldern, die einen
   eigenen Rahmen haben. Die Checkbox ist davon ausgenommen: ueber einem
   nativen Ankreuzfeld zeichnen Browser den box-shadow nicht zuverlaessig, und
   ohne outline bliebe die Pflichtangabe fuer Tastaturbedienung unsichtbar.
   Sie faellt damit auf :focus-visible weiter oben zurueck. */
.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
	border-color: var(--link);
	outline: 0;
	box-shadow: 0 0 0 1px var(--link);
}

.contact-form .consent {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
}

.contact-form .consent input {
	margin-top: 0.45em;
}

.contact-form .consent label {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
}

.contact-form .required {
	color: #b3261e;
}

/*
 * Sprungziele der Fehlerliste. Ohne den Abstand steht das angesprungene Feld
 * an der Fensterkante und sein Label liegt oberhalb ausserhalb des Bildes.
 */
.contact-form input,
.contact-form textarea {
	scroll-margin-top: 4em;
}

/* Fehlermeldung direkt am betroffenen Feld. */
.field-error {
	display: block;
	margin-top: 0.35em;
	color: #b3261e;
	font-size: 14px;
	line-height: 1.5;
}

.contact-form [aria-invalid="true"] {
	border-color: #b3261e;
}

.contact-form [aria-invalid="true"]:focus {
	box-shadow: 0 0 0 1px #b3261e;
}

/* Erlaeuternder Hinweis, etwas zurueckgenommen. */
.form-note {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
}

/* Honeypot: fuer Menschen unsichtbar, Bots fuellen ihn aus. */
.contact-form .hp {
	position: absolute;
	left: -9999px;
}

.button {
	display: inline-block;
	padding: 0.75em 1.5em;
	border: 0;
	border-radius: 2px;
	background: var(--text);
	color: var(--page);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.046875em;
	text-transform: uppercase;
	cursor: pointer;
}

.button:hover,
.button:focus {
	background: var(--link);
	color: var(--page);
	text-decoration: none;
}

/*
 * Rueckmeldung nach dem Absenden (von contact.php gerendert). Sie ist zugleich
 * das Sprungziel: der Abstand laesst oberhalb Platz fuer die Ueberschrift
 * "Scrivete un messaggio", damit die Meldung nicht ohne Bezug im Bild steht.
 */
.form-message {
	margin: 0 0 1.75em;
	padding: 1em 1.25em;
	border-left: 4px solid var(--link);
	background: #eef6fb;
	scroll-margin-top: 4.5em;
}

/*
 * Die Meldung bekommt beim Sprung den Fokus, damit Screenreader sie vorlesen.
 * Der Ring zeigt Sehenden, wo die Tastatur steht — :focus statt :focus-visible,
 * weil der Fokus hier nicht durch eine Tastatureingabe entsteht und die
 * Heuristik den Ring sonst je nach Browser verschluckt.
 */
.form-message:focus {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.form-message.is-error {
	border-left-color: #b3261e;
	background: #fdeceb;
}

.form-message > :last-child {
	margin-bottom: 0;
}

.form-message ul {
	margin: 0.5em 0 0 1.25em;
}

/* ============================================================ ab 710 px */

@media screen and (min-width: 44.375em) {
	.alignleft {
		float: left;
		margin: 0.375em 1.75em 1.75em 0;
	}

	.alignright {
		float: right;
		margin: 0.375em 0 1.75em 1.75em;
	}

	.site-header {
		padding: 3.9375em var(--gutter);
	}

	.site-branding {
		margin-top: 1.3125em;
		margin-bottom: 1.3125em;
	}

	.custom-logo {
		max-width: 210px;
	}

	.site-title {
		margin-top: 0.5em;
		font-size: 28px;
		line-height: 1.25;
	}

	.site-description {
		display: block;
	}

	.menu-toggle {
		margin: 1.3125em 0;
		padding: 0.8125em 0.875em 0.6875em;
		font-size: 16px;
	}

	.site-header-menu {
		margin: 1.3125em 0;
	}

	.header-image {
		margin: 1.3125em 0;
	}

	.epi-banner {
		padding: 2.25em 2.5em;
	}

	.epi-banner-inner {
		flex-direction: row;
		align-items: center;
		gap: 2.5em;
	}

	.epi-logo {
		width: 140px;
	}

	.epi-banner h2 {
		font-size: 30px;
	}

	/* Nebeneinander, solange die Zeile reicht — sonst umbrechend untereinander. */
	.epi-facts {
		display: flex;
		flex-wrap: wrap;
		gap: 0.4em 1.5em;
	}

	.epi-cta {
		display: inline-block;
	}

	.site-main {
		margin-bottom: 5.25em;
	}
}

/* ============================================================ ab 910 px */

@media screen and (min-width: 56.875em) {
	.site-header {
		padding-right: 4.5455%;
		padding-left: 4.5455%;
	}

	.epi-banner {
		margin-right: 4.5455%;
		margin-left: 4.5455%;
	}

	/* Ab hier ist das Menue immer sichtbar — der Umschalter entfaellt.
	 * Die Checkbox muss mit ausgeblendet werden: sie ist nur durchsichtig,
	 * nicht entfernt, und bliebe sonst mit der Tabulatortaste erreichbar.
	 * Der Fokus verschwaende dann auf jeder Seite einmal ins Nichts. */
	#menu-toggle,
	.menu-toggle {
		display: none;
	}

	.site-header-menu {
		display: block;
		flex: 0 1 auto;
		margin: 0;
	}

	.main-navigation ul {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -0.875em;
	}

	.main-navigation li,
	.main-navigation li:first-child {
		border: 0;
	}

	.main-navigation a {
		padding: 0.65625em 0.875em;
	}

	.main-navigation li:hover > a {
		color: var(--link);
	}

	/* Zweispaltig: Inhalt links (70 %), Sidebar rechts (25 %).
	 * Der seitliche Abstand wandert hier von den einzelnen Textbloecken auf
	 * die aeussere Box — sonst haetten die beiden Spalten je eigene Raender
	 * und der Inhalt klebte am Fensterrand. Der Wert ist derselbe wie beim
	 * Seitenkopf, damit Logo, Menue, Banner und Text buendig stehen. */
	.site-content {
		display: grid;
		grid-template-columns: 70% 25%;
		gap: 0 5%;
		align-items: start;
		padding: 0 4.5455%;
	}

	.entry-header,
	.entry-content {
		margin-right: 0;
		margin-left: 0;
	}

	.sidebar {
		padding: 0;
	}

	.site-footer {
		padding-right: 4.5455%;
		padding-left: 4.5455%;
	}
}

/* ============================================================ ab 1200 px */

@media screen and (min-width: 75em) {
	.entry-title {
		font-size: 33px;
	}
}

/* ================================================================ Druck */

@media print {
	.site-header-menu,
	.menu-toggle,
	.header-image,
	.sidebar,
	.skip-link,
	.contact-form {
		display: none;
	}

	body {
		font-size: 12pt;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	/* Auf Papier bleibt der Inhalt, die Flaeche geht: das Logo ist weiss und
	 * waere unsichtbar, die Adresse steht sonst nirgends. */
	.epi-banner,
	.epi-cta {
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: inherit;
	}

	.epi-banner {
		margin: 0 0 1.75em;
	}

	.epi-logo {
		display: none;
	}

	.epi-eyebrow,
	.epi-claim,
	.epi-facts {
		color: inherit;
	}

	.epi-cta::after {
		content: "\00a0\2013\00a0www.epiedu.eu";
	}
}
