/*********************************************************
VARIABLES
*********************************************************/

:root {
	/* ---------- Base ---------- */
	--font-body: "Open Sans", Arial, sans-serif;
	--font-display: "Source Code Pro", monospace;
	--font-display: "Roboto Mono", monospace;

	--container: 1320px;
	--gutter: clamp(1.75rem, 5vw, 4rem);

	--transition-fast: 180ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 600ms cubic-bezier(.22, 1, .36, 1);

	--angle-base-left: 0.6deg;
	--angle-base-right: -0.6deg;
	--angle-logo: -1.6deg;

	--box-shadow: 0 0px 40px -20px rgba(0, 0, 0, 0.4);

	/* ---------- Theme ---------- */
	--color-bg: #fefffa;
	--color-bg-section: #f1f5d7;

	--color-text: #151611;
	--color-text-soft: #51554a;
	--color-text-faint: #9da196;
	--color-text-invert: #ffffff;

	--color-accent: rgb(154, 193, 0);
	--color-accent-dark: rgb(140, 175, 0);
	--color-accent-soft: #e6edc2;
	--color-extra: rgb(0, 154, 193);
	--color-dark: #181a14;

	--color-line: #dce2cc;

	/* ---------- Hero ---------- */
	--color-bg-hero: #fbfdf1;
	/* --color-hero-pixels: rgb(88, 188, 179); */
	--color-hero-pixels: rgb(161, 188, 88);
}





/*********************************************************
RESET
*********************************************************/

*,
*::before,
*::after {
	box-sizing: border-box;
}

img {
	display: block;
	width: 100%;
	height: auto;
}

button,
input,
select,
option,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}



/*********************************************************
BASICS
*********************************************************/

html {
	scroll-behavior: smooth;
	scroll-padding-top: 3.8rem;
	font-size: clamp(14px, 2.5vw, 16px);
	line-height: 1.65;
	background: var(--color-bg);
}

body {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-body);
	overflow-x: hidden;
}

h1,
h2,
h3 {
	text-wrap: balance;
	line-height: 1.1;
	font-family: var(--font-display);
	font-weight: 700;
	margin-bottom: 0.6em;
}

h1 {
	font-size: clamp(2.75rem, 14vw, 4.5rem);
}

h2 {
	font-size: clamp(2.75rem, 14vw, 4.5rem);
	hyphens: auto;
}

h3 {
	font-size: clamp(1.4rem, 2vw, 2rem);
}


::selection {
	background: var(--color-extra);
	color: var(--color-text-invert);
}

:focus,
#logo:focus:before,
form :focus-within {
	outline: 3px solid var(--color-extra);
	outline-offset: 2px;
}

#logo:focus {
	outline: none;
}

:focus:not(:focus-visible),
:focus:not(:focus-visible):before {
	outline: none !important;
	outline-color: transparent;
}

:active,
:active::before,
:active::after {
	outline-color: transparent !important;
}

.accent {
	color: var(--color-accent);
}

.accent-dark {
	color: var(--color-accent-dark);
}

.marker {
	position: relative;
	z-index: 0;
}

.marker::after {
	position: absolute;
	z-index: -1;
	right: 0;
	bottom: .1em;
	left: -1.5%;
	height: 0.8em;
	max-height: 1.6rem;
	width: 105%;
	background: url(markerstrich.webp);
	background-size: 100% 100%;
	content: "";
	transform: translateY(15%) rotate(-1.5deg);
}

.lead-paragraph {
	margin-bottom: 2rem;
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	line-height: 1.4;
}

@media (min-width: 450px) {
	h2 {
		hyphens: none;
	}
}

@media (max-width: 450px) {
	h2:has(.marker) {
		position: static;
	}

	h2 .marker {
		position: static;
	}
}



/*********************************************************
BUTTONS
*********************************************************/

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	gap: 0.8em;
	min-height: 2em;
	padding: 0.7em 1.4em;
	border: 1px solid var(--color-dark);
	font-size: 1em;
	font-weight: 700;
	color: var(--color-text-soft);
	transition:
		transform var(--transition-slow),
		background var(--transition-fast),
		color var(--transition-fast),
		border-color var(--transition-fast);
}

