* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 120px;
}

body {
    font-family: 'Lato', sans-serif;
    color: #555;
}

a {
    text-decoration: none;
    color: #555;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ------------------- Allgemein */

h1 {
    color: #000000;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 200;
    margin-bottom: 15px;
}

h2 {
    font-size: 15px;
    font-weight: 150;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h3 {
    font-size: 35px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #00a9fd;
    font-weight: 300;
}

h4 {
    font-size: 25px;
    font-weight: 500;
}

img + h3 {
    margin-top: 20px;
}

img + h4 {
    margin-top: 20px;
}

p {
    margin-bottom: 20px;
    line-height: 1.3em;
    font-weight: 300;
    font-size: 20px;
}

p:last-child {
    margin-bottom: 0;
}

a:hover {
    color: #ffff00;
}

/* ------------------- Hover Effekt */

.zweispalten .col-6 a,
.portfolio-grid .col-6 a {
    display: block;
    overflow: hidden;
}

.zweispalten .col-6 a img,
.portfolio-grid .col-6 a img {
    display: block;
    width: 100%;
    transform: scale(1);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.zweispalten .col-6 a:hover img,
.portfolio-grid .col-6 a:hover img {
    transform: scale(1.08);
    filter: invert(1);
}

/* ------------------- Main */

main {
    padding-top: 90px;
}

main img {
    display: block;
    width: 100%;
}

/* ------------------- Video */

main video {
    display: block;
    width: 100%;
    object-fit: cover;
}

.col-6 video {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------- Ausrichtung */

.zentriert {
    text-align: center;
}

/* ------------------- Abstände */

.abstand {
    padding: 100px 0;
}

/* ------------------- Grid-System */

.row {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.row + .row {
    margin-top: 60px;
}

.full {
    margin: 0 -15px;
}

.medium {
    padding: 25px;
}

.small {
    max-width: 800px;
    margin: auto;
    padding: 0 25px;
}

.article-size {
    max-width: 1200px;
    margin: auto;
    padding: 0 25px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.col-6 {
    width: 50%;
    padding: 0 15px;
}

.col-4 {
    width: 33.33%;
    padding: 0 15px;
}

.col-3 {
    width: 25%;
    padding: 0 15px;
}

.col-2 {
    width: 16.66%;
    padding: 0 15px;
}

.box {
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.leerfeld {
    width: 100%;
    min-height: 1px;
}

/* ------------------- Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    width: 100%;
    z-index: 1000;
}

header img {
    width: auto;
    height: 40px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 30px;
    font-weight: 300;
    font-size: 20px;
}

.desktop-nav ul li.active a {
    font-weight: 500;
}

/* ------------------- Burger */

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1201;
}

.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #111;
    margin: 6px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ------------------- Desktop Info Panel */

.info-links {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.info-links li {
    margin-bottom: 14px;
}

/* Grundstil */

.info-links a {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #111;

    position: relative;
    display: inline-block;

    transition: opacity 0.3s ease;
}

/* feine Linie */

.info-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 100%;
    height: 1px;

    background: #111;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover */

.info-links a:hover {
    opacity: 0.6;
}

.info-links a:hover::after {
    transform: scaleX(1);
}
#info-panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.7s ease, opacity 0.5s ease, transform 0.5s ease;
}

#info-panel.open {
    opacity: 1;
    transform: translateY(0);
}

.info-panel-inner {
    padding: 30px 40px;
    max-width: 100%;
}

.info-panel-inner p {
    margin: 0;
}

/* ------------------- Mobile Menu */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 360px);
    height: 100vh;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    display: none;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 100px 30px 30px 30px;
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav ul li {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 300;
    text-transform: lowercase;
}

.mobile-info-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.35s ease, transform 0.35s ease;
}

.mobile-info-panel.open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-info-panel-inner {
    padding-top: 10px;
}

.mobile-info-panel-inner p {
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
}

/* ------------------- Einleitungsbereich */

#einleitungsbereich {
    padding: 100px 0;
}

/* ------------------- Zweispalten */

.zweispalten img,
.zweispalten video {
    width: 100%;
    display: block;
}

/* ------------------- Unterer Grid-Bereich */

.portfolio-grid .row {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-grid .col-6 {
    display: flex;
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.portfolio-grid .media-box {
    display: block;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.portfolio-grid .media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------- Blur bei offener Lightbox */

.blur-target {
    transition: filter 0.35s ease, opacity 0.35s ease;
}

body.lightbox-open .blur-target {
    filter: blur(12px);
}

body.lightbox-open {
    overflow: hidden;
}

/* ------------------- Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.lightbox.is-visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.lightbox.is-visible .lightbox-overlay {
    opacity: 1;
}

.lightbox-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85vw;
    height: 85vh;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-visible .lightbox-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.lightbox-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
    background: white;
}

.lightbox-btn,
.lightbox-close {
    border: 0;
    background: none;
    color: #111;
    cursor: pointer;
    box-shadow:none;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.lightbox-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    flex: 0 0 56px;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.lightbox-btn:hover,
.lightbox-close:hover {
    transform: scale(1.10);
    background: white;
}

/* ------------------- Footer */

#footer {
    padding: 10px 40px;
}

.footer-copy {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}

footer {
    overflow: hidden;
}

footer nav ul {
    display: flex;
    justify-content: center;
}

footer ul li {
    list-style: none;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 20px;
}

#scroll-up {
    font-size: 20px;
    position: fixed;
    right: 40px;
    bottom: 40px;
    background-color: transparent;
    padding: 10px 15px;
    color: #000000;
    transition: 0.3s;
}

#scroll-up:hover {
    color: #000000;
    transform: scale(1.1);
    cursor: pointer;
}

/* ------------------- Große Displays */

@media (min-width: 1800px) {
    .portfolio-grid .col-6 {
        width: 25%;
    }

    .portfolio-grid .media-box {
        height: 420px;
    }

    .lightbox-panel {
        width: 90vw;
        height: 90vh;
    }
}

/* ------------------- Tablet */

@media (max-width: 1200px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    .col-4 {
        width: 50%;
    }

    .col-4:nth-child(1),
    .col-4:nth-child(2) {
        margin-bottom: 40px;
    }

    .col-3 {
        width: 50%;
    }

    .col-3:nth-child(1),
    .col-3:nth-child(2) {
        margin-bottom: 40px;
    }

    .col-2 {
        width: 50%;
    }

    .col-2:nth-child(1),
    .col-2:nth-child(2),
    .col-2:nth-child(3),
    .col-2:nth-child(4) {
        margin-bottom: 40px;
    }

    header nav ul li .submenu {
        display: none;
    }

    .zweispalten .col-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .portfolio-grid .col-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .portfolio-grid .media-box {
        height: 420px;
    }

    .box {
        padding: 10%;
    }

    .medium {
        padding: 0;
    }

    .lightbox-panel {
        width: 92vw;
        height: 82vh;
        gap: 16px;
    }

    .lightbox-btn {
        width: 46px;
        height: 46px;
        font-size: 26px;
        flex: 0 0 46px;
    }
}

/* ------------------- Mobile */

@media (max-width: 750px) {
    .desktop-nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    #info-panel {
        display: none;
    }

    .lightbox {
        display: none !important;
    }

    .col-6 {
        width: 100%;
    }

    .col-6:nth-child(1) {
        margin-bottom: 40px;
    }

    .col-4 {
        width: 100%;
    }

    .col-3 {
        width: 100%;
    }

    .col-3:nth-child(3) {
        margin-bottom: 40px;
    }

    .col-2 {
        width: 100%;
    }

    .col-2:nth-child(5) {
        margin-bottom: 40px;
    }

    .portfolio-grid .media-box {
        height: 280px;
    }

    #rechtliches nav ul li {
        font-size: 15px;
    }

    .zweispalten .col-6 {
        margin-bottom: 20px;
    }

    .zweispalten .col-6 a.lightbox-item {
        pointer-events: none;
        cursor: default;
    }

    header {
        padding: 20px 20px;
    }

    header img {
        height: 32px;
    }

    main {
        padding-top: 80px;
    }
}