/* =========================================================
   GRUNDLAYOUT
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --frame-width: 1380px;
    --banner-height: 180px;
    --header-height: 40px;
    --container-padding: 30px;
    --section-padding: 70px;
    --white: #ffffff;
    --black: #151515;
    --corporate-blue: #336799;
    --corporate-gray: #606060;
    --dark: #336799;
    --light: #f5f5f3;
    --text: #606060;
    --accent: #336799;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --body-size: 16px;
    --body-line-height: 1.7;
    --h1-size: clamp(33px, 6vw, 56px);
    --h2-size: clamp(16px, 4vw, 30px);
    --h3-size: 24px;
}


/* =========================================================
   HTML / BODY
========================================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--banner-height) + var(--header-height));
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    color: var(--corporate-gray);
    background: var(--white);
}


/* =========================================================
   FIXIERTER BANNER
========================================================= */
.lok-banner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--banner-height);
    background: var(--white);
}

.lok-container {
    width: 100%;
    max-width: var(--frame-width);
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.lok-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HEADER
========================================================= */
.site-header {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: var(--black);
}

.header-container {
    width: 100%;
    max-width: var(--frame-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* =========================================================
   LOGO
========================================================= */
.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
}


/* =========================================================
   NAVIGATION
========================================================= */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav > a,
.main-nav > .has-submenu > .submenu-toggle {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: var(--white);
    background: transparent;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.main-nav > a:last-child {
    border-right: 1px solid rgba(255,255,255,0.15);
}

.main-nav > a:hover,
.main-nav > .has-submenu > .submenu-toggle:hover {
    color: var(--corporate-blue);
    background: rgba(255,255,255,0.06);
}


/* =========================================================
   UNTERMENÜ
========================================================= */
.has-submenu {
    position: relative;
    height: 100%;
}

.submenu-toggle span {
    margin-left: 8px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.25s ease;
}

.submenu-open .submenu-toggle span {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    background: var(--black);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1100;
}

.has-submenu.submenu-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    padding: 0 20px;
    color: var(--white);
    background: var(--black);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    border: 0;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}

.submenu a:hover {
    color: var(--corporate-blue);
    background: rgba(255,255,255,0.06);
}


/* =========================================================
   HAUPTINHALT
========================================================= */
main {
    width: 100%;
    padding-top: calc(var(--banner-height) + var(--header-height));
}


/* =========================================================
   SECTIONS
========================================================= */
.section {
    width: 100%;
    min-height: auto;
    height: auto;
}

.section-container {
    width: 100%;
    max-width: var(--frame-width);
    margin: 0 auto;
    padding: var(--section-padding) var(--container-padding);
    height: auto;
}


/* =========================================================
   HOME
========================================================= */
.section-home {
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f3 100%);
}


/* =========================================================
   SECTION FARBEN
========================================================= */
.section-light {
    background: var(--light);
    color: var(--corporate-gray);
}

.section-dark {
    background: var(--corporate-blue);
    color: var(--white);
}


/* =========================================================
   TYPOGRAFIE
========================================================= */
h1,
h2,
h3 {
    line-height: 1.1;
    color: var(--corporate-blue);
}

h1 {
    font-size: var(--h1-size);
    font-weight: 500;
    margin-bottom: 30px;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 500;
    margin-bottom: 35px;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 500;
    margin-bottom: 15px;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark .card h2 {
    color: var(--corporate-blue);
}

p {
    max-width: var(--frame-width);
    margin-bottom: 20px;
    font-size: 20px;
}


/* =========================================================
   EYEBROW
========================================================= */
.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--corporate-blue);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-dark .eyebrow {
    color: var(--white);
}


/* =========================================================
   INTRO
========================================================= */
.intro-text {
    width: 100%;
    max-width: var(--frame-width);
    margin: 50 auto;
}


/* =========================================================
   BUTTON
========================================================= */
.button {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--corporate-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--corporate-gray);
}