.button::after {
	background: var(--color-accent);
	content: "";
	left: -1px;
	top: -1px;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	transform-origin: right;
	transform: scaleX(0);
	position: absolute;
	z-index: -1;
	transition:
		transform var(--transition-slow),
		background var(--transition-fast),
		color var(--transition-fast),
		border-color var(--transition-fast);
}

.button:hover {
	color: var(--color-text-invert);
}

.button:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.button-primary {
	background: var(--color-dark);
	color: var(--color-text-invert);
}

.button-tertiary {
	border: 0px solid var(--color-dark);
	padding: 0.3rem 0;
}

.button-tertiary::after {
	left: 0em;
	width: calc(100%);
	height: 0.2em;
	bottom: -2px;
	top: auto;
	z-index: 5;
}

.button-tertiary:hover {
	color: var(--color-text)
}



/*********************************************************
ACCESSIBILITY
*********************************************************/

.skiplink {
	position: fixed;
	z-index: 999999;
	top: -100px;
	left: 20px;
	padding: 10px 16px;
	color: #fff !important;
	background-color: #000;
}

.skiplink:focus {
	top: 20px;
}







/*********************************************************
SCROLL REVEAL
*********************************************************/

.reveal {
	opacity: 0;
	transform: translateY(25px);
	transition:
		opacity 700ms ease,
		transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.visible {
	opacity: 1;
	transform: translateY(0);
}


/*********************************************************
LAYOUT
*********************************************************/
.container {
	width: min(calc(100% - (var(--gutter) * 2)),
			var(--container));
	margin-inline: auto;
}






/*********************************************************
SECTIONS
*********************************************************/

section {
	padding-block: clamp(5rem, 10vw, 10rem);
	background: var(--color-bg);
	position: relative;
	overflow: hidden;
	min-height: 70svh;
}

section:nth-of-type(odd) {
	background: url(bg.jpg);
	background-size: 100vW 100%;
	background-blend-mode: multiply;
	background-color: var(--color-bg-section);
}

section:nth-of-type(odd)::before {
	position: absolute;
	top: -3rem;
	left: 0%;
	content: "";
	width: 100%;
	height: 3rem;
	z-index: 10;
	background: var(--color-bg);
	transform-origin: bottom left;
	transform: skew(0, var(--angle-base-left));
}

section:nth-of-type(odd)::after {
	position: absolute;
	bottom: -1rem;
	left: 0%;
	content: "";
	width: 100%;
	height: 3rem;
	z-index: 10;
	background: var(--color-bg);
	transform-origin: bottom right;
	transform: skew(0, var(--angle-base-right));
	box-shadow: inset 0 12px 20px -20px #00000090;
}





/*********************************************************
HEADER AND NAVIGATION
*********************************************************/
#site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
}

#site-header::after,
#main-navigation:after {
	position: absolute;
	top: -1rem;
	left: 0;
	width: 100%;
	height: calc(100% + 1rem);
	content: "";
	z-index: -1;
	background: #faffe4a2;
	/* background: color-mix(in srgb, var(--color-bg-section) 45%, var(--color-accent) 15%, transparent 40%); */
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #faffe4;
	transform: skew(0, var(--angle-base-left));
	transform-origin: bottom center;
	transition:
		box-shadow var(--transition-base),
		background var(--transition-base);
	box-shadow: 0 0px 30px -12px #404e0bb0;
}

#site-header.is-scrolled::after {
	box-shadow: 0 0px 30px -12px #404e0bf0;
}



#header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 4.5rem;
}


#logo {
	width: 16rem;
	max-width: 75%;
	height: auto;
	display: block;
	position: relative;
	padding: 1rem;
	flex-shrink: 0;
	z-index: 10;
}

#logo::before {
	content: "";
	position: absolute;
	left: -0.5em;
	top: -1em;
	width: calc(100% + 1em);
	height: calc(100% + 3.5em);
	transform: rotate(var(--angle-logo)) translateY(-2em);
	background-color: var(--color-accent);
	box-shadow: 0 10px 30px -12px #000000c0;
}

