/* RESET */ 

* {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	font-size: 100%;
	font: inherit;
	font-family: inherit;  
	font-style: inherit;
	font-size:1em;
	font-weight: normal;
	vertical-align: baseline;
	x-overflow: hidden;
}

ul, ol {
	list-style: none;
	list-style-position: inside;
}

input, 
button,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: inherit;    
}

lockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, 
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

a {
    color: inherit;
	text-decoration: none;
}

img {
	border: none;
	padding: 0;
}

a img,:link img,:visited img { 
	border: none; 
	}

:link,:visited { 
	text-decoration: none; 
	}

address {
	font-style: normal;
	}
	
button {
    background-color: none;
	border: none;
    }
	
input, input:focus {
	border: none;
}

/* STYLE */

/* FONT */

/* libre-baskerville-regular - latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/libre-baskerville-v14-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/libre-baskerville-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/libre-baskerville-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/libre-baskerville-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/libre-baskerville-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/libre-baskerville-v14-latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}


*::selection {
	background-color: rgb(224, 82, 82);
	color: rgb(247, 247, 247);
}

* {
	font-family: "Libre Baskerville", serif;
	color: rgb(38, 38, 38);
}

h1 {
	text-align: center;
	font-style: italic; 
	font-size: 1.5em;
	padding: 0.5em;
	
}

@media (max-width: 600px) {
    h1 {
		font-size: 1.75em !important;
		line-height: 120%;
	} 
}

h2 {
	text-align: center;
	font-style: italic; 
	font-size: 1.5em;
	padding: 0.5em;
	
}
				
h3 {
	padding: 1.25em 0 0.5em 0;
	font-size: 1.5em;
	font-weight: bold;
	color: rgb(224, 82, 82);
}

h4 {
	padding: 0.5em 0 0.25em 0;
	font-size: 1.25em;
	font-weight: bold;	
	}
	
h5 {
	font-size: 1em;
	font-weight: bold;
	padding-top: 1em;
	}

h6 {
	padding: 0.75em 0 0.25em 0;
	font-size: 1.25em;
	font-weight: bold;
}

/*h6 {
	padding: 1em 0;
	font-size: 1.5em;
	font-style: italic;
}*/	

p {
    padding: 0.5em 0;
	font-size: 1.1em;
	}
	
p a, main ul li a {
    color: black;
   	text-decoration-color: rgb(224, 82, 82);
	border-bottom: 3px solid rgba(224, 82, 82, 0.8);
	position: relative;
	width: 0%;
	transition: width 0.5s linear;
	-webkit-transition: width 0.5s linear;
	transition: border-bottom 0.1s ease-out;
	-webkit-transition: border-bottom 0.1s ease-out;
	}
	
p a:hover, main ul li a:hover {
	border-bottom: none;
	width: 100%;
	transition: width 1s linear;
	-webkit-transition: width 1s linear;
	}
	
/* p a::after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    background-color: rgba(224, 82, 82, 0.75);
	background-color: rgba(100, 247, 247, 0.75);
	background-color: rgba(166, 217, 181, 0.75);
	width: inherit;
	z-index: 1;
} */

/* CONTENT & LAYOUT */

body {
    background: rgba(219, 214, 210, 1) url("assets/buch_kliemann_lektorat.JPG") repeat fixed center;
    background-size: 100%;
   }
   
 div.content {
	background-color: rgba(219, 214, 210, 0.75);
	display: flex;
	flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
 }

header, main, footer {
	width: 70%;
	margin: auto;
	background-color: rgba(247, 247, 247, 0.75);
}

main, footer {
	padding: 2em 20px;
}

#nav-wrapper {
	width: 100%;	
}

nav{
	width: 70%;
	margin: auto;
	background-color: rgba(247, 247, 247, 0.75);
}

header {
	flex: 0 1 auto;
}

main {
	flex: 1 0 auto;
}

footer {
	flex: 0 1 auto;
}

 /* HEADER */
	
div.title {
	height: 200px;
	position: relative;
}

.title h1 {
	font-size: 2.5em;
	margin: auto;
	position: absolute;
	z-index: 10;
	top: 50%;
	right: 0;
	left: 0;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	text-align: center;
}

img.logo-left { 
	position: absolute;
	left: 20px;
	top: 10px;
	width: 15%;
	z-index: 20;
}

@media (max-width: 1000px) {
    header, nav, main, footer {
	    width: 100%;
    }
	
	div.title {
		height: 275px;
		position: relative;
	}
	
	.title h1 {
		top: 75%;
	}
	
	img.logo-left {
		width: 20%;
		left: 40%;
		z-index: 5;
	}		
}

@media (max-width: 800px) {
	
	img.logo-left {
		width: 25%;
		left: 37.5%;
		z-index: 5;
	}
}	

