:root {
	--main-site-width: 1126px;
	--site-border-width: 15px;
	--main-column-gap: 20px;
	--half-column-gap: calc(var(--main-column-gap) * 0.5);
	--main-row-gap: 40px;
}

html {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
	height: 100%;
	font-size: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 56px;
}

*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
	margin: 0;
	padding: 0;
}

*:focus,
*:focus-visible {
	outline-style: none;
}

::-moz-focus-inner {
	border: 0;
}

::selection {
	background: #df989d;
	color: #000;
}

::-moz-selection {
	background: #df989d;
	color: #000;
}

body {
	position: relative;
	min-height: 100vh;
	background: #f2f2f2;
	color: #363636;
	font-family: "Inter", sans-serif;
	font-size: 1.125rem;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	line-height: 1.5em;
	letter-spacing: 0.02em;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #d91014;
	font-weight: 400;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: #d91014;
	text-decoration: none;
}

a:active {
	color: #d91014;
	text-decoration: none;
}

figure a:focus-visible img {
	outline: 5px solid #d91014;
	outline-offset: -5px;
}

h1 {
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1.3em;
	margin-top: 1.5em;
	margin-bottom: 0.6em;
}

h2 {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.3em;
	margin-top: 1.5em;
	margin-bottom: 0.6em;
}

h3 {
	font-size: 1.563rem;
	font-weight: 500;
	line-height: 1.3em;
	margin-top: 1.1em;
	margin-bottom: 0.5em;
}

h4 {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3em;
	margin-top: 1.1em;
	margin-bottom: 0.4em;
}

h5 {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3em;
	margin-top: 1.1em;
	margin-bottom: 0.3em;
}

h2 + h3 {
	font-weight: 300;
	color: #d91014;
	margin-top: -0.6em;
	margin-bottom: 1.4em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
	margin-top: 0;
}

p {
	margin-bottom: 0.7em;
}

p:last-child {
	margin-bottom: 0.2em;
}

p > a {
	color: #d91014;
	text-decoration: none;
	font-weight: 300;
	border-bottom: 2px solid hsla(356, 86%, 46%, 0.6);
	padding-bottom: 1px;
	margin-bottom: -2px;
}

p > a:hover,
p > a:focus-visible,
.download-element > a:hover,
.download-element > a:focus-visible {
	background-color: #d91014;
	color: #fff;
	outline: #d91014 5px solid;
	outline-offset: 0;
	border-bottom: 0;
	margin-bottom: 0;
}

b {
	font-weight: 500;
}

div[class^="content-"] strong {
	font-weight: 500;
}

#header .inside,
#nav-section .inside,
.content-clamp {
	width: min(var(--main-site-width), 100% - calc(var(--site-border-width) * 2));
	margin-inline: auto;
}

#wrapper {
	min-height: 100vh;
	display: flex;
	flex-flow: column nowrap;
}

/* Header
==============================*/

#header {
	background-image: url(../bilder/header_bg_1.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center top;
}

#header .inside {
	min-height: 400px;
}

#nav-section {
	position: sticky;
	top: -1px;
	z-index: 20;
	margin-top: -3.6em;
	border-bottom: 4px solid #d91014;
	background: rgba(0, 0, 0, 0.59);
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
	font-size: 1.125rem;
}

#nav-section.isSticky {
	background: rgba(0, 0, 0, 0.7);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#nav-section .inside {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
}

/* Logo
----------------------------- */

#logo {
	position: absolute;
	bottom: 0;
	left: -1em;
	z-index: 50;
	display: block;
	background-color: #fff;
	border-bottom: 3px solid #cacaca;
}

#logo a {
	display: block;
	background-image: url(../bilder/heiss_logo.svg);
	background-size: cover;
	background-repeat: no-repeat;
	width: 16.5em;
	height: 5em;
	margin: 1em 1em 1.3em;
	font-size: 1rem;
}

#logo_b a {
	background-image: url(../bilder/heiss_logo_b.svg);
	background-size: cover;
	background-repeat: no-repeat;
	display: block;
	width: 11.5em;
	height: 2em;
	font-size: 1rem;
	opacity: 0;
}

#logo a span,
#logo_b a span {
	font-size: 0;
}

#nav-section.isSticky #logo_b a {
	opacity: 0.9;
	transition: all 0.4s ease;
	transition-delay: 0.4s;
}