#logosvg {
	width: 100%;
	height: auto;
	display: block;
	position: relative;
	color: var(--color-text-invert);
}

#main-navigation {
	position: fixed;
	z-index: -1;
	top: 4rem;
	right: 0;
	left: 0;
	padding: 2.5rem var(--gutter) 2rem;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-1rem);
	transition:
		opacity var(--transition-base),
		transform var(--transition-base),
		background var(--transition-base);
}

#site-header.is-open::after {
	background: color-mix(in srgb, var(--color-bg-section) 70%, var(--color-accent-soft));
}

.is-open #main-navigation {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.is-open #main-navigation::after {
	background: var(--color-bg);
	box-shadow: 0 1.5rem 2rem -1.5rem #000000;
}

#main-navigation ul {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

#main-navigation li {
	border-bottom: 1px solid var(--color-line);
}

#main-navigation li:has(:hover, .active) {
	background: var(--color-accent-soft);
}

#main-navigation a,
#main-navigation button {
	position: relative;
	font-size: 1rem;
	font-weight: 600;
	padding: 1em;
	gap: 0.5em;
	display: flex;
	justify-content: start;
	align-items: center;

}

#main-navigation button {
	border: 0px none;
	background: transparent;
	width: 100%;
}

#menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 0.2rem;
	border: 0;
	background: none;
	color: var(--color-text);
}

#menu-toggle-label {
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
}

#menu-toggle-icon {
	position: relative;
	width: 1.5rem;
	height: 18px;
}

#menu-toggle-icon span {
	position: absolute;
	right: 0;
	left: 0;
	height: 2px;
	background: currentColor;
	transition: transform var(--transition-fast);
}

#menu-toggle-icon span:first-child {
	top: 4px;
}

#menu-toggle-icon span:last-child {
	bottom: 4px;
}

.is-open #menu-toggle-icon span:first-child {
	top: 8px;
	transform: rotate(45deg);
}

.is-open #menu-toggle-icon span:last-child {
	bottom: 8px;
	transform: rotate(-45deg);
}

@media (min-width: 800px) {
	#logo {
		width: clamp(12rem, 25vW, 16rem);
	}

	#menu-toggle {
		display: none;
	}

	#main-navigation {
		position: relative;
		transform: unset;
		opacity: 1;
		z-index: 1;
		padding: 0;
		top: auto;
		pointer-events: auto;

	}

	#main-navigation::after {
		content: unset;
	}

	#main-navigation ul {
		flex-direction: row;
		gap: clamp(6px, 1vw, 1.5em);
	}

	#main-navigation li {
		border-bottom: unset;
	}

	#main-navigation a,
	#main-navigation button {
		padding: clamp(0.5em, 5vW, 0.7em) clamp(0.4em, 1vw + 0.2em, 1em);
		font-size: clamp(14px, 0.5vw + 8px, 16px);
	}

	#main-navigation li:has(:hover, .active) {
		background: transparent;
	}


	#main-navigation a:not(.button)::after,
	button::after {
		position: absolute;
		right: 0.45em;
		bottom: 0.25em;
		left: 0.45em;
		height: 2px;
		background: var(--color-accent);
		content: "";
		transform: scaleX(0);
		transform-origin: right;
		transition: transform var(--transition-base);
	}

	#main-navigation a:hover::after,
	button:hover::after,
	#main-navigation a.active::after,
	button.active::after {
		transform: scaleX(1);
		transform-origin: left;
	}
}

@media (max-width: 799px) {
	#main-navigation a {
		color: var(--color-text-soft);
		background-color: transparent;
		border: 0px none;
	}

	#main-navigation a::after {
		content: unset;
	}
}




/*********************************************************
HERO
*********************************************************/

#start {
	position: relative;
	min-height: calc(100svh - 1rem);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: url(bg.jpg), linear-gradient(170deg, var(--color-text-invert) 40%, var(--color-bg-section));
	background-size: 100vW 100%;
	background-blend-mode: multiply;
	background-color: transparent;

}

#hero-bg {
	position: absolute;
	inset: 0;
	transform: scale(1.1) rotate(-1deg);
	z-index: 0;
	mix-blend-mode: multiply;
}

