/* Fonts **************************************************** */

@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 400;
	src:
		url(./assets/fonts/SourceSansPro-Regular.otf.woff2) format("woff2"),
		url(./assets/fonts/SourceSansPro-Regular.otf.woff) format("woff"),
		url(./assets/fonts/SourceSansPro-Regular.ttf) format("truetype");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 700;
	src:
		url(./assets/fonts/SourceSansPro-Bold.otf.woff2) format("woff2"),
		url(./assets/fonts/SourceSansPro-Bold.otf.woff) format("woff"),
		url(./assets/fonts/SourceSansPro-Bold.ttf) format("truetype");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: italic;
	font-weight: 400;
	src:
		url(./assets/fonts/SourceSansPro-It.otf.woff2) format("woff2"),
		url(./assets/fonts/SourceSansPro-It.otf.woff) format("woff"),
		url(./assets/fonts/SourceSansPro-It.ttf) format("truetype");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: italic;
	font-weight: 700;
	src:
		url(./assets/fonts/SourceSansPro-BoldIt.otf.woff2) format("woff2"),
		url(./assets/fonts/SourceSansPro-BoldIt.ttf.woff) format("woff"),
		url(./assets/fonts/SourceSansPro-BoldIt.ttf) format("truetype");
}

/* end Fonts ************************************************ */



/* vars ***************************************************** */
:root {
	--main-dark-color: rgb(32, 32, 32);
	--main-light-color: rgb(236, 236, 236);
	--main-dark-text-color: var(--main-dark-color);
	--main-light-text-color: var(--main-light-color);
	--main-accent-color: rgb(120, 198, 23);
	/* box colors */
	--box-transparency: 0.85;
	--box-blur: 0.3rem;
	--main-box-dark: rgb(32 32 32);
	--main-box-light: rgba(236 236 236 / var(--box-transparency));
	--main-box-color1: rgba(0 80 43 / var(--box-transparency));
	--main-box-color2: rgba(229 221 192 / var(--box-transparency));
	--main-box-color3: rgba(228 233 255 / var(--box-transparency));

	--navigation-height: 60px;
	/* Höhe der fixen Navigation */
	--section-padding: 40vh 0;
	/* Padding für die Sektionen */

	--media-breakpoint-small: 680px;
	/* Breakpoint für responsive Design */
	--media-breakpoint-medium: 900px;
	/* Breakpoint für responsive Design */
}

/* end vars ************************************************* */




/* Styles *************************************************** */

/* Reset */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Main styles *******************************************/
html {
	font-size: 18px;
	line-height: 1.5;
}

body {
	padding-top: 60px;
	/* Platz für die fixe Navigation */
	font-family: 'Source Sans Pro', Arial, sans-serif;
	font-weight: 400;
	/* 	hyphens: auto; */	
	color: var(--main-dark-text-color);
	background: var(--main-dark-color);
}

h1,
h2,
h3,
h4,
h5 {
	font-weight: 700;
	line-height: 1.2;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
}

h1 {
	font-size: 4.5rem;
}

h2 {
	font-size: 3.5rem;
	margin-bottom: 0.3rem;
}

h3 {
	font-size: 2.5rem;
	margin-bottom: 0.3rem;
}

h4 {
	font-size: 2rem;
	margin-bottom: 0.3rem;
}

h5 {
	font-size: 1.5rem;
	margin-bottom: 0.3rem;
}

h6 {
	font-weight: 400;
	font-size: 1.5rem;
}

p {
	line-height: 1.4;
	font-size: 1rem;
	margin-bottom: 0.3rem;
}

a {
	color: var(--main-accent-color);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #005fa3;
	text-decoration: underline;
}

button {
	background: var(--main-accent-color);
	color: var(--main-light-text-color);
	border: none;
	padding: 0.7em 1.5em;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.2s;
}

button:hover {
	background: var(--main-accent-color);
}