/* Main Navigation
----------------------------- */

#main_nav {
	margin-left: auto;
}

#main_nav .level_1 {
	display: flex;
	flex-flow: row nowrap;
	gap: 1em;
	list-style: none;
	justify-content: flex-end;
	align-items: baseline;
	margin-bottom: 0;
}

#main_nav .level_1 > li {
	display: block;
}

#main_nav .level_1 > li > a,
#main_nav .level_1 > li > strong {
	position: relative;
	display: block;
	border: none;
	outline: none;
	padding: 1.1em 0.4em 1em;
	color: #fff;
	font-weight: 300;
	transition: all 0.2s ease;
}

#nav-section.isSticky #main_nav .level_1 > li > a,
#nav-section.isSticky #main_nav .level_1 > li > strong {
	padding: 0.5em 0.4em 0.7em;
}

#main_nav .level_1 > li:not(.nav_button) > a::after,
#main_nav .level_1 > li > strong::after {
	position: absolute;
	content: "";
	width: 0;
	height: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin-left: auto;
	margin-right: auto;
	border-left: 0.5em solid transparent;
	border-right: 0.5em solid transparent;
	border-bottom: 0.8em solid transparent;
}

#main_nav .level_2 {
	display: none;
	position: absolute;
	background-color: #fff;
	min-width: 160px;
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
	z-index: 1;
}

#main_nav .level_2 > li {
	float: none;
	display: block;
	text-align: left;
}

#main_nav .level_2 a,
#main_nav .level_2 strong {
	color: #292c33;
	padding: 0.7em 1em;
	display: block;
	font-weight: 300;
	font-size: 1.1rem;
}

#main_nav .level_2 strong {
	color: #8f95a4;
}

#main_nav .level_2 .trail {
	color: #d91014;
}

#main_nav .level_1 > li > a:hover,
#main_nav .level_1 > li > a:focus-visible {
	background-color: rgba(217, 16, 19, 0.5);
	color: #fff;
}

#main_nav .level_1 > li.trail > a::after,
#main_nav .level_1 > li > strong::after {
	border-bottom-color: #d91014;
}

#main_nav .level_2 > li a:hover,
#main_nav .level_2 > li a:focus-visible {
	background-color: #eeeeee;
	color: #d91014;
}

#main_nav .level_1 > .submenu:hover .level_2,
#main_nav .level_1 > .submenu:focus-visible .level_2 {
	display: block;
}

#main_nav .level_1 > .submenu:focus-within .level_2 {
	display: block;
}

#main_nav .invisible:focus-visible {
	clip: unset;
	height: auto;
	width: auto;
	margin: 10px 0 0 0;
	display: block;

	background-color: #fff;
	border-radius: 5px;
	border-top-right-radius: 6px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-left-width: 0;
	border-top-width: 0;
	padding: 0.5em 1em;
	text-decoration: underline;

	z-index: 50;
}

#main_nav .level_1 > li.home_button a span,
#main_nav .level_1 > li.nav_button a span {
	font-size: 0;
	line-height: 0;
	display: inline-block;
	width: 0;
}

#main_nav .level_1 > li.home_button a::before,
#main_nav .level_1 > li.nav_button a::after {
	margin-right: 0;
	margin-left: 0;
}

.home_button a::before,
.nav_button a::after {
	font-family: "Font Awesome 5 Free";
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}

.home_button a::before {
	font-weight: 900;
	content: "\f015";
	margin-right: 0.4em;
}

.nav_button a::after {
	font-weight: 900;
	content: "\f0c9";
	margin-left: 0.4em;
}

#main_nav .level_1 > li.mobile_site_name {
	display: none;
}

/* Mobile Navi
----------------------------- */

.mm-listitem--selected > .mm-listitem__text {
	background: transparent;
	color: #d91014 !important;
	font-weight: 500;
}

/* Content
==============================*/

.mod_article {
	border-bottom: 5px solid #fff;
	background: #f2f2f2;
}

.mod_article:last-child {
	border-bottom: none;
}

.mod_article:nth-child(odd) {
	background: #f9f9f9;
}

.article__inside {
	margin-top: 3em;
	margin-bottom: calc(3.4em - var(--main-row-gap));
}