/* =========================================================
   CARDS
========================================================= */
.cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: auto;
}

.card {
    width: 100%;
    padding: 40px;
    background: var(--white);
    border: 1px solid rgba(51,103,153,0.15);
    border-radius: 16px;
    height: auto;
    min-height: 0;
}

.section-dark .card {
    background: var(--white);
    border: 1px solid rgba(120,120,120,0.8);
    border-radius: 16px;
    color: var(--corporate-gray);
}

.section-dark .card h3 {
    color: var(--corporate-blue);
}

.card h2 {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--corporate-blue);
}


.project-page .card {
    width: 100%;
    min-height: 700px;
    height: auto;
}


/* =========================================================
   PROJEKT-BILDER
========================================================= */
.project-image {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 600px;
    margin: 0 auto;
    object-fit: contain;
}


/* =========================================================
   ZWEI SPALTEN
========================================================= */
.two-column {
    width: 100%;
    display: grid;
    grid-template-columns: 400px minmax(0,1fr);
    gap: 70px;
    align-items: start;
}

.two-column > div {
    min-width: 0;
}


/* =========================================================
   CARD BUTTON
========================================================= */
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 24px;
    background: var(--corporate-blue);
    color: var(--white) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid var(--corporate-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.card-button span {
    font-size: 18px;
    line-height: 1;
    color: var(--white);
    transition: transform 0.3s ease;
}

.card-button:hover {
    background: var(--white);
    color: var(--corporate-blue) !important;
    border-color: var(--corporate-blue);
}

.card-button:hover span {
    color: var(--corporate-blue);
    transform: translateX(5px);
}


/* =========================================================
   TRENNUNG IMPRESSUM / DATENSCHUTZ
========================================================= */
.legal-divider {
    max-width: 1000px;
    margin: 100px 0 90px;
    border-top: 1px solid rgba(51,103,160,0.25);
}


/* =========================================================
   PROJEKT-NAVIGATION
========================================================= */
.project-nav {
    position: sticky;
    top: calc(var(--banner-height) + var(--header-height));
    z-index: 900;
    width: 100%;
}

.project-nav-container {
    width: 100%;
    max-width: var(--frame-width);
    min-height: 48px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
}


/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    width: 100%;
    padding: 35px 0;
    background: var(--black);
    color: var(--white);
}

.footer-container {
    width: 100%;
    max-width: var(--frame-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    margin: 0;
    font-size: 13px;
}

.footer-container a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 13px;
}

.footer-container a:hover {
    color: var(--corporate-blue);
}