ul,
ol {
	margin-left: 2em;
	margin-bottom: 1em;
}

.wrapper {
	max-width: 900px;
	margin-inline: auto;
}

.inline-button {
	display: inline-block;
    padding: 0.1em 0.4em;
    background: var(--main-accent-color);
    color: var(--main-light-text-color);
    text-decoration: none;
    border: none;
    border-radius: 0.4em;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
}
.inline-button:hover {
    background: var(--main-accent-color);
    color: var(--main-light-text-color);
		text-decoration: none;
}


@media (max-width: 900px) {

	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	h3 {
		font-size: 1.8rem;
	}

	h4 {
		font-size: 1.5rem;
	}

	h5 {
		font-size: 1.2rem;
	}

	h6 {
		font-size: 1.3rem;
	}
}

/* end Main styles *******************************************/









/* Section styles **************************************/

section {
	padding: 40vh 0;
}

section:first-child {
	padding-top: 20vh;
}

.section-box__wrapper {
	color: var(--main-dark-text-color);
	background: var(--main-light-color);
	max-width: 100%;
	margin: 0 2rem;
	padding-top: 1rem;
	padding-bottom: 2rem;
	padding-left: 2rem;
	padding-right: 2rem;
	backdrop-filter: blur(var(--box-blur));
	-webkit-backdrop-filter: blur(0.3rem);
}

.section-box__wrapper.no-headline {
	padding-top: 2rem;
}

.section-box--dark {
	background: var(--main-box-dark);
	color: var(--main-light-text-color);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	margin-bottom: 2rem;
}

.section-box--light {
	background: var(--main-box-light);
	color: var(--main-dark-text-color);
}

.section-box--color1 {
	background: var(--main-box-color1);
	color: var(--main-light-text-color);
}

.section-box--color2 {
	background: var(--main-box-color2);
	color: var(--main-dark-text-color);
}

.section-box--color3 {
	background: var(--main-box-color3);
	color: var(--main-dark-text-color);
}