#hero-inner {
	position: relative;
	z-index: 1;
}

.hero h1 {
	transform: translateX(-0.09em);
	line-height: 1;
	max-width: 1000px;
}

.hero-statement {
	max-width: 40em;
	margin: 0 0 2.5rem;
	color: var(--color-text-soft);
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	line-height: 1.6;
}

.hero h1 strong {
	font-weight: 800;
	color: var(--color-accent);
	line-height: 0.9em;
	display: inherit;
}

@media ((orientation: landscape) and (min-width:850px)) {
	#start {
		height: calc(100svh - 1rem);
	}
}









/*********************************************************
CONTENT BASICS
*********************************************************/
.section-intro {
	max-width: 850px;
	margin-bottom: clamp(3rem, 7vw, 6rem);
}

.intro-text {
	max-width: 650px;
	color: var(--color-text-soft);
	font-size: 1.1rem;
}

.section-intro-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: end;
	max-width: none;
}

.section-intro-split h2 {
	margin-bottom: 0;
}

.section-intro-split .intro-text {
	margin-bottom: 0.5rem;
	hyphens: auto;
	text-align: justify;
}

@media (min-width:1100px) {
	.section-intro-split {
		grid-template-columns: 1fr .7fr;
	}
}









/*********************************************************
CARDS BASICS
*********************************************************/

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	isolation: isolate;
}

.card {
	position: relative;
	min-height: 300px;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	border: 1px solid var(--color-line);
	transition: background var(--transition-base), transform var(--transition-base);
	hyphens: auto;
	text-align: justify;
	background-color: var(--color-bg);
	display: flex;
	flex-direction: column;
	align-items: start;
}

.card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	background: white;
	box-shadow: var(--box-shadow);
}

.card-title {
	display: flex;
	gap: 1em;
	justify-content: start;
	align-items: center;
	margin: 1.5rem 0 2.5rem;
	width: 100%;
}

.card-title>* {
	margin: 0;
}

.card-title h3 {
	font-weight: 700;
}

.card-title svg {
	height: 5rem;
	width: auto;
	margin-left: -0.5rem;
}

