@charset "UTF-8";

:root {
	--primary-color: #ae1732;
	--secondary-color: #790d20;
	--primary-background: white;
	--secondary-background: #f3f2f2;
	--tertiary-background: #f2f7fd;
	--hero-background: #f3f2f2;
	--nav-background: white;
	--it-color: #05668d;
	--footer-background: #e4e2e2;
	--title-font: 'Reddit Sans', sans-serif;
	--link-color:#ae1732;
	--flow-font: 'Inter', sans-serif;
	--flow-font-color: #222222;
	--clip-slant: 25px;
	--border-radius: 6px;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-light-webfont.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-regular-webfont.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-medium-webfont.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-bold-webfont.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-500-italic.woff2') format('woff2');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-600-italic.woff2') format('woff2');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Reddit Sans';
	src: url('../fonts/reddit-sans-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-display: swap;
	font-family: 'Rajdhani';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/rajdhani-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Rajdhani';
	font-style: normal;
	font-weight: 500;
	src: url('../fonts/rajdhani-500.woff2') format('woff2'); 
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0 auto;
	font-family: var(--flow-font);
	color: var(--flow-font-color);
	line-height: 1.6;
	font-weight: 300;
	background: var(--primary-background);
}

p, li {
	font-size: 1.1rem;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
	font-family: var(--title-font);
	margin-bottom: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--primary-color);
}

h1, .h1 {
	font-size: 4.4rem;
	letter-spacing: -1px;
}

h1 span, .h1 span, h2 span, .h2 span {
	color: var(--flow-font-color);
}

h2, .h2 {
	font-size: 3.5rem;
	line-height: 1.2;
	letter-spacing: -1px;
}

h3, .h3 {
	font-size: 1.9rem;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: normal;
}

h4, .h4 {
	font-size: 1.4rem;
	margin-bottom: 0.2rem;
	font-weight: 600;
	color: var(--flow-font-color);
}

a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover, a:active, a:focus {
	color: var(--secondary-color);
}

b, strong {
	font-weight: 500;
}

.decorated-list {
	padding-left: 0;
	margin-left: 0;
}

.decorated-list > li {
	list-style: none;
	position: relative;
	padding: 0 0 0.4em 1.4em;
}

.decorated-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.6em;
	height: 0.6em;
	background-color: var(--primary-color);
}

.phone {
	font-family: var(--title-font);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--primary-color);
}

*:focus {
	outline: none !important;
	box-shadow: none !important;
}

:focus-visible {
	outline: 3px dotted var(--primary-color) !important;
	outline-offset: 4px !important;
	border-radius: 4px;
}

.container-fluid {
	padding-left: 1.8rem;
	padding-right: 1.8rem;
}


/* Header */
header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.anchor {
	scroll-margin-top: 120px; /* Höhe des Sticky-Headers */
}


/* Navigation */
.navbar {
	padding: calc(0.5rem + var(--clip-slant) / 2) 0;
	width: 100%;
	transition: 0.5s all ease;
	background: var(--nav-background);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--clip-slant)), 0 100%);
}

.navbar-brand {
	padding:0 !important;
	display:inline-block;
}

.navbar img {
	transition: 0.5s all ease;
	transform: scale(1);
}

.navbar.scrolled img {
	width: 220px;
}

.navbar-toggler {
	padding: 0;
	border: none;
	outline: none;
}

.navbar-toggler:hover .bar {
	stroke:	var(--link-color);
}

.offcanvas {
	background: var(--primary-background);
}

.offcanvas-end {
	width: 300px !important;
}

.nav-item {
	font-family: var(--title-font);
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--flow-color);
}

.nav-link {
	color: var(--flow-color) !important;
}

.nav-item .nav-link:hover,
.nav-item .nav-link:focus-visible,
.nav-item.active .nav-link {
	color: var(--primary-color) !important;
}

/* Flex-Ausrichtung auf das ul-Element */
#mainMenu, #footerMenu {
	display: flex;
	align-items: center;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
}

/* Jedes nav-item als Flex-Container */
#mainMenu .nav-item, #footerMenu .nav-item {
	display: flex;
	align-items: center;
}

/* Trenner vor allen außer dem ersten */
#mainMenu .nav-item:not(:first-child)::before, #footerMenu .nav-item:not(:first-child)::before {
	content: "/";
	margin: 0 0.2rem;
	color: #888;
	font-size: 1.15rem;
	line-height: 1.2;
}

#footerMenu {
	flex-wrap: wrap;
	justify-content: center;
}

#footerMenu .nav-item:not(:first-child)::before {
	margin: 0 0.4rem;
}

#footerMenu .nav-item {
	font-size: 1.05rem;
}


/* Sections */
section {
	margin-top:0;
	_margin-top: calc(var(--clip-slant) * -1);
	padding: 80px 0;
	background: white;
}

section.secondary {
	background: var(--secondary-background);
}

