/*Formatierung der Hauptteile*/
*{
	margin: 0px; 
	padding: 0px;
	box-sizing: border-box;
} 
html{
	height: 100%;
}
body{
	font-family: "Courier new", monospace;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0;
	height: 100vh;
	overflow: auto;
	scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
	scrollbar-base-color: #8a8888;
    transition: scrollbar-color 0.3s ease;
}

.hintergrund {
	position: relative;
	flex: 1;
	background: url(Bilder/home.webp) no-repeat center center;
	background-size: cover;
	z-index: 1;
	justify-content: space-between;
	align-items: center;
	display: flex;
	min-height: 90vh;
  }

header {
	position: absolute;
    top: 0;
	left: 0;
	background-color: rgba(175, 200, 220, 0.8); 
	color: rgb(0, 0, 0);
	padding: 20px;
	 z-index: 2;
	width: 100%;
	max-height: 150px;
	display: flex;
	align-items: center;
	white-space: nowrap;
}
hr{
	border-color:black;
	border-width: 2px;
}

h1{
	color: rgb(168, 51, 28);
	margin-left: 10px;
	font-family: "Courier new", monospace;
}
h2{
	font-size: 20px;
	margin-left: 10px;
	
}

.start{
		
		display: flex;
		align-items: center; 
		height: 85px;
}

.zitat-text {
    width: fit-content;
    max-width: 1500px;
    margin: 10px auto 0;
}

.zitat-text h3 {
    text-align: left;
}

.zitat-text p {
    text-align: left;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
	}
	

/*####Navigation:############*/
nav a {
		color: rgb(0, 0, 0);
		text-decoration: none;
		font-size: 20px;
		padding: 10px 15px;
   		 display: block;
		 font-weight: bold;
	
		
}
nav a:hover{
		text-decoration: underline;
}
.navh {
	position: relative;
    display: flex; 
	justify-content: flex-end;
	width: 100%;
	align-items: center;
	z-index: 3;
	
	
}

.navh ul {
    list-style: none; 
    display: flex; 
	margin: 0;
	padding: 0;
}

.navh li {
    margin-right: 75px;
	position: relative;
}
/*####Footer####*/

footer{
	margin-top: 20px;
	align-items: center;
	width: 100%;
	position: relative;
	
	
}
.ende{
	margin-top: 10px;
	background-color: #1b3b8a;
	min-width: 100%;
	color: white;
	
}

.endtext{
		
		align-items: center; 
		
		margin-left: 10px;
		margin-top: 5px;
}

h4{
	margin-left: 15px;
	padding: 5px;
}

.ende i{
	margin-left: 10px;
}



/*Dropdown-Menü */
.dropdown-menu {
   
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(161, 160, 160, 0.8);
    list-style: none;
    padding: 10px 0;
    min-width: 150px; 
    
	border-radius: 5px; 
   
	border: 1px solid black;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 15px;
    color: rgb(0, 0, 0);
	text-decoration: none;
    display: block;
	
}

.dropdown-menu a:hover {
    background-color: #8a8888;
}

.navh ul li:hover .dropdown-menu{
	display: block;
	position: absolute;
}

.navh .dropdown-menu{
	display: none;
}

/*Galerie*/
.galerie {
	display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 5px;
	margin: 0 auto;
	justify-content: center;
	margin-top: 15px;
}

.galerie img {
    width: 200px; 
    height: 150px;
    transition: transform 0.3s ease-in-out;
	border-radius: 5px;
	object-fit: cover;
	object-position: center;
	 user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}

.galerie img:hover {
    transform: scale(1.1); 
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
	z-index: 8;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
	 user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s;
    z-index: 9;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-arrow.left {
    left: 30px;
}

.nav-arrow.right {
    right: 30px;
}

/* Für Chrome, Safari, Edge */
body::-webkit-scrollbar {
    width: 4px;
    transition: width 0.3s ease;
}

body::-webkit-scrollbar-thumb {
    background-color: #bbb;
	border-radius: 4px;
}

/* Sichtbarer Scrollbalken bei Mausnähe */
body.scroll-hover {
    scrollbar-color: #888 transparent;
}

body.scroll-hover::-webkit-scrollbar {
    width: 12px;
}

body.scroll-hover::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
}


a{
	color: white;
	margin-left: 10px;
}

.menu-button {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

.menu-button.open {
    transform: rotate(90deg);
}



/*####Mobile Menu ######*/


@media (max-width: 1500px) {
       .navh {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 5;
    }

    .mobile-menu {
        display: fixed;
    }

    .image1 {
        width: 50px;
        height: 50px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }
	
	   .zitat-text {
        width: calc(100% - 200px);
        max-width: none;
        margin: 0 auto;
    }
	
	 .zitat-text {
        width: calc(100% - 40px);
        max-width: none;
        margin: 10px auto 0;
    }
	html, body {
    max-width: 100%;
    overflow-x: hidden;
}
	
}

@media (max-width: 600px) {

    .galerie {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .galerie img {
        width: 150px;
        height: 100px;
    }
	  h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 10px;
    }
	
	h4 {
		font-size: 10px;
	}
	
	.ende i{
		font-size: 7px;
	}
	.ende a{
		font-size: 7px;
	}
	
	html, body {
    max-width: 100%;
    overflow-x: hidden;
}
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 400px;
    background-color: rgba(175, 200, 220, 0.95);
    z-index: 4;

    display: flex;
    flex-direction: column;
    padding-top: 100px;

    transition: right 0.3s ease;
}

.mobile-menu a {
    color: black;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    padding: 15px 25px;
}

.mobile-menu a:hover {
    background-color: #8a8888;
}

.mobile-menu.open {
    right: 0;
}

/*####Darkmode####*/
#darkmode-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;

    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

body.darkmode header{
	background-color: #1b3b8a;
}

body.darkmode h2{
	color: white;
}

body.darkmode {
    background-color: #121212;
    color: white;
}

body.darkmode .endtext{
	background-color: #070738;
}

body.darkmode .ende{
	background-color: #070738;
}

body.darkmode .navh a{
	color: white;
}

body.darkmode .dropdown-menu{
	background-color: #274AB3;
}

body.darkmode .dropdown-menu a:hover {
    background-color: #182E6F;
}

body.darkmode .mobile-menu{
	background-color: #274AB3;
}

body.darkmode .mobile-menu a:hover {
    background-color: #182E6F;
}

body.darkmode .menu-button {
	color: white;
}

body.darkmode .mobile-menu a {
    color: white;
}


body.darkmode .hintergrund {
    filter: brightness(70%);
}