.mod_article.site_info {
	background-color: #d91014;
	color: #fff;
	text-align: center;
	font-size: 1.625rem;
	font-weight: 200;
	line-height: 1.3em;
}

.mod_article.site_info .article__inside {
	margin-bottom: 0.8em;
	margin-top: 0.7em;
}

.mod_article.site_info .content-text {
	width: 80%;
	margin-inline: auto;
	margin-bottom: 0;
	padding-top: 0.2em;
	padding-bottom: 0.2em;
}

/* Spalten C5 ??
----------------------------- */

.formbody,  /* C5 ?? */
.layout_full,  /* C5 ?? */
.dk_grid_12 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: var(--main-column-gap);
}

.formbody > *,  /* C5 ?? */
.layout_full > *,  /* C5 ?? */
.dk_grid_12 > * {
	grid-column: span 12;
}

.layout_full > *:not(.content-headline),  /* C5 ?? */
.dk_grid_12 > *:not(.content-headline) {
	margin-bottom: var(--main-row-gap);
}

.dk_col_2 {
	grid-column: span 6;
}

.dk_col_3 {
	grid-column: span 4;
}

.dk_col_4 {
	grid-column: span 3;
}

.dk_col_6 {
	grid-column: span 2;
}

.dk_content_col_2 {
	columns: 24em auto;
	column-gap: var(--main-column-gap);
}

.dk_content_col_3 {
	columns: 18em auto;
	column-gap: var(--main-column-gap);
}

/* content icons
----------------------------- */

a[href^="http"]:not(.download-element a)::after {
	font-family: "Font Awesome 5 Free";
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font-weight: 900;
	content: "\f35d";
	font-size: 0.8em;
	margin-left: 0.2em;
}

figure a {
	position: relative;
}

figure a::after {
	position: absolute;
	bottom: 0;
	right: 0;
	margin-right: 0.4em;
}

/* Bilder
----------------------------- */

figure {
	background-color: #fafafa;
}

figure img {
	margin: 0 auto;
}

/* C5 ?? */
figure.float_right {
	width: calc((100% - (var(--main-column-gap) * 2)) * 0.33333);
	margin-left: var(--main-column-gap);
	margin-bottom: var(--main-column-gap);
}

figcaption {
	background-color: #fff;
	padding: 0.2em 0.4em;
	font-size: 0.9rem;
	line-height: 1.4em;
}

/* Button C5 ??
----------------------------- */

.dk_button {
	margin-bottom: 0.8em;
	margin-right: 0.8em;
	display: inline-block;
}

.dk_button:last-of-type {
	margin-right: 0;
}

.dk_button a,
.back a,  /* C5 ?? */
button,
.more a,  /* C5 ?? */
nav[data-pagination] ol li a,
nav[data-pagination] ol li strong {
	display: inline-block;
	background-color: #ffffff;
	border: 3px solid #d91014;
	padding: 0.3em 1em;
	margin: 0;
	color: #363636;
	font-size: 1em;
	font-weight: 400;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	text-decoration: none;
	text-transform: uppercase;
}

.dk_button a:hover,
.dk_button a:focus-visible,
.back a:hover,  /* C5 ?? */
.back a:focus-visible,
button:hover,
button:focus-visible,
.more a:hover,  /* C5 ?? */
.more a:focus-visible,
nav[data-pagination] ol li a:hover,
nav[data-pagination] ol li a:focus-visible {
	background-color: #d91014;
	border-color: #d91014 !important;
	border-width: 3px !important;
	margin: 0;
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
}

/* C5 ?? */
.form_link {
	margin-top: 1rem;
}

/* C5 ?? */
.form_link a {
	display: inline-block;
	background-color: #d91014;
	padding: 0.5em 1.7em 0.55em;
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 400;
	text-decoration: none;
	transition: all 0.2s ease;
}

/* C5 ?? */
.form_link a:hover,
.form_link a:focus-visible {
	background-color: #d91014;
	color: #fff;
}

/* Pagination
----------------------------- */

nav[data-pagination] {
	margin-top: 1.5em;
}

nav[data-pagination] > ol {
	display: flex;
	flex-flow: row wrap;
	gap: 0.5em;
	margin-bottom: 0;
}

nav[data-pagination] ol li {
	list-style: none;
}

nav[data-pagination] ol li a {
	min-width: 2.5em;
	padding: 0;
	line-height: 2em;
	text-align: center;
}

