/*
Theme Name:  KontrollTechnik
Theme URI:   https://kontrolltechnik.com
Description: Child-Theme von Divi für kontrolltechnik.com. Farben und Bilder nach der alten Joomla-Seite.
Author:      KontrollTechnik GmbH
Template:    Divi
Version:     0.4.1
Text Domain: kontrolltechnik
*/

/*
 * Farben (aus Logo und alter Seite):
 *   Petrol   #007c82  Logo, Überschriften, Links, Menü
 *   Petrol dunkel #005d62  Hover
 *   Grau     #9e9e9e  Logo-Schrift
 *   Text     #4a4a4a
 *   Dunkel   #1b1b1b  Footer (alte Seite: dunkler Hintergrund)
 *
 * Grundeinstellungen (Farben, Größen, Header) stehen in den Divi-Theme-Optionen,
 * siehe tools/divi-options.json. Hier nur, was dort nicht einstellbar ist.
 */

:root {
	--kt-petrol: #007c82;
	--kt-petrol-dark: #005d62;
	--kt-petrol-light: #e8f3f3;
	--kt-grey: #9e9e9e;
	--kt-text: #4a4a4a;
	--kt-dark: #1b1b1b;
}

/* Systemschriften statt Google Fonts (DSGVO, schneller) */
body,
input, textarea, select, button,
#top-menu, .et_mobile_menu,
h1, h2, h3, h4, h5, h6,
.et_pb_module, .et_pb_button {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	font-weight: 600;
}

/* ® und ähnliche Hochzeichen ohne Lücke und ohne Zeilensprung */
sup {
	position: static;
	bottom: auto;
	vertical-align: super;
	font-size: 0.6em;
	line-height: 0;
}

/* Hauptmenü in Großbuchstaben wie auf der alten Seite */
#top-menu > li > a {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

/* Hero: dunkle Bühne wie auf der alten Seite, Bilder im Format 960×400 */
.kt-hero-section.et_pb_section {
	padding: 30px 0;
}
.kt-hero-section .et_pb_row {
	width: 100%;
	max-width: 1140px;
	padding: 0;
}
.kt-hero.et_pb_slider,
.kt-hero .et_pb_slide {
	min-height: 0 !important;
}
.kt-hero .et_pb_slide {
	aspect-ratio: 960 / 400;
	padding: 0 4%;
}
.kt-hero .et_pb_container {
	height: 100% !important;
	width: 100%;
}

/* Hero-Slider: Bildunterschrift unten links wie auf der alten Seite */
.kt-hero .et_pb_slider_container_inner {
	vertical-align: bottom;
}
.kt-hero .et_pb_slide_description {
	padding: 0 0 6% 0 !important;
	text-align: left;
}
.kt-hero .et_pb_slide_title {
	display: inline-block;
	background: rgba(0, 124, 130, 0.88);
	padding: 0.35em 0.8em;
	border-radius: 2px;
	font-size: 22px !important;
	text-shadow: none !important;
}

/* Karten (Applications/Methods-Übersicht) */
.kt-card {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-top: 4px solid var(--kt-petrol);
	border-radius: 4px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	height: 100%;
}
.kt-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}
.kt-card {
	padding: 30px 24px 26px;
}
.kt-card .et_pb_main_blurb_image {
	margin-bottom: 20px;
}
.kt-card .et_pb_main_blurb_image img {
	border-radius: 3px;
}
.kt-card-round .et_pb_main_blurb_image img {
	border-radius: 50%;
}
.kt-card .et_pb_module_header,
.kt-card .et_pb_module_header a {
	color: var(--kt-petrol);
	font-size: 19px;
	padding-bottom: 10px;
}
.kt-card .et_pb_blurb_description {
	text-align: left;
}
.kt-card-row.et_pb_row {
	padding: 12px 0;
}
.kt-card-row .et_pb_column {
	display: flex;
}
.kt-card-row .et_pb_column > .kt-card {
	width: 100%;
}
.kt-card-row .et_pb_column:empty {
	display: block;
}