.card-title path,
.card-title circle,
.card-title line,
.card-title polygon {
	fill: none;
	stroke: var(--color-accent);
	stroke-width: 1.2px;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.card p {
	margin-bottom: 2rem;
	color: var(--color-text-soft);
}

.card p:last-of-type {
	flex-grow: 1;
}


/*********************************************************
NOTEBOX
*********************************************************/

.notebox {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
	padding: 1.5rem 2rem;
	background: var(--color-accent-soft);
	text-wrap: balance;
	flex-direction: column;
}

.notebox-symbol {
	display: none !important;
}

.notebox p {
	flex-grow: 1;
}

.notebox .button {
	flex-basis: auto;
	width: 100%;
}

.notebox .button:not(:hover) {
	color: var(--color-text);
}

@media (min-width: 900px) {
	.notebox {
		flex-direction: row;
	}

	.notebox .button {
		flex-basis: 15rem;
		width: auto;
	}

	.notebox-symbol {
		font-size: 2em;
		display: block;
	}

}



/*********************************************************
SERVICE
*********************************************************/
.service-offer {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border: 1px dashed var(--color-line);
	border-width: 1px 0;
	font-family: var(--font-display);
	margin-bottom: 1rem;
	width: 100%;
	flex-wrap: wrap;
}

@media (min-width: 900px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*********************************************************
WORKFLOW
*********************************************************/
.workflow-grid .card-title {
	flex-direction: column;
}

@media (min-width: 450px) {
	.workflow-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.workflow-grid .card {
		padding: clamp(1.25rem, 3.5vw, 3rem);
	}
}

@media (min-width: 900px) {
	.workflow-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}


/*********************************************************
PROJEKTE
*********************************************************/
.projects-grid {
	row-gap: 4rem;
}

.project {
	display: block;
}


.project-image {
	box-shadow: 0 0px 40px -20px rgba(0, 0, 0, 0.6);

}

.project-small .project-image img {
	aspect-ratio: 1.6 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.project-info p {
	margin-bottom: 0;
	color: var(--color-text-faint);
}

.project-info h3 {
	margin-top: 0;
}



@media (min-width: 900px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	#projekte .notebox .button {
		flex-basis: 19rem;
	}

	.project-large {
		grid-column: span 2;
	}
}


/*********************************************************
PROJEKTE - LOGO CAROUSEL
*********************************************************/
.logo-carousel {
	width: 100%;
	overflow: hidden;
	position: relative;
	background: transparent;
	margin-bottom: 2rem;
}

.logo-track {
	display: flex;
	width: max-content;
	animation: scroll-logos 45s linear infinite;
	will-change: transform;
}

.logo-item {
	flex: 0 0 auto;
	width: auto;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 3rem;
	transition: transform var(--transition-slow);
}

.logo-item img {
	max-width: 100%;
	width: auto;
	height: 5rem;
	opacity: .75;
	filter: contrast(0.7);
	transition: all var(--transition-slow);
}

.logo-item:hover img {
	transform: scale(1.04);
	filter: contrast(0.9);
}

@keyframes scroll-logos {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}



/*********************************************************
ABOUT ME
*********************************************************/


.about-visual {
	position: relative;
	margin-bottom: 5rem;
	aspect-ratio: 1;
}

.about-photo {
	width: 100%;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--color-line);
}

.about-sticker {
	position: absolute;
	right: 0rem;
	bottom: 0rem;
	display: flex;
	flex-direction: column;
	padding: 0.9rem;
	background: var(--color-accent);
	color: var(--button-text);
	font-family: var(--font-display);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.2;
	transform: rotate(4deg);
	box-shadow: 3px 3px 30px -8px #000000c0;
}


@media (min-width: 450px) {
	.about-grid {
		grid-template-columns: 0.7fr 1.3fr;
	}

	.about-title {
		grid-column: span 2;
	}

	.about-grid .lead-paragraph {
		grid-column: span 2;
	}

	.about-sticker {
		transform: none;
		bottom: -7rem;
		right: auto;
		left: 0;
		margin: 0 auto;
		width: 100%;
	}

	.about-text p:first-child {
		margin-top: 0;
		;
	}
}

@media (min-width: 800px) {
	.about-sticker {
		right: 0rem;
		bottom: 0rem;
		left: auto;
		padding: 0.9rem;
		transform: rotate(4deg);
		width: auto;
	}
}

@media (min-width: 1300px) {
	.about-grid {
		margin-top: 4rem;
		gap: 0 5rem;
	}

	.about-visual {
		order: 1;
		grid-row: span 4;
	}

	.about-title {
		grid-column: span 1;
		order: 2;
		margin-top: 0;
	}

	.about-grid .lead-paragraph {
		grid-column: span 1;
		order: 3;
	}

	.about-text {
		order: 4;
	}
}





/*********************************************************
KONTAKT
*********************************************************/

#kontakt {
	background: var(--color-accent-dark);
	color: #fff;
	position: relative;
	z-index: 1;
}

#kontakt::after {
	background: var(--color-dark);
}

#kontaktwrapper {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

#kontaktwrapper::before,
#kontaktwrapper::after {
	content: "";
	position: absolute;
	width: calc((100% - var(--container)) * 0.5);
	min-width: 6rem;
	height: calc(100%);
	background: url(blender.webp);
	background-size: cover;
	background-position: right top;
	opacity: 0.6;
	z-index: 0;
	left: 0;
	top: 0;
	background-repeat: repeat-y;
	mix-blend-mode: hard-light;
}

#kontaktwrapper::after {
	background-position: right top;
	transform: scaleX(-1);
	right: 0;
	left: unset;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(3rem, 8vw, 9rem);
	align-items: start;
}

#kontakt .lead-paragraph {
	color: var(--color-bg-section);
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	margin-top: 3rem;
}

.contact-details a {
	width: fit-content;
	border-bottom: 2px dotted color-mix(in srgb, var(--color-bg-section) 50%, transparent 50%);
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2vw, 2rem);
	transition: color var(--transition-fast);
	color: #fff !important;
}


