* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
	color: #222222;
}

body {
    background: #FCF9F0;
    margin: 0;
}

h1 {
    text-align: center;
    margin-bottom: 60px;
}
html {
    scroll-behavior: smooth;
}
p {
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.footer {
	background: #ffffff;
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
	color: #222222;
	box-shadow: 0 0 14px rgba(0,0,0,0.20);
	padding: 10px;
}

.footer a:hover {
	    text-decoration: none;
}

/* Grundlayout */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    background: #ffffff;
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
	color: #222222;
	box-shadow: 0 0 14px rgba(0,0,0,0.20);
    font-size: 20px;
}

.nav-logo {
	margin: 0 10px 0 15px;
	font-weight: bold;
	font-size: clamp(24px, 5vw, 40px);
}
.black { 
	color: #222222;
}

.orange { 
	color: #D4AF37;
}

.nav-logo a {
    text-decoration: none;
}

/* Menü */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #222222;
    text-decoration: none;
    padding: 20px;
    display: block;
		transition: background-color 0.3s ease;
}

.nav-menu li.active a {
    background: #D4AF37;
    color: #ffffff;
}

.nav-menu li a:hover {
    background: #BE9F57;
	color: #ffffff;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    background: #D4AF37;
    height: 5px;
    width: 35px;
    margin: 4px 10px;
}


/* Scroll-Top */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #D4AF37;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#scrollTopBtn:hover {
    background: #BE9F57;
}

#scrollTopBtn.show {
    display: flex;
}

.container {
	max-width:1100px;
	margin: 0 auto;
}

.feature {
    background-color: white;
	box-shadow: 0 0 14px rgba(0,0,0,0.20);
	font-size: 18px;
	line-height: 2em;
	padding: 0.25em 6em 0.25em 6em;
	margin-top: 0;
}

.text {
	text-align: justify;
}
.text a:hover {
	    text-decoration: none;
}
/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #D4AF37;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
}

/* Punkte */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #D4AF37;
    border: 0px;
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.left::after {
    right: -8px;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

/* Content Box */
.content {
    background-color: white;
    padding: 10px;
    box-shadow: 0 0 14px rgba(0,0,0,0.20);
	overflow: hidden;
	border-radius: 4px;
}

.content p, h2{
	margin: 5px 0px 5px 0px;
}

.content img {
    width: 100%;
    max-height: 180px;
}

.content a {
	cursor: pointer;
	text-decoration: none;
}

.imgzoom {
	overflow: hidden;
	display:block;
}

.imgzoom img {
	width: 100%;
	height: 100%;
	transition: transform 1s ease;
	object-fit: cover;
	display:block;
}

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

/* === Scroll-Reveal Animation === */
.reveal {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(6px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.button {
	border-radius: 0;
	border-style: solid;
	border-width: 0;
	cursor: pointer;
	position: relative;
	text-align: center;
	text-decoration: none;
	padding: .625rem 1.25rem .6875rem 1.25rem;
	background-color: #D4AF37;
	color: #fff;
    box-shadow: 0 0 14px rgba(0,0,0,0.20);
	transition: background-color 0.4s ease;
}

.button:hover {
    background: #BE9F57;
}

/* Projektuebersicht */
.project {
    padding: 4rem 0 0 0;
}

.project h2 {
    border-bottom: 4px solid #BE9F57
}

/* ===== Galerie ===== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gallery-thumb-container {
    overflow: hidden;
}

.gallery-thumb {
    width: 180px;
    cursor: pointer;
	transition: transform 1s ease;
	display: block;
}

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

/* ===== Lightbox ===== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Header */
.lightbox-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 10001;
}

#lightbox-title {
    color: #ffffff;
}

.lightbox-close {
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

/* Bild */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* Navigation */
#lightbox .nav {
    position: absolute;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    z-index: 10001;
}

#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }

/* Zähler */
#lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 16px;
    z-index: 10001;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        background: #BE9F57;
        width: 100%;
        flex-direction: column;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 15px;
        border-top: 1px solid #333;
    }
	
	.feature {
		padding: 0.25em 2em 0.25em 2em;
	}
	
    .project-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .project-images {
        justify-content: flex-start;
    }

    .project-images img {
        width: 48%;
        max-width: none;
    }


    /* Timeline Container */
    .timeline {
        --axis-x: 20px;
    }

    /* Zentrale Linie nach links */
    .timeline::after {
        left: var(--axis-x);
    }

    /* Timeline Items EINSPALTIG */
    .timeline-item {
        position: relative;
        padding: 20px;
		width: 70%;
    }

    /* Links & Rechts neutralisieren */
    .left,
    .right {
        left: 0;
        text-align: left;
    }

    /* Punkte korrekt positionieren */
    .timeline-item::after {
        left: calc(var(--axis-x) - 28px);
    }
}