/**
:root{
	--primary-color: #eaeaea;
	--secondary-color: #ffffff;
	--text-color: #333333;
	--accent-color: #f1cd55;
}
**/


/* Grundlegende Stile */
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html{
	scroll-behavior: smooth;
}

body{
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--primary-color);
}

.max-width{
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

h1, h2, h3, h4, h5, h6{
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

p{
	margin-bottom: 1.05rem;
}

a{
	color: var(--accent-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover{
	color: var(--accent-color);
}

img{
	max-width: 100%;
	height: auto;
}

section{
	padding: 5rem 0;
}

.btn{
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--white);
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn:hover{
	background-color: var(--primary-dark);
	color: var(--white);
	transform: translateY(-2px);
}

.text-center { text-align: center; }
.text-right { text-align: right;}

body > section:nth-child(2n) {
	background: var(--secondary-color);
}

body > section h2 {
	position: relative;
	padding-bottom: 5px;
	z-index: 5;
}

body > section h2::after {
	content: '';
	width: 45px;
	background: var(--secondary-color);
	position: absolute;
	top: 0;
	bottom: 0;
	left: -10px;
	z-index: -1;
	border-bottom: 3px solid var(--accent-color);
}

body > section:nth-child(2n) h2::after {
	background: var(--primary-color);
}

/** ---------- Header ---------- */
header {
	padding: 15px 0;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	z-index: 990;
	background: transparent;
	border-bottom: 2px solid transparent;
	transition: border-bottom .27s ease, background .27s ease;
}

header.scrolled {
	border-bottom: 2px solid var(--secondary-color);
	background: var(--primary-color);
}

header h1 {
	font-size: 24px;
	line-height: 26px;
}

header h1 > i {
	color: var(--accent-color);
}

header > .max-width {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/** ---------- Menü ---------- */
nav ul {
	display: flex;
	gap: 15px;
	align-items: center;
	list-style-type: none;
}

nav a {
	color: var(--text-color);
}

nav a:hover {
	color: var(--accent-color);
}

/** ---------- Hero ---------- */
.hero {
	height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/** ---------- Section: About me ---------- */
#about .about-content {
	display: flex;
	align-items: center;
	gap: 30px;
}

#about .about-content .author-image{
	flex: 0 0 auto;
	position: relative;
	z-index: 5;
}

#about .about-content .author-image::after,
#about .about-content .author-image::before {
		content: '';
	background: var(--accent-color);
	position: absolute;
	width: 20px;
	height: 20px;
	z-index: -1;
}

#about .about-content .author-image::after {
	left: -5px;
	top: -5px;
}

#about .about-content .author-image::before {
	top: -5px;
	right: -5px;
}

/** ---------- Section: Bücher ---------- */
#books .flex-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 30px;
}

#books .flex-container > .item{
	background: var(--secondary-color);
	flex: 0 0 calc(33.333% - 20px);
}

#books .flex-container > .item .imgwrap {
	padding: 25px;
}

#books .flex-container > .item .titlewrap {
	border-top: 2px solid var(--primary-color);
	padding: 15px;
}

#books .flex-container > .item .titlewrap a {
	color: var(--text-color);
	font-size: 18px;
	line-height: 20px;
}
#books .flex-container > .item .titlewrap .bookcategory {
	font-style: italic;
}

/** ---------- Section: Links ---------- */

#links ol {
	padding-left: 20px;
}

/** Hamburger **/
.hamburger {
	display: none;
	cursor: pointer;
}

.hamburger > span {
	width: 26px;
	height: 3px;
	margin-bottom: 3px;
	background: var(--text-color);
	display: block;
}

/** ---------- Footer ---------- */
footer {
	background: var(--secondary-color);
	padding: 15px 0;
	border-top: 4px solid var(--primary-color);
}

footer .footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

footer .footer-logo h2{
	font-size: 20px;
	line-height: 22px;
}

footer .footer-logo > * {
	margin: 0;
}

footer .footer-logo h2 > i{
	color: var(--accent-color);
}

footer .footer-legal ul {
	display: flex;
	list-style-type: none;
	align-items: center;
	gap: 15px;
}

footer .footer-legal a {
	color: var(--text-color);
}

@media (max-width: 1399.98px) {

}

@media (max-width: 1199.98px) {

}

@media (max-width: 991.98px) {

}

@media (max-width: 767.98px) {
	.main-nav {
		height: 0;
		overflow: hidden;
		transition: height .27s ease;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: 70px;
		background: var(--primary-color);
		z-index: 900;
		display: block;
	}
	
	.main-nav > li {
		text-align: center;
		margin-top: 15px;
	}
	
	.main-nav.active {
		height: 100vh;
	}
	
	.hamburger {
		display: block;
	}
	
	#books .flex-container > .item {
		flex: 0 0 calc(50% - 15px);
	}
	
	#about .about-content {
		display: block;
	}
	
	#about .about-content .author-image {
		margin-bottom: 15px;
	}
	
}

@media (max-width: 575.98px) {
	
	footer .footer-content {
		flex-wrap: wrap;
	}
	
	footer .footer-content > *{
		flex: 0 0 100%;
	}
	
	footer .footer-legal ul {
		justify-content: center;
	}
	
	footer .footer-legal {
		margin-bottom: 15px;
	}
	
	footer .footer-logo {
		text-align: center;
	}
	
}

@media (max-width: 450px) {
	#books .flex-container > .item {
		flex: 0 0 100%;
	}
	
	section{
		padding: 3rem 0;
	}
	
	header h1 {
		font-size: 20px;
		line-height: 22px;
	}
}