/*
 * ISD-Layout wie isdgroup.com (z. B. Support-Seite): heller Inhalt, dunkelblauer Kopf und Fuß,
 * blaue Akzente, kräftige Kontraste, Schrift Inter. Gilt für Twenty Twenty und alle Besucher
 * (Startseite, Anmeldung, Registrierung enthalten keine Lösungsdaten).
 * Farben als Variablen in :root, an einer Stelle änderbar.
 * Twenty Twenty setzt Farben per Inline-CSS; deshalb steht bei wichtigen Regeln !important.
 */
:root {
	--hcs-navy: #272846;
	--hcs-blue: #0b4fa0;
	--hcs-cyan: #0098e0;
	--hcs-text: #232634;
	--hcs-muted: #5d6270;
	--hcs-line: #d3d7de;
	--hcs-box: #ececec;
	--hcs-font: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}

html,
body,
body.custom-background,
body #site-content,
body main,
body .post-inner,
body .section-inner {
	background-color: #fff !important;
	color: var(--hcs-text) !important;
	font-family: var(--hcs-font);
}

body,
body .entry-content,
body .entry-content p,
body .entry-content li,
body .entry-content td,
body .entry-content th,
body .entry-content blockquote,
body .post-meta,
input,
textarea,
select,
button {
	font-family: var(--hcs-font);
}

/* Überschriften dunkelblau, Titelbereich weiß mit blauer Linie (wie auf isdgroup.com) */
body h1, body h2, body h3, body h4, body h5, body h6,
body .entry-title,
body .entry-title a,
body .archive-title,
body .widget-title,
body .faux-heading {
	color: var(--hcs-navy) !important;
	font-family: var(--hcs-font);
}

body .entry-header,
body .entry-header.header-footer-group,
body .archive-header,
body .archive-header.header-footer-group,
body .page-header {
	background-color: #fff !important;
	color: var(--hcs-navy) !important;
	border-bottom: 3px solid var(--hcs-blue);
}

body .entry-header .entry-title,
body .archive-header .archive-title,
body .entry-header .section-inner {
	background: transparent !important;
}

body .archive-header .color-accent,
body .archive-title span {
	color: var(--hcs-blue) !important;
}

body .post-meta,
body .post-meta li,
body .post-meta a,
body .entry-categories a {
	color: var(--hcs-muted) !important;
}

/* Links blau */
body a,
body .entry-content a,
body .color-accent,
body .color-accent-hover:hover {
	color: var(--hcs-blue) !important;
}

body a:hover,
body .entry-content a:hover {
	color: var(--hcs-cyan) !important;
}

/* Kopf und Fuß: dunkelblau, Navigation weiß */
body #site-header,
body #site-footer,
body .footer-nav-widgets-wrapper,
body .footer-top,
body .header-footer-group:not(.entry-header):not(.archive-header) {
	background-color: var(--hcs-navy) !important;
	color: #fff !important;
	border: 0;
}

body #site-header .header-inner {
	padding-top: 1.6rem;
	padding-bottom: 1.6rem;
	align-items: center;
}

body #site-header a,
body #site-header .primary-menu a,
body #site-header .primary-menu li > a,
body .modal-menu a,
body #site-footer a,
body #site-footer .footer-credits,
body #site-footer .footer-credits a,
body #site-footer .powered-by-wordpress a,
body #site-footer .to-the-top,
body #site-footer .to-the-top span {
	color: #fff !important;
	text-decoration: none;
}

body #site-header .primary-menu a:hover,
body #site-header .primary-menu .current-menu-item > a,
body #site-footer a:hover {
	color: #6cc4f5 !important;
}

body #site-header .toggle,
body #site-header .search-toggle,
body #site-header .nav-toggle,
body #site-header .toggle .toggle-text {
	background: transparent !important;
	color: #fff !important;
}

body #site-header .toggle svg,
body #site-header .svg-icon,
body #site-footer .to-the-top svg {
	fill: #fff !important;
}

body .search-modal,
body .menu-modal,
body .menu-modal-inner {
	background-color: var(--hcs-navy) !important;
	color: #fff !important;
}

/* Logos im Kopf: ISD Group links, daneben HiCAD 3D (Dateien im selben Ordner, für dunklen Grund umgefärbt) */
body #site-header .header-titles .site-title {
	margin: 0;
	line-height: 0;
}

body #site-header .header-titles .site-title a {
	display: block;
	width: 19rem;
	max-width: 100%;
	height: 6.5rem;
	font-size: 0 !important;
	background:
		url("isd-logo.png") left center / auto 100% no-repeat,
		url("hicad-logo.png") right center / auto 68% no-repeat;
}

body #site-header .header-titles .site-description {
	display: none;
}

/* Formulare */
body input[type="text"],
body input[type="email"],
body input[type="password"],
body input[type="search"],
body input[type="url"],
body select,
body textarea {
	background-color: #fff !important;
	color: var(--hcs-text) !important;
	border: 1px solid #b4bac6;
	border-radius: 0;
}

body label {
	color: var(--hcs-navy) !important;
}

/* Knöpfe: kräftiges Cyan wie "Jetzt Support kontaktieren" */
body button:not(.toggle):not(.search-toggle):not(.nav-toggle),
body .button,
body input[type="submit"],
body input[type="button"],
body .wp-block-button__link {
	background-color: var(--hcs-cyan) !important;
	color: #fff !important;
	border: 0;
	border-radius: 0;
}

body button:not(.toggle):hover,
body .button:hover,
body input[type="submit"]:hover,
body .wp-block-button__link:hover {
	background-color: var(--hcs-blue) !important;
	color: #fff !important;
}

