* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #2d6a2f;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.site-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    height: 100vh;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: left top;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide.zoom {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    animation: fadeInUp 0.6s 0s ease-out both;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hero h1 span {
    color: white;
    font-weight: 300;
}

.hero-sub {
    font-size: 0.8em;
    font-weight: 300;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-bottom {
    background: white;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-bottom .bottom-logo {
    height: auto;
    width: auto;
    max-width: 420px;
    max-height: none;
}

.hero-bottom .bottom-akn {
    height: auto;
    width: auto;
    max-width: 420px;
    max-height: none;
    clip-path: inset(5px 0 0 0);
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section.full {
    max-width: none;
    padding: 0;
}

.about {
    background: linear-gradient(135deg, #f5f5f5, #e8f5e9);
}

.about h2 {
    font-size: 2rem;
    color: #1b5e20;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.about-text {
    font-size: 1.2rem;
    color: #2c5f2d;
    font-weight: 500;
    line-height: 1.8;
    margin-top: 0;
}

.about-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    filter: grayscale(100%) contrast(0.5);
}

.about-image img.scroll-reveal {
    animation: filmRollReveal 1.5s ease-out forwards;
}

.about-image img:hover {
    transform: translateY(-5px) rotate(1deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.wordcloud-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.wordcloud-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.projects {
    background: linear-gradient(135deg, #e8f5e9, #f5f5f5);
    max-width: none;
}

.qr-section {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 2rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.qr-section img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qr-label {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.projects h2 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 2rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.project-item {
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.project-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0;
    filter: grayscale(100%) contrast(0.5);
}

.project-image-wrap img.scroll-reveal {
    animation: filmRollReveal 1.5s ease-out forwards;
}

.project-image-wrap:hover img {
    transform: scale(1.05);
}

@keyframes masonryPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    8% {
        transform: scale(1.03) rotate(0.5deg);
        box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    }
    20% {
        transform: scale(0.97) rotate(-0.3deg);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    28% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}

.project-caption {
    background: white;
    color: black;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kaisermantel-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 2px solid white;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    filter: none;
}

.kaisermantel-overlay.scroll-reveal {
    opacity: 1;
}

.contact {
    background: white;
}

.contact h2 {
    font-size: 2.5rem;
    color: #2196F3;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-info {
    background: linear-gradient(135deg, #e3f2fd, #f1f8e9);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #555;
}

.contact-info a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #4CAF50;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes filmRollReveal {
    0% {
        opacity: 0;
        filter: grayscale(100%) contrast(0.5);
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        filter: grayscale(80%) contrast(0.7);
    }
    100% {
        opacity: 1;
        filter: grayscale(0%) contrast(1);
        transform: scale(1);
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}

h1, .bls, h2, h3 {
    font-family: Verdana;
    font-weight: 600;
}

@media (max-width: 1076px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2d6a2f;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.5rem;
    }

    .hero-bottom .bottom-logo,
    .hero-bottom .bottom-akn {
        max-width: 90%;
        max-height: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .project-item {
        margin-bottom: 1rem;
    }

    .project-caption {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .kaisermantel-overlay {
        width: 60px;
        height: 60px;
        bottom: 6px;
        right: 6px;
    }

    section {
        padding: 3rem 1rem;
    }

    .projects-inner {
        padding: 3rem 1rem;
    }

}

@media (max-width: 540px) {
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        max-width: 100%;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #2d6a2f;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1;
}

#scrollTopBtn::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-left: 3px solid white;
    border-top: 3px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
    position: relative;
    top: 4px;
}

#scrollTopBtn.show {
    opacity: 0.6;
    visibility: visible;
}

#scrollTopBtn:hover {
    background: #1f4f21;
}