@media (max-width: 680px) {
	.centered {
		text-align: center;
	}

	.section-box__wrapper {
		max-width: 100%;
		margin: 1.5rem 1.5rem;
		padding-top: 0.5rem;
		padding-bottom: 1.5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.section-box__wrapper.no-headline {
		padding-top: 1.6rem;
	}
}

.section-box--margin-buttom {
	margin-bottom: 2rem;
}


/* end Section styles **************************************/





/* AppStore styles **************************************/

.home-appstore__wrapper {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	/* justify-content: center; */
	gap: 1.5rem;
}

.appstore__wrapper__element {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;

	>h5 {
		margin-top: 0;
		margin-bottom: 0.4rem;
	}

	>p {
		text-align: center;
		padding: 0 1rem;
		line-height: 1.3;
	}

	>.app-icon {
		height: 200px;
		margin-top: 1.5rem;
		margin-bottom: 1rem;
	}
}

.appstore__badge {
	margin-top: auto;
	padding-top: 0.7rem;
}

.appstore__badge img {
	width: 160px;
	cursor: pointer;
}

@media (max-width: 680px) {
	.home-appstore__wrapper {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1.5rem;
		margin-top: 1rem;
	}

	.appstore__wrapper__element {
		width: min(100%, 420px);
	}
}

/* end AppStore styles **************************************/




/* Tutorial styles **************************************/

.tutorial-comic-head__wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.tutorial-comic-cube__wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.tutorial__wrapper--first {
	margin-top: 0;
}
.tutorial__wrapper--last {
	margin-bottom: 0;
}
.tutorial-text__wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tutorial-comic-head__image {
	max-width: auto;
	height: 220px;
}
.tutorial-comic-cube__image {
	max-width: auto;
	height: 164px;
}
.book__image {
	max-width: auto;
	height: 300px;
}

@media (max-width: 680px) {
	.tutorial-comic-head__wrapper {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
		row-gap: 0;
		margin-top: 0;
		margin-bottom: 0;
	}
	.tutorial-comic-cube__wrapper {
		flex-direction: column-reverse;
		align-items: stretch;
		text-align: left;
		row-gap: 0;
		column-gap: 0;
		margin-top: 2rem;
		margin-bottom: 2rem;
	}

	.tutorial-comic-head__wrapper>p {
		text-align: left;
		align-self: flex-start;
	}
	.tutorial-comic-cube__wrapper>p {
		text-align: left;
		align-self: flex-start;
	}

	.tutorial_comic_head__image {
		max-width: 80%;
		height: auto;
		max-height: 280px;
		align-self: flex-end;
		margin-top: 0;
		margin-bottom: 0;
	}

	.tutorial_comic_cube__image {
		max-width: 80%;
		height: auto;
		/* max-height: 280px; */
		align-self: flex-end;
		margin-top: 3rem;
		margin-bottom: 0;
	}

	.book__image {
	max-width: 100%;
	height: auto;
}
}

/* end Tutorial styles **************************************/




/* Video styles **************************************/

video {
	width: 100%;
	height: auto;
	display: block;
}

.video__wrapper {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* end Video styles **************************************/



/* background styles **************************************/

#background {
	position: fixed;
	top: 0;
	left: 50%;
	/* horizontal zentrieren */
	transform: translateX(-50%);
	/* Neu: horizontal zentrieren */
	height: 100vh;
	/* max-width: 900px; */
	min-width: 200px;
	width: 100vw;
	/* nimmt die volle Breite bis max-width */
	z-index: -1;
	/* background-color: rgb(185, 0, 189); */
	/* transition: background-color 1s ease-in-out; */
	/* background-image: url('./assets/backgrounds/section1.jpg'); */
	background-size: cover;
	/* Bild füllt die Fläche */
	background-position: center center;
	/* Bild zentriert */
	background-repeat: no-repeat;
	transition: background-image 0.5s ease-in-out;
	/* filter: blur(0.3rem); */
}

/* end background styles **************************************/




/* Navigation styles **************************************/

.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--main-dark-color);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	z-index: 1000;
}

.main-nav__inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
	height: var(--navigation-height);
	color: var(--main-light-text-color);
}

.main-nav__logo {
	display: flex;
	align-items: center;
	height: var(--navigation-height);
	padding: 0 0.5rem;
}

.main-nav__logo img {
	--_logo-height: 24px;
	max-height: var(--_logo-height);
	height: var(--_logo-height);
	margin: auto;
	display: block;
	cursor: pointer;
}

.main-nav__links {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
}

.main-nav__links li a {
	color: var(--main-light-text-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.main-nav__links li a:hover {
	color: var(--main-accent-color);
}

.main-nav__links a.active {
	color: var(--main-accent-color);
	font-weight: bold;
}

.main-nav__toggle {
	display: none;
}

.main-nav__toggle__label {
	display: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	height: 60px;
	width: 40px;
}

.main-nav__toggle__label span {
	display: block;
	height: 2px;
	width: 24px;
	background: var(--main-light-text-color);
	margin: 4px 0;
	border-radius: 1px;
	transition: 0.3s;
}

@media (max-width: 900px) {
	.main-nav__inner {
		padding: 0 1rem;
	}

	.main-nav__links {
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		background: #202020;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 1rem 0;
		transform: translateY(-120%);
		transition: transform 0.3s;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	}

	.main-nav__links li {
		width: 100%;
		font-size: 1.3em;
	}

	.main-nav__links li a {
		display: block;
		width: 100%;
		padding: 1rem 2rem;
	}

	.main-nav__toggle:checked+.main-nav__toggle__label+.main-nav__links {
		transform: translateY(0);
	}

	.main-nav__toggle__label {
		display: flex;
	}
}

/* end Navigation styles **************************************/