@media (max-width: 600px) {
    body {
	    background-image: none; 
	}
	
	header, main, footer {
		padding: 1em 0;
	}
	
	main, footer {
		padding: 1em 20px;
	}
	
	div.title {
		height: 250px;
	}
	
	.title h1 {
		top: 90%
	}
		
	img.logo-left {
		top: 30px;
		width: 35%;
		left: 32.5%;
		z-index: 5;
	}

}

@media (max-width: 450px) {
	.title h1 {
		font-size: 1.5em !important;
		top: 85%
	}
	
	h1 {
		font-size: 1.5em !important;
	}
	
	img.logo-left {
		top: 40px;
		width: 45%;
		left: 27.5%;
	}
	
	div.title {
		height: 250px;
	}
}
      
@media (min-width: 1800px) {
   header, nav, main, footer {
	    width: 55%;
    }
	
	img.logo-left {
		left: 10%;
	}
}

@media (min-width: 2800px) {
   header, nav, main, footer {
	    width: 50%;
    }
	
	img.logo-left {
		width: 15%;
	}
} 
	
/* NAVIGATION */

#nav-wrapper {
	
}

nav {
	transition: width 1s;
}


nav ul li.icon {
		display: none;
	}

nav ul {
    width: 100%;
	display: flex;
	display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
	flex-direction: row;
	justify-content:space-around;
	flex-wrap: no-wrap;
	margin: 0;
	background-color: rgba(177, 140, 140, 0.8);
	position: relative;
	}
	
nav ul li {
	display: block;
	font-size: 1.2em;
	text-align: center;
	flex: 1 0 auto;
    }
	
nav ul li a {
	display: block;
	padding: 15px 20px;
	text-align: center;
	color: black;
	font-variant: small-caps;
	}
	
nav ul li a:hover {
	color: rgb(247, 247, 247);
	background-color: rgba(224, 82, 82, 0.85);
}	

/* class is added with js when scrolling */
.sticky {
	width: 100%;
	transition: width 1s;
	margin: auto;
	margin-top: 0;
    position: fixed;
	position: -webkit-fixed;
    top: 0;
	left: 0;
	right: 0;
	z-index: 30;
}

.switchClass {
	transition 2s;
}
	
/*nav ul li a:active */
#Home .home, #Lektorat .lektorat, #Leistungen .leistungen, #Preise .preise, #Kontakt .kontakt {
	color: rgb(247, 247, 247);
	background-color: rgba(224, 82, 82, 0.85);
	}

@media (max-width: 1200px) {
	nav ul {
		flex-wrap: wrap;
	}
}

@media (max-width: 600px) {
    .icon {
		display: block !important;
		width: 100%;
	}
	
	#nav-wrapper {
		width: 100%;
        position: fixed;
        top: 0;
		z-index: 30;
	}

	nav {
		width: 100%;
        opacity: 0.95;
		display: block;
		z-index: 30;
	}

	nav ul li {
		width: 100%;
    }

	nav ul li a {
		padding: 0.5em;
	}

	nav ul li a i {
		display: block;
	}
	
	nav ul li:not(:first-child) {
		display: none;
	}	
}

/*MAIN */
	
/*TABLE */

.table {
	padding: 20px 0;
}

table	{
	width:80%;
    padding: 20px 0;
	margin: auto;
	}
	
table, th, td { 
    border-collapse: collapse;
	}


th {
	font-size:20;
    border-bottom: 2px solid black;
}

	td {
	font-size:19;
	padding: 15px 0px 0px 0px;
}

.klein {
	font-size:0.9em;
	padding: 0px 0px 20px 5px;
}

.preis {
	padding: 15px 0px 0px 0px;
	text-align:right;}

@media (max-width: 600px) {
	table {
		width: 100%
		}
	}

/* LISTS */

main ul {
    padding: 1em 0 1.25em 0;
	list-style-type: disc;
	list-style-position: inside;
}

main ul li {
    padding: 0 0 1em 0;
	}


/* Kontakt Picture */

.flex {
	display: flex;
	flex-direction: row;
	padding: 1em 0;
}

img#portrait {
	flex: 0 1 auto;
	width: 35%;
}

.flex p {
	flex: 0 1 auto;
	max-width 40%;
	padding: 0 1em;
}

@media (min-width: 1400px) {
	img#portrait {
		flex: 0 1 auto;
		width: 25%;
		}
	
	.flex p {
		max-width: 35%;
		}
}

@media (max-width: 600px) {
	img#portrait {
		width: 80%;
	}

	.flex {
		display: flex;
		flex-direction: column;
		padding: 1em 0;
	}
	
	.flex p {
		max-width 80%;
		padding: 1em 0;
	}
}
	
/* FOOTER */

footer a {
	display: inline-block;
	color: rgb(224, 82, 82);
	padding: 20px 20px 10px 0;
	font-weight: bold;
	}
	
footer a:hover {
	color: black;
	text-decoration: none !important;
	border-bottom: none;
	}