body table,
body th,
body td,
body hr {
	border-color: var(--hcs-line);
}

/* Zwei getrennte Logo-Links (ISD Group, HiCAD), siehe hcs_header_logos() */
body #site-header .header-titles .site-title.hcs-logos {
	display: flex;
	align-items: center;
	gap: 1.8rem;
	margin: 0 !important;
	line-height: 0;
}

body #site-header .header-titles .site-title.hcs-logos a.hcs-logo {
	display: block;
	flex: 0 0 auto;
	margin: 0 !important;
	max-width: none;
	background-repeat: no-repeat !important;
	background-position: left center !important;
	background-size: contain !important;
}

body #site-header .header-titles .site-title.hcs-logos a.hcs-logo-isd {
	width: 5.6rem;
	height: 6.5rem;
	background-image: url("isd-logo.png") !important;
}

body #site-header .header-titles .site-title.hcs-logos a.hcs-logo-hicad {
	width: 11.6rem;
	height: 4.4rem;
	background-image: url("hicad-logo.png") !important;
}

body #site-header .header-titles .site-title.hcs-logos a.hcs-logo:hover,
body #site-header .header-titles .site-title.hcs-logos a.hcs-logo:focus {
	opacity: 0.85;
}

/* Anmelden/Abmelden rechts neben der Suche (siehe hcs_header_auth_button) */
body #site-header .hcs-auth-wrapper {
	display: flex;
	align-items: center;
	padding: 0 2rem;
	height: 100%;
}

body #site-header a.hcs-auth {
	display: inline-block;
	padding: 0.5em 1.1em;
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #fff !important;
	font-weight: 600;
	font-size: 1.5rem;
	text-decoration: none;
	white-space: nowrap;
}

body #site-header a.hcs-auth:hover,
body #site-header a.hcs-auth:focus {
	background: rgba(255, 255, 255, 0.15);
	color: #fff !important;
}

/* Zeile mit der ISD-Adresse am Seitenende */
.hcs-brandline {
	margin: 0;
	padding: 1.2em 2em;
	font-weight: 600;
	background: var(--hcs-navy);
}

.hcs-brandline a {
	color: #fff !important;
	text-decoration: none;
}

.hcs-brandline a::before {
	content: "\2192";
	margin-right: 0.6em;
}

/* Anmeldeseite (wp-login.php) */
body.login {
	background-color: #f2f4f7;
	color: var(--hcs-text);
}

body.login #login h1 {
	background: var(--hcs-navy);
	padding: 14px 10px;
	margin-bottom: 16px;
}

body.login #login h1 a {
	width: 100%;
	height: 90px;
	margin: 0;
	background:
		url("isd-logo.png") 20% center / auto 100% no-repeat,
		url("hicad-logo.png") 85% center / auto 62% no-repeat;
}

body.login form {
	background: #fff;
	border: 1px solid var(--hcs-line);
	border-top: 3px solid var(--hcs-blue);
	border-radius: 0;
}

body.login label {
	color: var(--hcs-navy);
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: var(--hcs-blue);
}

body.login .button-primary {
	background: var(--hcs-cyan);
	border-color: var(--hcs-cyan);
	color: #fff;
	border-radius: 0;
}

/*
 * Korrektur: Die weißen Flächen von .section-inner und .post-inner dürfen Kopf und Fuß nicht überdecken.
 * Dort bleibt der Hintergrund des Kopfes (dunkelblau) sichtbar.
 */
body #site-header .section-inner,
body #site-header .header-inner,
body #site-header .header-titles-wrapper,
body #site-header .header-titles,
body #site-header .header-navigation-wrapper,
body #site-footer .section-inner,
body #site-footer .footer-top,
body #site-footer .footer-inner {
	background-color: transparent !important;
}

/* Logo-Bereich nicht schrumpfen lassen */
body #site-header .header-titles-wrapper,
body #site-header .header-titles,
body #site-header .header-titles .site-title {
	display: block;
	flex: 0 0 auto;
	width: 19rem;
	min-width: 19rem;
}

body #site-header .header-inner {
	display: flex;
	justify-content: space-between;
}

/* Menü: weiß, aktueller Punkt hell unterstrichen statt blass hellblau */
body #site-header .primary-menu a,
body #site-header .primary-menu .current-menu-item > a {
	color: #fff !important;
	font-weight: 500;
}

body #site-header .primary-menu .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/*
 * Kopf: Logos immer linksbündig am Rand, auch bei schmalem Fenster. Twenty Twenty zentriert den
 * Titelbereich und begrenzt die Breite; hier volle Breite mit festem Seitenrand.
 */
body #site-header .header-inner {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 2rem !important;
	padding-right: 2rem !important;
	justify-content: space-between;
}

body #site-header .header-titles-wrapper {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	width: auto !important;
	min-width: 0 !important;
	flex: 0 1 auto;
}

body #site-header .header-titles {
	margin: 0 !important;
	text-align: left !important;
	min-width: 0;
}

body #site-header .header-titles .site-title,
body #site-header .header-titles .site-title a {
	margin-left: 0 !important;
}

body #site-header .header-titles .site-title a {
	width: 19rem;
	max-width: 70vw;
	background-position: left center, right center;
}

/* Sprachumschalter in der Titelleiste (links neben Anmelden/Abmelden) */
body #site-header .hcs-lang-wrapper {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0 1rem;
	height: 100%;
}

body #site-header select.hcs-lang-select {
	width: auto;
	min-width: 11rem;
	padding: 0.3em 2em 0.3em 0.7em;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 0.4rem;
	background-color: transparent;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
}

body #site-header select.hcs-lang-select option {
	color: #272846;
	background: #fff;
}