/* Seitenkopf der Unterseiten: Brotkrumen + Titel auf Petrol */
.kt-page-header.et_pb_section {
	background: linear-gradient(120deg, var(--kt-petrol-dark) 0%, var(--kt-petrol) 70%);
	padding: 44px 0 38px;
}
.kt-page-header .et_pb_row {
	padding: 0;
}
.kt-page-header h1 {
	color: #fff;
	font-size: 36px;
	padding-bottom: 0;
}
.kt-breadcrumb {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	padding-bottom: 8px !important;
}
.kt-breadcrumb a {
	color: #fff;
}
.kt-breadcrumb a:hover {
	text-decoration: underline;
}

/* Inhaltsabschnitte im Wechsel weiß / hellgrau */
.kt-section.et_pb_section {
	padding: 48px 0;
}
.kt-section.kt-alt {
	background-color: #f5f7f7;
}
.kt-section .et_pb_row {
	padding: 14px 0;
}
.kt-section h2 {
	font-size: 26px;
	padding-bottom: 14px;
}
.kt-section h3 {
	font-size: 19px;
	padding: 10px 0 8px;
	color: var(--kt-text);
}
.kt-section ul {
	padding-bottom: 1em;
	list-style: none;
	padding-left: 0;
}
.kt-section ul li {
	position: relative;
	padding-left: 1.3em;
	margin-bottom: 0.3em;
}
.kt-section ul li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.7em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kt-petrol);
}
.kt-lead {
	font-size: 18px;
	line-height: 1.65;
	color: #333;
}
.kt-narrow.et_pb_row {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}
.kt-figure {
	margin-bottom: 14px !important;
}
.kt-figure img {
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.kt-caption {
	font-size: 14px;
	color: #777;
	text-align: center;
	margin-top: -4px;
	margin-bottom: 18px !important;
}
.kt-gallery .et_pb_column {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Technische Daten */
.kt-specs {
	width: 100%;
	border-collapse: collapse;
	margin: 6px 0 22px;
	font-size: 15px;
	border: 0 !important;
}
.kt-specs th,
.kt-specs td {
	text-align: left;
	vertical-align: top;
	padding: 8px 12px !important;
	border: 0 !important;
	border-bottom: 1px solid #e3e3e3 !important;
}
.kt-specs th {
	width: 38%;
	font-weight: 600;
	color: var(--kt-text);
	background: var(--kt-petrol-light);
}

/* Downloads und Adressen */
.kt-downloads li::before {
	content: "PDF" !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	color: var(--kt-petrol);
	font-size: 11px;
	font-weight: 700;
	top: 0.35em !important;
	left: 0 !important;
}
.kt-downloads li {
	padding-left: 2.6em !important;
}
.kt-address {
	font-size: 17px;
}

/* Hinweis auf die zweite Sprachfassung (Impressum, Datenschutz) */
.kt-langnote {
	font-size: 14px;
	color: #777;
	border-left: 3px solid var(--kt-petrol);
	padding-left: 10px !important;
	margin-bottom: 1.4em;
}
#english {
	scroll-margin-top: 110px;
}
.kt-card a[href^="mailto:"] {
	font-size: 14px;
	white-space: nowrap;
}

/* Footer */
#main-footer .footer-widget h4 {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 14px;
}
#main-footer .footer-widget,
#main-footer .footer-widget p {
	line-height: 1.7;
}
#footer-info a {
	color: #cfcfcf;
}
#footer-info a:hover {
	color: #fff;
}

@media (max-width: 980px) {
	.kt-hero .et_pb_slide_title {
		font-size: 16px !important;
	}
}
@media (max-width: 767px) {
	.kt-hero-section.et_pb_section {
		padding: 0;
	}
	.kt-page-header.et_pb_section {
		padding: 28px 0 24px;
	}
	.kt-page-header h1 {
		font-size: 26px;
	}
	.kt-section.et_pb_section {
		padding: 28px 0;
	}
	.kt-specs th,
	.kt-specs td {
		display: block;
		width: auto;
	}
	.kt-specs th {
		border-bottom: 0 !important;
		padding-bottom: 2px !important;
	}
	.kt-hero .et_pb_slide_title {
		font-size: 13px !important;
	}
	.kt-hero .et-pb-controllers {
		display: none;
	}
}