.contact-details a::after {
	background: color-mix(in srgb, var(--color-bg-section) 20%, var(--color-accent) 80%);
	;
}


@media (min-width: 800px) {
	.contact-grid {
		grid-template-columns: 1fr .9fr;
	}
}


/*********************************************************
KONTAKTFORM
*********************************************************/

.contact-form-wrapper {
	padding: clamp(1.5rem, 4vw, 3rem);
	color: var(--color-text);
	position: relative;
}

.contact-form-wrapper:before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--color-accent-soft);
	content: "";
}

.form-intro {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 2.5rem;
	position: relative;
	display: inline-block;
	padding-bottom: .2rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: .05rem;
	margin-bottom: 0.5rem;
}

.form-field label {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #aeb3a1;
	;
	border-radius: 0;
	outline: none;
	background: transparent;
	color: var(--color-text);
	resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	border-color: var(--color-accent);
}

.form-field.invalid {
	outline: 1px solid #f00;
}


.switch {
	justify-content: flex-start;
	position: relative;
	padding-left: 3em;
	display: flex;
	font-size: 1rem;
	line-height: 1.4em;
	min-height: 1.6em;
}


.switch input {
	position: absolute;
	margin: 0;
	opacity: 0 !important;
	width: 15px !important;
	z-index: -10;
	padding: 0 !important;
	min-height: 1px;
	min-width: 1px;
	transform: scale(0.1);
}

.switch a {
	padding: 0 !important;
	min-height: unset;
	line-height: 1.4em;
	display: inline;

}

.switch:after,
.switch:before {
	position: absolute;
	content: "";
	left: 0;
	top: 0.1em;
	height: 1.5em;
}

.switch:before {
	width: 2.5em;
	border-radius: 1em;
	background: var(--color-accent-soft);
	border: 1px solid var(--color-text);
	transition: .3s;

}

.switch:after {
	width: 1.5em;
	border-radius: 1em;
	background: var(--color-bg);
	border: 1px solid var(--color-text);
	transition: .3s
}

.switch:hover:after {
	box-shadow: 0 0 .31em rgba(0, 0, 0, .3)
}

.switch:has(:checked):after {
	margin-left: 1em
}

.switch:has(:checked):before {
	background: var(--color-accent);
}

.switch:has(:disabled),
.switch:has(:disabled):after,
.switch:has(:disabled):before {
	opacity: .7;
	pointer-events: none;
	box-shadow: none !important
}


.switch>* {
	outline: 0px none !important;
}

#mail_response {
	position: fixed;
	z-index: 1000;
	padding: 3rem;
	background-color: var(--color-accent-soft);
	color: var(--color-text);
	font-weight: 600;
	top: 50%;
	left: 50%;
	max-width: calc(100% - 2rem);
	transform: translate(-50%, -50%);
	font-size: 1.5em;
	text-wrap: balance;
	box-shadow: 0 0 0 100vmax #00000040, 0 0 35px -10px #000;
	opacity: 0;
	pointer-events: none;
}

#mail_response.visible {
	opacity: 1;
	transition: opacity var(--transition-base);
}

#mail_response.okay {
	background-color: var(--color-accent);
	color: #fff;
}

#mail_response.error {
	background-color: rgb(158, 0, 0);
	color: #fff;
}

@media (min-width: 800px) {
	.contact-form-wrapper:before {
		transform: rotate(1deg);
	}
}




/*********************************************************
SELECTBOX
*********************************************************/
/* Grundlegendes Styling für das Container */
.custom-select-container {
	position: relative;
	width: 100%;
	font-family: Arial, sans-serif;
	outline-color: transparent !important;
}

/* Styling für den sichtbaren Button */
.button-select {
	width: 100%;
	padding: 0.5 0rem;
	background-color: transparent;
	color: var(--color-text);
	font-size: 1rem;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
	outline: 0px none !important;
	outline-color: transparent !important;
}

.button-select::after {
	outline: 0px none !important;
	outline-color: transparent !important;
}

/* Styling für den Pfeil */
.arrow {
	font-size: 0.8rem;
	color: var(--color-accent);
	transition: transform 0.3s ease;
}

