/*
 * The house typeface, on every page of aixactum.de.
 *
 * Uncode loads Jost from Google Fonts, but the font fields in the theme options
 * are empty, so its generated CSS says `font-family: ;` and the browser falls
 * back to its default sans serif (Arial on Windows). Jost is the face of the
 * logo and of every font class the theme defines. This sets it on the text
 * elements by name; icon fonts set their own family on their own elements and
 * are not touched.
 */

body,
p,
li,
dt,
dd,
address,
label,
blockquote,
input,
textarea,
select,
button,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.heading-text,
.btn,
.menu-smart,
.menu-smart > li > a,
.menu-smart .sub-menu a,
.tmb .t-entry,
.tmb .t-entry .t-entry-title,
.uncode_text_column,
.font-ui {
	font-family: "Jost", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/*
 * One scale for the whole site, four sizes and one text colour:
 *
 *   32px  page and section titles (h1, h2)
 *   24px  the light line above a title, card titles (h3)
 *   20px  small headings (h4, h5)
 *   16px  every text, list, answer, caption and small heading (h6)
 *
 * The theme had seven, down to 13px for text and 12px for menu and
 * accordion titles, and Uncode greys some of it. Nothing smaller than 16px,
 * nothing lighter than the text colour.
 */
h1:not([class*="fontsize-"]), .h1:not([class*="fontsize-"]),
h2:not([class*="fontsize-"]), .h2:not([class*="fontsize-"]) {
	font-size: 32px;
	line-height: 1.25;
}

h3:not([class*="fontsize-"]), .h3:not([class*="fontsize-"]) {
	font-size: 24px;
	line-height: 1.3;
}

h4:not([class*="fontsize-"]), .h4:not([class*="fontsize-"]),
h5:not([class*="fontsize-"]), .h5:not([class*="fontsize-"]) {
	font-size: 20px;
	line-height: 1.35;
}

h6:not([class*="fontsize-"]), .h6:not([class*="fontsize-"]) {
	font-size: 16px;
	line-height: 1.5;
}

body,
p:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="axp-"]),
li,
dt,
dd,
address,
.uncode_text_column,
.uncode_text_column p,
.uncode_text_column li,
.icon-box-content,
.icon-box-content p,
.panel-body,
.panel-body p,
.t-entry-excerpt,
.t-entry-text,
.text-small,
.text-lead,
small {
	font-size: 16px !important;
	line-height: 1.7;
}

.style-light .uncode_text_column,
.style-light .icon-box-content,
.style-light .panel-body,
.style-light .t-entry-excerpt {
	color: #303133;
	opacity: 1;
}

/* Accordion questions in the size of the text, not 12px capitals. */
.panel-title > a,
.panel-title > a > span {
	font-size: 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

@media (max-width: 569px) {
	h1:not([class*="fontsize-"]), .h1:not([class*="fontsize-"]),
	h2:not([class*="fontsize-"]), .h2:not([class*="fontsize-"]) {
		font-size: 28px;
	}
}

/* The menu in the size of the text, as on the trial membership page. */
.menu-smart > li > a,
.menu-smart ul a,
.menu-smart .drop-menu a {
	font-size: 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.menu-smart > li > a {
	font-weight: 600 !important;
}

/* "Alle Mitglieder auf einen Blick" at the top of the members' submenu. Uncode
   calls its submenus .drop-menu, not .sub-menu. */
.menu-smart .drop-menu .axp-menu-all > a,
.menu-smart ul .axp-menu-all > a {
	padding-bottom: 12px !important;
	margin-bottom: 6px;
	border-bottom: 1px solid #eaeaea;
	color: #b7c708 !important;
	font-weight: 600 !important;
}

/* The moving colour bar of the portal, under the menu. */
#masthead .menu-container::after {
	content: "";
	display: block;
	width: 100%;
	height: 4px;
	background:
		repeating-linear-gradient(to right, #f07d00 0 42px, #0075b2 42px 84px, #ffe400 84px 127px, #823784 127px 169px, #50af31 169px 211px, #e2007c 211px 253px, #0095db 253px 295px, #cd1719 295px 338px, #b7c708 338px 380px),
		repeating-linear-gradient(to right, #e2007c 0 60px, #b7c708 60px 120px, #0095db 120px 180px, #50af31 180px 240px, #0075b2 240px 300px, #823784 300px 360px, #cd1719 360px 420px, #ffe400 420px 480px, #f07d00 480px 540px);
	background-blend-mode: screen;
	animation: axp-brand-drift 120s linear infinite;
}

@keyframes axp-brand-drift {
	from { background-position: 0 0, 0 0; }
	to { background-position: 380px 0, -540px 0; }
}

@media (prefers-reduced-motion: reduce) {
	#masthead .menu-container::after {
		animation: none;
	}
}

/* Dark buttons in the dark tone of the site rather than black. */
.btn-color-jevc,
.btn-color-jevc.btn-flat {
	background-color: #2f3a40 !important;
	border-color: #2f3a40 !important;
	color: #fff !important;
}

/* Every coloured button darkens to that tone on hover, not to green. */
.btn-accent.btn-flat:not(.btn-hover-nobg):hover,
.btn-accent.btn-flat:not(.btn-hover-nobg):focus,
.btn-color-473161.btn-flat:not(.btn-hover-nobg):hover,
.btn-color-473161.btn-flat:not(.btn-hover-nobg):focus,
.btn-color-jevc.btn-flat:not(.btn-hover-nobg):hover,
.btn-color-jevc.btn-flat:not(.btn-hover-nobg):focus {
	background-color: #1f272b !important;
	border-color: #1f272b !important;
	color: #fff !important;
}

/* The members area in the menu: a lock alone, the word only for screen readers. */
.axp-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.menu-smart .axp-menu-portal > a::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin: 0;
	vertical-align: -4px;
	position: relative;
	top: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1a5 5 0 0 0-5 5v4H5v13h14V10h-2V6a5 5 0 0 0-5-5zm-3 9V6a3 3 0 0 1 6 0v4z%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1a5 5 0 0 0-5 5v4H5v13h14V10h-2V6a5 5 0 0 0-5-5zm-3 9V6a3 3 0 0 1 6 0v4z%27/%3E%3C/svg%3E") center / contain no-repeat;
}
/* In the mobile menu there is room: the lock with the word beside it. */
@media (max-width: 959px) {
	.menu-smart .axp-menu-portal .axp-sr-only {
		position: static !important;
		width: auto;
		height: auto;
		margin-left: 8px;
		overflow: visible;
		clip: auto;
	}
}
