/* Variablen */
:root {
	--dark: #2C2C2C;
	--dark-r: 44;
	--dark-g: 44;
	--dark-b: 44;
	--light: #F1EDE5;
	--nav-current: #870E00;
	--nav-hover: #F3AB3D;
	--headline: #FFA850;
	--link: #FF5F00;
	--important: #870E00;
	--footnote: #8A8A8A;
	
	--font-headline: "Romeo", Impact, Haettenschweiler, 'Franklin Gothic Bold', Charcoal, 'Helvetica Inserat', 'Bitstream Vera Sans Bold', 'Arial Black', sans-serif;
	--font-content: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif;
	--font-monospace: 'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;
}

/* Font */
@font-face{
	font-family: 'Romeo';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url('/font/Romeo.eot');
	src: url('/font/Romeo.eot?#iefix') format('embedded-opentype'),
		url('/font/Romeo.woff2') format('woff2'),
		url('/font/Romeo.woff') format('woff'),
		url('/font/Romeo.ttf') format('truetype'),
		url('/font/Romeo.svg#Romeo') format('svg');
}

/* Allgemein */
*,*:before,*:after,*::before,*::after {
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: none;
	-ms-text-size-adjust: none;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
html {
	height: 100%;
	scroll-behavior: smooth;
}
body {
	height: 100%;
	background: var(--dark);
	font-size: 1em;
	line-height:1.4;
	font-family: var(--font-content);
	color: var(--light);
	-webkit-overflow-scrolling: touch;
}
section,article,aside,footer,header,nav,hgroup {
	display: block;
}
article,aside,blockquote,body,center,dd,details,dialog,div,dl,dt,figure,figcaption,fieldset,footer,form,header,hr,html,h1,h2,h3,h4,h5,h6,label,legend,li,main,menu,nav,ol,p,pre,section,summary,ul {
	margin: 0;
	padding: 0;
}
ol,ul,li {
	list-style: none;
}
code,kbd,tt,var,samp,pre {
	font-family: var(--font-monospace);
	font-weight: normal;
	font-style: normal;
}
b,strong {
	font-weight: bold;
}
i,var,em,cite {
	font-style: italic;
}
a img {
	border: 0;
}
img {
	width: auto;
	height: auto;
	max-width: 100%;
}
.noselect {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.center {
	text-align: center;
}


/* Schrift Allgemein */
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {
	color: inherit !important;
}
#footer .since,
#header-wrap,
h1 {
	font-family: var(--font-headline);
}
h1 {
	color: var(--headline);
	font-size: 26px;
	letter-spacing: 1px;
	font-weight: normal;
	line-height: 1.2;
}

.anchor {
	position: absolute;
	margin-top: -18vw;
}
@media all and (min-width:1180px) {
	.anchor  {
		margin-top: -210px;
	}
}

/* Content */
#content {
	margin-top: 18vw;
	padding-bottom: 3em;
}
@media all and (min-width:1180px) {
	#content {
		margin-top: 210px;
	}
}
#content::before,
#content::after {
	content: "";
	display: block;
	position: fixed;
	top: 10vw;
	height: calc(100vh - 10vw);
	overflow: hidden;
	z-index: -2;
	background-color: var(--dark);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: scroll;
}
#content::after {
	z-index: -1;
	background-color: transparent;
}
@media all and (min-width:1200px) {
	#content::before,
	#content::after {
		top: 120px;
		height: calc(100vh - 120px);
	}
}
@media all and (max-width:1024px) {
	#content::before,
	#content::after {
		top: 10vw;
		height: calc(100vh - 10vw);
	}
}
#content > section {
	padding: 0 3.2vw;
}
@media all and (min-width:1180px) {
	#content > section {
		padding: 0 2.5em;
	}
}
#content a {
	color: var(--link);
	text-decoration: none;
}
#content a:hover {
	text-decoration: underline;
}


/* Footer */
#footer-bg {
	border-top: 1px solid var(--light);
	background: transparent url(/img/background-footer-chemiefabrik-dresden.webp) no-repeat top center;
	background-size: cover;
}
#footer-bg-shadow {
	background: rgba(var(--dark-r), var(--dark-g), var(--dark-b), 0.8);
	padding: 4em 1em 1.5em 1em;
}
#footer a {
	color: var(--light);
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
}


/* Seitlichte Abstaende Content/Footer */
#content, #footer {
	margin-left: auto;
	margin-right: auto;
	width: 1188px;
	max-width: 100%;
}
#content::before,
#content::after {
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: 1188px;
	max-width: 100%;
}