section.services {
	padding: 120px 0;
}

section.clipped, .full-image.clipped {
	clip-path: polygon(0 var(--clip-slant), 100% 0, 100% calc(100% - var(--clip-slant)), 0 100%);
}

section.animated, .full-image.animated {
	opacity: 0;
	transform: translateY(80px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	will-change: opacity, transform;
	contain: layout paint;
}

section.animated.in-view, .full-image.animated.in-view {
	opacity: 1 !important;
	transform: translateY(0);
}

.full-image {
	height: 940px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	_margin-top: calc(1 * var(--clip-slant) * -1);
}

section.title {
	padding: 30px 0 10px 0;
}


/* Section-Gradients */
.gradient {
	background-image: linear-gradient(to right top, #33496d, #30527a, #2a5a87, #1f6494, #006da1) !important; 
}

.gradient2 {
	background-image: linear-gradient(to right top, #ae1732, #a3152e, #97122a, #8c1026, #810e22) !important;
}


/* Startseite mit Bereichswahl */
.link-block {
	display: block;
	z-index: 10; /* verhindert Überlagerung */
}

.rounded-container {
	position: relative;
	width: 100%;
	max-width: 500px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	margin: 2rem auto;
	background-color: var(--secondary-background);
	overflow: visible;
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.rounded-container.second {
	background-color: var(--tertiary-background);
}

.rounded-container:hover {
	transform: scale(1.05);
}

.rounded-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	z-index: 1;
	object-fit: contain;
	pointer-events: none;
}

.rounded-container.second img {
	top: 80px;
	left: -5px;
	width: 95%;
}

.floating-wrapper {
	animation: float 4s ease-in-out infinite;
	will-change: transform;
	cursor: pointer;
}

.floating-wrapper.second {
	animation-delay: 1.2s;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}


/* Animation und Größenanpassung des Section-Bilder (Web-Bereich). Class img-static für Bilder, die nicht über den Spaltenrand gehen sollen */
.img-animated {
	width: 100%;
	opacity: 0;
	transition: transform 1.2s ease-out, opacity 1.2s ease-out;
	will-change: transform, opacity;
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	transform: none;
}

section.animated.in-view .img-animated {
	opacity: 1;
}

.img-animated.left {
	transform: translateX(-100px);
}

.img-animated.right {
	transform: translateX(100px);
}

section.animated.in-view .img-animated.left,
section.animated.in-view .img-animated.right {
	transform: translateX(0);
}

@media (min-width: 992px) {
	.img-animated.left:not(.img-static),
	.img-animated.right:not(.img-static) {
		position: absolute;
		top: 50%;
		width: calc(100% + 100px);
		transform: translateY(-50%) translateX(-100px);
	}

	.img-animated.right:not(.img-static) {
		left: auto;
		right: -100px;
		transform: translateY(-50%) translateX(100px);
	}

	.img-animated.left:not(.img-static) {
		left: -100px;
		right: auto;
	}

	section.animated.in-view .img-animated.left:not(.img-static),
	section.animated.in-view .img-animated.right:not(.img-static) {
		transform: translateY(-50%) translateX(0);
	}
}


/* Hintergrundbild bis zum Rand (IT-Bereich) */
.section-image-wrapper {
	position: absolute;
	top: 0%;
	left: 0;
	width: 50%;
	height:100%;
	background-size: cover;
	background-position-y: center;
	background-position-x: right;
	background-repeat: no-repeat;
	box-sizing: border-box;
}

.section-image-wrapper.right {
	right: 0;
	left: auto;
	background-position-x: left;
}

@media (max-width: 767.98px) {
		.section-image-wrapper {
				position: relative;
				width: 100%;
				height: 500px;
				background-position-x: center !important;
		}
}


/* Scroll to Top */
.scroll-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 3rem;
	height: 3rem;
	background-color: black;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
	background-color: var(--primary-color);
}

.scroll-to-top svg {
	width: 1.5rem;
	height: 1.5rem;
}


/* Hero */
section.hero {
	background: var(--hero-background);
}

section.hero.clipped {
	clip-path: polygon(0 var(--clip-slant), 100% 0, 100% calc(100% - var(--clip-slant)), 0 100%);
	margin-top: calc(2 * var(--clip-slant) * -1);
}

section.hero .slogan {
	font-family: 'Rajdhani';
	font-size:24px;
	font-weight:500;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 20px;
}

/* Titelanimation */
section.hero .line {
	display: inline-block;
	opacity: 0;
	animation: fadeInUp 0.5s ease forwards;
	background: var(--primary-color);
	padding:0px 20px;
	transform: rotate(0deg) translateY(10px);
	margin: 10px 0;
	line-height: 1.4;
	white-space: nowrap;
	color: white;
}

section.hero h1 {
	font-size: 3.9rem;
}

section.hero .delay-0 { 
	animation-delay: 0s;
}
section.hero .delay-1 { 
	animation-delay: 1.0s;
	color:black;
	background-color: white;
}
section.hero .delay-2 {
	animation-delay: 2.0s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: rotate(-2.5deg) translateY(0);
	}
}


/* Startseite */
@media (min-width: 992px) {
		.hero-web {
				padding: 40px 0 0 110px;
		}
}
@media (max-width: 991.98px) {
		.hero-web {
				padding: 30px 0;
		}
}


/* Cards */
.square-card {
	background-color: white;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: var(--border-radius);
	_padding-top: 1rem;
}

.square-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.square-card i {
	font-size:4em;
	color: var(--primary-color);
	line-height: 1;
	display: inline-block;
}

.square-card i.ph-light {
	font-size:5em;
}

.square-card h3 {
	color: var(--flow-font-color);
}

.square-card .card-body {
	display: flex;
	flex-direction: column;
	text-align:left;
	padding:20px;
}

.square-card .card-footer-spacer {
	margin-top: auto;
	margin-bottom:1.2rem;
	padding-top: 1rem;
}


/* Formular */
form .error-message {
	display: none;
	color: var(--primary-color);
	font-size: 0.9rem;
}

form .form-label {
	margin-bottom: 0.15rem; 
}
form #captcha {
	max-width: 120px;
}