/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1000px) {

    .main-nav > a,
    .main-nav > .has-submenu > .submenu-toggle {
        padding: 0 14px;
    }

    .two-column {
        grid-template-columns: 320px minmax(0,1fr);
        gap: 50px;
    }

    .project-image {
        max-width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */
.menu-toggle,
.menu-button {
    display: none;
}

@media screen and (max-width: 768px) {

    :root {
        --banner-height: 80px;
        --header-height: 55px;
        --container-padding: 20px;
        --section-padding: 60px;
    }

    body {
        font-size: 14px;
    }

    p {
        font-size: 20px !important;
        line-height: 1.6;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 19px;
    }

    .card p {
        font-size: 18px !important;
        line-height: 1.6;
    }

    .card h2 {
        font-size: 23px;
    }

    .card h3 {
        font-size: 19px;
    }


    /* =====================================================
       MOBILE BANNER
    ===================================================== */
    .lok-banner {
        height: var(--banner-height);
    }

    .lok-container img {
        width: 100%;
        height: var(--banner-height);
        object-fit: cover;
        object-position: left center;
    }


    /* =====================================================
       MOBILE HEADER
    ===================================================== */
    .site-header {
        position: fixed;
        top: var(--banner-height);
        left: 0;
        width: 100%;
        height: var(--header-height);
        z-index: 1000;
    }

    .header-container {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 0 var(--container-padding);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        display: block;
        font-size: 17px;
        line-height: 1.2;
    }

    .logo small {
        display: block;
        margin-top: 3px;
        font-size: 9px;
    }


    /* =====================================================
       MOBILE MENU BUTTON
    ===================================================== */
    .menu-toggle {
        display: none;
    }

    .menu-button {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 1002;
    }

    .menu-button span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--white);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }


    /* =====================================================
       MOBILE HAUPTMENÜ
    ===================================================== */
    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--black);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .main-nav > a,
    .main-nav > .has-submenu > .submenu-toggle {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
        color: var(--white);
    }

    .main-nav > a:last-child {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .main-nav > a:hover,
    .main-nav > .has-submenu > .submenu-toggle:hover {
        color: var(--corporate-blue);
        background: rgba(255,255,255,0.06);
    }


    /* =====================================================
       MOBILE UNTERMENÜ
    ===================================================== */
    .has-submenu {
        width: 100%;
        height: auto;
    }

    .submenu-toggle span {
        margin-left: 7px;
    }

    .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.04);
        box-shadow: none;
    }

    .has-submenu.submenu-open .submenu {
        display: flex;
    }

    .submenu a {
        width: 100%;
        height: 45px;
        justify-content: center;
        padding: 0;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.8px;
        border-top: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.04);
    }

    .submenu a:hover {
        color: var(--corporate-blue);
        background: rgba(255,255,255,0.08);
    }


    /* =====================================================
       MOBILE MENU – GEÖFFNET
    ===================================================== */
    .menu-toggle:checked ~ .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle:checked + .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* =====================================================
       MOBILE HAUPTINHALT
    ===================================================== */
    main {
        padding-top: calc(var(--banner-height) + var(--header-height));
    }

    .section {
		width: 100%;
		min-height: calc(100vh - var(--banner-height) - var(--header-height));
		height: auto;
		padding: 0 0 60px;
		display: block;
	}

    .section-container {
        width: 100%;
        max-width: var(--frame-width);
        min-height: 0;
        height: auto;
        padding: var(--section-padding) var(--container-padding);
        overflow: visible;
    }


    /* =====================================================
       MOBILE ZWEI SPALTEN
    ===================================================== */
    .two-column {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-column > div {
        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       MOBILE BILDER
    ===================================================== */
    .project-image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
        object-fit: contain;
    }


    /* =====================================================
       MOBILE CARDS
    ===================================================== */
    .cards {
        width: 100%;
        margin-top: 20px;
        gap: 20px;
        height: auto;
    }

    .card {
        width: 100%;
        padding: 15px;
        height: auto;
        min-height: 0;
    }


    /* =====================================================
       MOBILE FOOTER
    ===================================================== */
    .footer-container {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-container a {
        margin: 0 10px;
    }


    /* =====================================================
       MOBILE PROJEKT-NAVIGATION
    ===================================================== */
    .project-nav {
        position: sticky;
        top: calc(var(--banner-height) + var(--header-height));
    }

    .project-nav-container {
        min-height: 48px;
        padding: 0 20px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .project-nav-title {
        flex-shrink: 0;
        margin-right: 10px;
        font-size: 11px;
    }

    .project-nav-links {
        flex-shrink: 0;
        height: 48px;
    }

    .project-nav-links a {
        height: 48px;
        padding: 0 12px;
        font-size: 11px;
    }


    /* =====================================================
       MOBILE PROJEKTSEITE
    ===================================================== */
    .project-page .two-column {
        width: 100%;
        margin: 0;
    }

    .project-page .two-column > div {
        width: 100%;
    }

    .project-page .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .project-page .card {
        width: 100%;
        padding: 15px;
        height: auto;
        min-height: 0;
    }

    .project-page .cards {
        width: 100%;
        margin-top: 20px;
        gap: 20px;
    }

    .project-page .card p {
        font-size: 15px !important;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .project-page .card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}