nav[data-pagination] ol li a.active {
	color: #363636;
	border-color: hsla(0, 0%, 21%, 0.5);
}

/* Galerie
----------------------------- */

.content-gallery > ul {
	display: grid;
	gap: var(--main-column-gap);
	--ideal-size: 10em;
	grid-template-columns: repeat(auto-fit, minmax(min(max(100% / var(--max-column-count) - var(--main-column-gap), var(--ideal-size)), 100%), 1fr));
}

.content-gallery--cols-2 {
	--max-column-count: 2;
}

.content-gallery--cols-3 {
	--max-column-count: 3;
}

.content-gallery--cols-4 {
	--max-column-count: 4;
}

.content-gallery--cols-5 {
	--max-column-count: 5;
}

.content-gallery--cols-6 {
	--max-column-count: 6;
}

.content-gallery--cols-7 {
	--max-column-count: 7;
}

.content-gallery--cols-8 {
	--max-column-count: 8;
}

/* Listen
----------------------------- */

.content-text ul,
.content-list ul,
.content-text ol,
.content-list ol {
	margin-bottom: 1.35em;
	margin-left: 2px;
	list-style: none;
}

.content-text ul:last-child,
.content-list ul:last-child,
.content-text ol:last-child,
.content-list ol:last-child {
	margin-bottom: 0.3em;
}

.content-text ul li,
.content-list ul li,
.content-text ol li,
.content-list ol li {
	margin-bottom: 0.7em;
	margin-left: 1.5em;
}

.content-text ul li,
.content-list ul li {
	list-style-image: url(../bilder/list_polygon.svg);
	padding-left: 0.3em;
}

.content-text ol,
.content-list ol {
	counter-reset: li;
}

.content-text ol li,
.content-list ol li {
	counter-increment: li;
}

.content-text ol li::before,
.content-list ol li::before {
	content: "." counter(li);
	color: #d91014;
	display: inline-block;
	font-weight: 400;
	font-size: 0.8em;
	width: 1em;
	margin-left: -1.5em;
	margin-right: 0.5em;
	text-align: right;
	direction: rtl;
}

/* Standard Tabellen
----------------------------- */

.content-table {
	overflow-x: auto;
}

.content-table table {
	width: 100%;
	table-layout: fixed;
}

.content-table th {
	font-weight: 500;
}

.content-table td,
.content-table th {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	padding-left: var(--half-column-gap);
	padding-right: var(--half-column-gap);
}

.content-table td.col_first,
.content-table th.col_first {
	padding-left: 0;
}

.content-table td.col_last,
.content-table th.col_last {
	padding-right: 0;
}

.content-table tbody tr {
	border-top: 1px solid hsla(0, 0%, 0%, 0.1);
}

/* Downloads
----------------------------- */

.download-element a span.size {
	font-size: 0.8rem;
	color: #8f95a4;
	display: inline-block;
}

.download-element {
	padding: 0.5em;
	border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}

.download-element:last-child {
	border-bottom: none;
}

/* Footer
==============================*/

#footer {
	margin-top: auto;
	font-size: 1rem;
}

.footer_part1 {
	background: #2b2b2b;
	color: #ececec;
}

.footer_part1 .content-clamp {
	padding-top: 30px;
}

.footer_part1 .heiss_red {
	color: #ed181c;
	font-weight: 800;
}

.footer_part1 p > a {
	color: #ed181c;
	font-weight: 600;
}

.footer_part1 p > a:hover,
.footer_part1 p > a:focus-visible {
	color: #fff;
}

.footer_part2 a {
	text-decoration: none;
	border-color: transparent;
	transition: border-color 0.2s ease;
	color: #d91014;
}

.footer_part2 a:hover,
.footer_part2 a:focus-visible {
	border-bottom: 2px solid #d91014;
	margin-bottom: -2px;
}

.footer_part2 .content-clamp {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	gap: var(--main-column-gap);
	padding-top: 15px;
	padding-bottom: 17px;
}

.footer_nav {
	overflow: visible;
	font-size: 1.25rem;
}

.footer_nav ul {
	display: flex;
	flex-flow: row wrap;
	column-gap: 2em;
	row-gap: 0.8em;
	margin-bottom: 0;
}

.footer_nav strong {
	font-weight: 300;
	color: #363636;
}