form .form-control, form .form-check-input {
	border-radius: 0;
	border-color: color-mix(in lch, var(--secondary-background) 90%, black 5%);
}

form .form-check-input {
	width: 24px; 
	height: 24px;
}

form .form-check-label {
	margin-left:16px;
	font-size:14px;
}


/* Button */
.custom-btn {
	display: inline-block;
	width: auto;
	max-width: max-content;
	padding: 0.4rem 1.2rem;
	box-sizing: border-box;
	vertical-align: middle;
	border: 2px solid black;
	background-color: transparent;
	color: black;
	border-radius: 999px;
	font-weight: 500;
	line-height: normal;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.custom-btn:hover, .custom-btn:focus {
	background-color: var(--primary-color);
	color: white;
	outline: none;
	border-color: var(--primary-color);
}

.custom-btn:focus {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3); /* sichtbarer Fokusrahmen */
}

.custom-btn.on {
	border-color: var(--primary-color);
	background-color: var(--primary-color);
	color: white;
}

.custom-btn.on:hover, .custom-btn.on:focus {
	background-color: transparent;
	color: black;
	border-color: black;
}


/* Footer */
footer {
	padding: 40px 0;
	color: var(--flow-font-color);
	margin: 0;
	background: var(--footer-background);
	font-size: 17px;
	clip-path: polygon(0 var(--clip-slant), 100% 0, 100% 100%, 0 100%);
}

footer .logo {
	font-family: var(--title-font);
}

footer .logo span {
	color: var(--primary-color);
}

footer .logo img {
	width:32px;
}

footer a {
	color: var(--title-font);
}


/* Verschiedenes */
.tech-logos img {
	padding: 1rem;
}

.text-it {
	color: var(--it-color);
}


/* Media Queries */
@media (prefers-reduced-motion: reduce) {
	.animated {
		animation: none !important;
		transform: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
	}
}

@media screen and (max-width: 1200px) {
	section.hero h1 {
		font-size: 3.4rem;
	}
	.full-image {
		height: 700px;
	}
}

@media screen and (max-width: 576px) {
	/* Beseitigt horizontal Scrollfehler (mobil) */
	body {
		overflow-x: hidden !important;
	}

	.container, .container-fluid {
		max-width: 100% !important;
		overflow-x: hidden !important;
		overflow-y: hidden !important;
		/* Paddings sonst zu schmal */
		padding-left: 1.4rem;
		padding-right: 1.4rem;
	}
	
	section.hero {
		margin-top: calc(var(--clip-slant) * -1);
	}
	
	section.hero .slogan {
		font-size:18px;
	}
	
	section.hero h1 {
		font-size:2.6rem;
	}

	h1, .h1 {
		font-size: 2.5rem;
	}

	h2, .h2 {
		font-size: 2.2rem;
	}
	
	h3, .h3 {
		font-size: 1.8rem;
	}
	
	.navbar img {
		width:260px;
	}
}


/* akt. Breakpoint anzeigen */
.visible-breakpoint::after {
	content: "xs";
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 2rem;
	color: #06435b;
}
@media (min-width: 576px) {
	.visible-breakpoint::after {
		content: "sm";
	}
}
@media (min-width: 768px) {
	.visible-breakpoint::after {
		content: "md";
	}
}
@media (min-width: 992px) {
	.visible-breakpoint::after {
		content: "lg";
	}
}
@media (min-width: 1200px) {
	.visible-breakpoint::after {
		content: "xl";
	}
}
@media (min-width: 1400px) {
	.visible-breakpoint::after {
		content: "xxl";
	}
}