/* Header */
#header-wrap {
	z-index: 9999;
	position: fixed;
	top: 0;
	left: -3px;
	width: 108vw;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	background: transparent url(/img/header-chemiefabrik-dresden.webp) no-repeat top center;
	background-size: contain;
}
@media all and (min-width:1204px) {
	#header-wrap {
		left: calc((100% - 1280px) / 2 + 44px);
	}
}
#header-wrap:not(.noclip) {
	clip-path: polygon(0 0, 100% 0, 100% 45%, 92% 85%, 90% 83%, 90% 72%, 52.8% 60%, 52.8% 52%, 36.7% 65%, 26.4% 58%, 26.2% 72%, 16% 58%, 5.3% 72%, 4% 72%, 3% 58%, 2% 58%, 1.7% 100%, 0 100%);
}
#header-content .desktop ul {
	margin-left: 15vw;
	height: 9.8vw;
	width: 38vw;
}
@media all and (min-width:1180px) {
	#header-content .desktop ul {
		margin-left: 177px;
		width: 400px;
		height: 116px;
	}
}
#header-height {
	position: relative;
	width: 100%;
	padding-bottom: 22.01%;
}
#header-content {
	position: absolute;
	width: 100%;
	height: 100%;
	color: var(--dark);
}
#header-content a {
	color: inherit;
	text-decoration: none;
	transition-property: all;
	transition-duration: 0.4s;
	transition-timing-function: ease;
	transition-delay: 0s;
	transition-behavior: normal;
}
#header-content .desktop a:hover {
	color: var(--nav-hover);
	
}
#header-content a[aria-current="page"]:hover,
#header-content a[aria-current="page"] {
	color: var(--nav-current);
}


/* Navigation */
#header-content .mobile nav {
	display: block;
	position: fixed;
	z-index: 2;
	top: 11.2vw;
	left: 0;
	background: var(--light);
	padding-top: 10px;
	width: min(220px, 45vw);
	bottom: 0;
	transform-origin: 0% 0%;
	transform: translate(-100%, 0);
	transition: none;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
}
#header-content .mobile nav a {
	font-size: 34px;
	display: block;
	padding-left: 4.5vw;
}
#header-content .mobile nav[aria-hidden="false"] {
	transform: none;
	transition: transform 0.3s;
}
@media all and (min-width:1025px) {
	#header-content .mobile {
		display: none;
	}
	#header-content .desktop ul {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: flex-end;
		align-content: flex-end;
		gap: 16px;
		font-weight: 500;
	}
	#header-content .desktop ul a {
		font-size: 30px;
	}
}
@media all and (max-width:1024px) {
	#header-content .desktop {
		display: none;
	}
	#hamburger {
		height: 11.4vw;
		background: var(--light);
		width: 42vw;
		cursor: pointer;
		padding-top: 3vw;
		padding-left: 4.5vw;
	}
	#hamburger svg {
		fill: currentColor;
		vertical-align: top;
		width: 6vw;
		height: 6vw;
		line-height: 1;
	}
	#hamburger span {
		display: inline-block;
		position: relative;
		padding-left: 2px;
		line-height: 1;
		letter-spacing: 1px;
		text-transform: uppercase;
		font-size: 6.5vw;
	}
	#hamburger span::after {
		content: ':';
		text-transform: none;
		display: block;
		position: absolute;
		top: -2.6vw;
		right: 0.65vw;
		transform: rotate(90deg);
		font-size: 5.5vw;
	}
	#hamburger[aria-expanded="true"] svg.open,
	#hamburger[aria-expanded="false"] svg.close {
		display: none;
	}
}


/* Footer sticky bottom */
#wrapper {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}
#header-wrap,
#footer {
	flex-grow: 0;
	flex-shrink: 0;
}
#content {
	flex-grow: 1;
}


/* Content minheight 100 */
@media all and (max-height:1366px) {
	body.page-notfound #content {
		min-height: calc(100vh - 18vw);
	}
}
@media all and (min-width:1180px) and (max-height:1366px) {
	body.page-notfound #content {
		min-height: calc(100vh - 210px);
	}
}