/* Styling für die Dropdown-Liste */
.options-list {
	display: none;
	position: absolute;
	width: calc(100% + 9px);
	left: -4.5px;
	overflow-y: auto;
	background-color: var(--color-bg);
	border: 3px solid var(--color-extra);
	margin: 0;
	padding: 0;
	list-style: none;
	z-index: 1000;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-top: calc(0.2rem - 3px);
}

.options-list.show {
	display: block;
}

/* Styling für die Optionen */
.option {
	padding: 0.7em 1em;
	color: var(--color-text-soft);
	cursor: pointer;
	transition: all 0.2s ease;
	background-color: var(--color-bg-section);
}

.option:hover {
	background-color: var(--color-accent-soft);
}

.option[aria-selected="true"] {
	background-color: var(--color-accent-soft);
	color: var(--color-text);
	cursor: default;
	font-weight: 700;
}



/*********************************************************
FOOTER
*********************************************************/

footer {
	padding-block: 4rem;
	background: var(--color-dark);
	color: #fff;

}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 2rem;
}

.footer-grid>p {
	margin: 0;
	color: #777f77;
	font-family: var(--font-display);
	font-size: 1em;
	text-align: center;
	/* text-transform: uppercase; */
}



footer a {
	color: #a4a9a4;
}

footer a:hover {
	color: var(--color-accent);
}

@media (min-width: 800px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/*********************************************************
LOGIN
*********************************************************/
.hidden {
	display: none;
}

#loginField {
	padding: 1rem;
	border: 1px solid var(--color-accent-dark);
	background: var(--color-bg-section);
}

#loginForm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#loginForm * {
	flex: 1 1 240px;
}

#loginField label {
	font-family: var(--font-display);
	font-size: 0.9rem;
	padding-left: 0.5rem;
}

#loginField input {
	border: 1px solid var(--color-accent);
	border-radius: 0;
	padding: 0.4rem 1rem;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.7rem;
}

#loginField button {
	border: 1px solid var(--color-accent);
	background-color: var(--color-bg);
	padding: 0.5rem 1rem;
	margin-top: 1rem;
}

#loginButton[aria-expanded="true"] {
	background-color: var(--color-accent);
	box-shadow: 0 5px var(--color-accent);
	color: #fff;
}

#loginMessage {
	flex-basis: 100%;
	background-color: rgb(210, 27, 27);
	padding: 0.5rem;
	margin-top: 1rem;
	color: #fff;
	font-weight: 600;
}

#loginMessage:empty {
	display: none;
}

#loginForm.error input {
	border-color: rgb(182, 0, 0);
}

@media screen and (min-width:800px) {
	#loginField {
		position: absolute;
		top: calc(100% + 2px);
		padding: 1rem;
		border: 1px solid var(--color-accent-dark);
		background: var(--color-bg-section);
		right: 0;
		width: 240px;
	}
}



/*********************************************************
ERRORPAGE
*********************************************************/

#error{
	background-image: url(/img/pixelfluss.webp);
	min-height: calc(100dvH - 2rem);
	background-color: var(--color-bg);
	justify-content: center;
	display: flex;
	flex-direction: column;
  }
#error::after {
	background: var(--color-dark);
}
#error img{
	display: none;
	object-fit: contain;
	max-width: min(18vW, 500px);

}
#error-box, #error-box h2 {
	display: flex;
	gap:2rem;

}
#error-box h2{
	font-size: 4em;
}
#error-texts{
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

#error-box h2 span{
	font-size: 2.5em;
	line-height: 0.85em;
}

#error-box p{
	font-size: 1.5em;
}
#error-buttons {
	display: flex;
	gap: 2rem;
}
#error::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.8;
	z-index: 0;
	background-color: var(--color-bg);
  }
@media screen and (min-width:800px) {
	#error img{
		display: block;
	}
}

/*********************************************************
ACCESSIBILITY
*********************************************************/

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.logo-track {
		animation-play-state: paused;
	}

}





/*********************************************************
IMPRESSUM
*********************************************************/
#impressum_start {
	display: none;
}

#haftungsausschluss::after {
	background: var(--color-dark);
}