/*
Theme Name: Zuppwerk Divi 5 Child
Theme URI: https://zuppwerk.de/
Description: Schlankes, nicht aktiviertes Divi-5-Child-Theme für Zuppwerk.
Author: SONETIX
Version: 0.1.5
Text Domain: zuppwerk-divi5-child
Template: Divi
*/

/* Layout- und Modul-CSS verbleiben im jeweiligen Divi-5-Code-Modul. */

/* Keep the three existing Divi header columns in one desktop row. Divi 5
 * otherwise promotes the last 1/4 column below the 1/4–1/2 row. */
@media (min-width: 981px) {
	.et-l--header .et_pb_section_0_tb_header {
		display: flex;
		align-items: center;
		min-height: 96px;
		padding: 16px 4vw;
	}

	.et-l--header .et_pb_row_0_tb_header {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		width: auto;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.et-l--header .et_pb_column_0_tb_header {
		flex: 0 0 180px;
		width: 180px;
		min-width: 0;
		max-width: 180px;
		margin: 0;
	}

	.et-l--header .et_pb_column_1_tb_header {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
	}

	.et-l--header .et_pb_column_2_tb_header {
		flex: 0 0 160px;
		width: 160px;
		min-width: 0;
		max-width: 160px;
		margin: 0 32px 0 0;
	}

	.et-l--header .et_pb_image img {
		width: auto;
		max-height: 58px;
	}

	.et-l--header .et_pb_button_module_wrapper,
	.et-l--header .et_pb_button_0_tb_header_wrapper .et_pb_button_0_tb_header {
		margin-bottom: 0 !important;
	}

	.et-l--header .et_pb_button_0_tb_header_wrapper .et_pb_button_0_tb_header {
		min-height: 48px !important;
		padding: 9px 14px !important;
		font-size: 15px !important;
	}
}

/* Header chrome only: keeps the global Divi header compact on tablet/mobile. */
@media (max-width: 980px) {
	.et-l--header .et_pb_section_0_tb_header {
		display: flex;
		align-items: center;
		min-height: 64px;
		padding: 8px 12px;
	}

	.et-l--header .et_pb_row_0_tb_header {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		width: auto;
		min-width: 0;
		min-height: 0;
		margin: 0;
		padding: 0;
	}

	.et-l--header .et_pb_column_0_tb_header {
		flex: 0 0 108px;
		width: 108px;
		min-width: 0;
		max-width: 108px;
		margin: 0;
	}

	.et-l--header .et_pb_column_1_tb_header {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
	}

	.et-l--header .et_pb_column_2_tb_header {
		flex: 0 0 132px;
		width: 132px;
		min-width: 0;
		max-width: 132px;
		margin: 0;
	}

	.et-l--header .et_pb_image,
	.et-l--header .et_pb_image_wrap {
		display: block;
	}

	.et-l--header .et_pb_image img {
		width: auto;
		max-height: 34px;
	}

	.et-l--header .et_pb_button_module_wrapper,
	.et-l--header .et_pb_button {
		margin-bottom: 0 !important;
	}

	.et-l--header .et_pb_button_0_tb_header_wrapper .et_pb_button_0_tb_header {
		min-height: 40px !important;
		padding: 8px 10px !important;
		font-size: 13px !important;
	}
}