#footer .club {
	display: block;
	text-transform: uppercase;
}
#footer .since {
	display: block;
	font-size: 58px;
	letter-spacing: 1px;
}
#footer .copyright {
	color: var(--footnote);
}
#footer-bg-shadow {
	position: relative;
}
#footer-bg-shadow .links {
	position: absolute;
	top: 5.5em;
	right: 9em;
}
#footer-bg-shadow .links li::before {
	content: '☢';
	display: inline-block;
	padding-right: 0.5em;
}
#footer-bg-shadow .links a {
	padding: 0.1em 0;
	display: inline-block;
}
@media all and (max-width:760px) {
	#footer .since {
		font-size: 30px;
	}
	#footer-bg-shadow .links {
		top: 4em;
		right: 2em;
	}
}
@media all and (max-width:560px) {
	#footer {
		text-align: center;
	}
	#footer-bg-shadow .links {
		position: static;
		margin-left: 0;
		margin-top: 1.5em;
		margin-bottom: 2em;
	}
	#footer-bg-shadow .links li::before {
		display: none;
	}
}

.uppercase {
	text-transform: uppercase;
}

.colornegative {
	color: red;
}

dialog.msg {
	position: fixed;
	z-index: 99999;
	margin: 0;
	color: inherit;
	font: inherit;
	font-size: 1.1em;
	line-height: inherit;
	background: var(--bg-content);
	border: none;
	border-radius: 0.75em;
	box-shadow: 0 0 0 10000em rgba(0,0,0,0.6);
	top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
	padding: 2em;
	width: 400px;
	max-width: 90%;
	color: var(--light);
}
dialog.msg.error {
	background: firebrick;
}
dialog.msg.success {
	background: rgb(69, 139, 0);
}
#content dialog > a {
	position: absolute;
	top: 0.25em;
	right: 0.75em;
	cursor: pointer;
}
#content dialog > a > span {
	font-size: 1.2em;
}
#content dialog > a,
#content dialog > a:hover {
	color: inherit;
	text-decoration: none;
}

form > label,
form > button[type="submit"] {
	margin-top: 1.2em;
}
form > label.checkbox,
form .altcha {
	margin: 1.6em 0;
}
form .altcha {
	width: 100%;
	max-width: 100%;
}
form > label {
	display: block;
	margin-bottom: 0.2em;
}
form > textarea,
form > input:not([type="checkbox"]),
form > select {
	width: 100%;
	border: 1px solid rgba(0,0,0,0.2);
	background: var(--light);
	font-family: inherit;
	color: var(--dark);
	border-radius: 3px;
	font-size: 1em;
	padding: 0.3em 0.2em 0.3em 0.5em;
}
form > textarea {
	line-height: 1.4;
	height: 10em;
	resize: vertical;
}
form > input:not([type="checkbox"]),
form > select {
	height: 2.4em;
	line-height: 1em;
}
form > input:not([type="checkbox"]) {
	-webkit-appearance: none;
	-moz-appearance: none;
}
form > select:focus,
form > textarea:focus,
form > input:not([type="checkbox"]):focus {
	outline: 2px solid var(--headline);
	outline-offset: 1px;
}
form > label.checkbox {
	user-select: none;
	-webkit-user-select: none;
	position: relative;
}
form > label.checkbox input[type="checkbox"] {
	display: block;
	width: 1px;
	height: 1px;
	opacity: 0;
	position: absolute;
	top: 19px;
	left: 10px;
	z-index: -1;
	appearance: none;
}
form > label.checkbox input[type="checkbox"] + span.checkbox {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: var(--light);
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 3px;
	margin-right: 0.5em;
	margin-top: 0.15em;
	position: relative;
	vertical-align: top;
	cursor: pointer;
}
form > label.checkbox input[type="checkbox"]:checked + span.checkbox {
	border-color: transparent;
	background-color: rgb(69, 139, 0);
}
form > label.checkbox input[type="checkbox"]:focus + span.checkbox {
	outline: 2px solid var(--headline);
	outline-offset: 1px;
}
form > label.checkbox input[type="checkbox"]:checked + span.checkbox::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 0px;
	width: 8px;
	height: 14px;
	border: solid var(--light);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
form > button[type="submit"] {
	display: block;
	appearance: button;
	backface-visibility: hidden;
	background-color: rgb(69, 139, 0);
	border-radius: 3px;
	border-width: 0;
	box-shadow: none;
	color: var(--light);
	cursor: pointer;
	font-family: inherit;
	font-size: 1em;
	text-transform: uppercase;
	font-weight: bold;
	height: 3em;
	line-height: 1.15;
	outline: none;
	overflow: hidden;
	padding: 0 1.5em;
	position: relative;
	text-align: center;
	transform: translateZ(0);
	transition: all .2s,box-shadow .08s ease-in;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	width: 100%;
}
form > button[type="submit"]:disabled {
	cursor: default;
	opacity: 0.5;
}
form > button[type="submit"]:focus {
	box-shadow: 0px 0px 0px 5px rgba(69, 139, 0, 0.3);
}