/* ZENTRALE CONTAINER */
.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* SECTIONS */
.section {
    padding: 6rem 0;      
    position: relative;
}

.section-alt {
    background: #e9efec;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7f6;
    color: #2b2b2b;
    line-height: 1.6;
}


/* HERO */
.hero {
    height: 85vh;
      background:
        linear-gradient(rgba(75,172,163,.6), rgba(75,172,163,.6)),
        url("img/hero.png")
        center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	
}

.hero-content {
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: .05em;
}

.claim {
    font-size: 1.4rem;
}


/* SECTIONS */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: #e9efec;
}





.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title-inner {
    display: inline-block;
    padding-left: 1rem;
    font-size: 2rem;
    font-weight: 600;

    border-left: 4px solid #4baca3;
}


/* TEAM – FEATURE LAYOUT */
.team-feature {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0rem;
}

.team-photo {
    position: relative;
    margin-left: calc(-1 * (100vw - 1600px) / 2 - 3rem);
}

.team-photo-shape {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.team-photo-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .team-feature {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-photo {
        margin-left: 0;
    }

    .team-photo-shape {
        height: 280px;
    }
}


/* TEXT */
.team-info h3 {
    font-size: 1.6rem;
    margin-bottom: .25rem;
}

.team-role {
    color: #4baca3;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-info p {
    max-width: 620px;
}

/* KONTAKT */
.team-contact a {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #143c3c;
    text-decoration: none;
}

.team-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .team-feature {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .team-info p {
        margin-left: auto;
        margin-right: auto;
    }
}




/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 2rem;
}

.project-tile {
    cursor: pointer;
    position: relative;
}

.project-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.project-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(20,60,60,.75);
    color: #fff;
    padding: .75rem;
    font-size: .9rem;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    max-width: 700px;
    width: 90%;
    padding: 2rem;
    position: relative;
    border-radius: 4px;
}

.modal-content img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1rem;
	filter: saturate(0);
}

.modal-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background: #4baca3;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: #c7d6d1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* MASONRY GRID */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
	filter: grayscale(0);
}

.masonry-item:hover img {
    filter: grayscale(1);
}


.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
	font-weight: 500;

    padding: 1rem 1.1rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );

    pointer-events: none;
}



.masonry-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}



/* MOBILE: PROJEKTE UNTEREINANDER */
@media (max-width: 768px) {

    .masonry-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .project-tile img {
        aspect-ratio: 4 / 3;
    }

}

@media (hover: none) {

    .project-tile:hover img {
        filter: none;
    }

}


/* MODAL OVERLAY */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem; /* Abstand zu Bildschirmrand */
}

.modal.active {
    display: flex;
}

/* MODAL CONTENT */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;              /* <<< WICHTIG */
    overflow-y: auto;              /* <<< SCROLL */
    padding: 2rem;
    position: relative;
    border-radius: 4px;
}

/* BILD IM MODAL */
.modal-content img {
    width: 100%;
    max-height: 40vh;              /* <<< begrenzt Bildhöhe */
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* TEXT */
.modal-text {
    white-space: pre-line;
    line-height: 1.7;
}

/* CLOSE BUTTON */
.modal-close {
    position: sticky;              /* <<< bleibt sichtbar */
    top: 0;
    float: right;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}




/* MOBILE FIX: nur Sections NACH einer Schräge */
@media (max-width: 768px) {

    /* Section direkt nach einer oberen Schräge */
    .section--angled-bottom + .section {
        padding-top: 7rem;
    }

}


/* ÜBER DAS UNTERNEHMEN – FOKUSFELDER */

.intro-text {
    max-width: 720px;
    margin-bottom: 1rem;
}



.postit {
    background: #e9efec; 
    padding: 1.4rem 1.4rem 1.6rem;
    aspect-ratio: 1 / 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;


}





.postit img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.1rem;
}

.postit h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.7rem;
    color: #143c3c;
}

.postit p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}






/* GRID */
/* Desktop: 4 nebeneinander */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    align-items: stretch;
	margin-bottom: 3rem; 
}

/* EINZELNES THEMENFELD */
.focus-item {
    text-align: center;
}

/* THEMENFELD – RECHTECKE */

.focus-shape {
    background: #e9efec;
    padding: 2.5rem 2rem 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;

    text-align: center;
}



.focus-shape img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}




/* ICON */
.focus-icon {
    font-size: 2.4rem;
    line-height: 1;
}


.focus-label {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 90%;
}

.focus-text {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 340px;
}



.focus-item p {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90%;
}



/* TITEL */
.focus-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* TEXT */
.focus-item p {
    max-width: 320px;
    margin: 0 auto;
    font-size: .95rem;
}

.focus-intro {
    max-width: 720px;
    margin-bottom: 3.5rem;
    font-size: 1rem;
    color: #444;
}


/* ÜBER DAS UNTERNEHMEN – 2-SPALTEN-LAYOUT */

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* TEXT */
.about-text .intro-text,
.about-text .focus-intro {
    max-width: none;
    margin-bottom: 2.5rem;
}

/* THEMEN-GRID RECHTS */


/* THEMENITEMS */
.focus-item {
    text-align: center;
}

.focus-item h3 {
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.3;
}






@media (max-width: 700px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        margin-top: 4rem;
    }
	
	
	 .postit {
        aspect-ratio: auto;   /* oder unset */
	 height: auto;}
	
	
}

@media (max-width: 700px) {


.section-subtitle {
    margin: 4rem 0 3rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #143c3c;
}


    .focus-shape img {
        width: 72px;
        height: 72px;
    }
}


/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #ffffff;
    z-index: 1000;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.topbar-inner {
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 3rem;

    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}


/* PROFIL GRID */
.team-profile {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

/* LINKE SPALTE */
.profile-main p {
    max-width: 620px;
}

.profile-claim {
    margin-top: 1.5rem;
    font-style: italic;
    color: #555;
}

/* RECHTE SPALTE */
.profile-meta {


    font-size: 0.95rem;
}

.meta-block {
    margin-bottom: 2.2rem;
}

.meta-block h4 {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4baca3;
    margin-bottom: 0.6rem;
}

.meta-block p {
    line-height: 1.6;
    color: #2b2b2b;
}


.meta-contact {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-block a {
    color: #4baca3;   
}

.container-wide p a {
    color: #4baca3;   
}


/* LINKEDIN */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #4baca3;
    text-decoration: none;
}

.linkedin-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .team-profile {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
	
	
	.linkedin-link {
        justify-content: center;

}
	
	
}

.project-detail {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #444;
}

/* PROJEKT MODAL – ABSTÄNDE */
#modal-meta {
    margin-bottom: 0.6rem;
}

#modal-period {
    margin-bottom: 0.4rem;
}

#modal-role {
    margin-bottom: 1.2rem; 
}

#modal-text {
    margin-top: 0;
}

#modal-title {
    color: #4baca3;
}


/* PROJEKTGRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
}

/* KACHEL */
.project-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
}

/* BILD */
.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	filter: saturate(0) brightness(0.75);
    transition: filter 0.35s ease;
}


.project-image {
    position: relative;
    overflow: hidden;
}


/* TÜRKISE FLÄCHE NUR ÜBER DEM BILD */
.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 140, 140, 0.3);
    z-index: 1;
    transition: opacity 0.35s ease;
}

/* Overlay beim Hover ausblenden */
.project-tile:hover .project-image::before {
    opacity: 0;
}



/* CAPTION IM BILD */
.project-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2; /* ÜBER dem Bild-Overlay */
    padding: 1.2rem;
    color: #fff;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.65)
    );
}

.project-caption h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.project-caption span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ÜBER DAS UNTERNEHMEN – 2-SPALTEN-LAYOUT */
.about-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

/* TEXT */
.about-text .intro-text,
.about-text .focus-intro {
    max-width: 680px;
}

/* GRAFIK-SPALTE */
.about-visual {
    position: relative;
    max-width: 520px;          /* <<< begrenzt die Bildbreite */
}

.about-visual img {
    width: 100%;
    max-height: 400px;         /* <<< DAS ist der wichtigste Fix */
    object-fit: contain;

    display: block;
    border-radius: 2px;

}


/* RESPONSIVE: Grafik auf Mobile ausblenden */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-visual {
        display: none;
    }
}


.projects-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.projects-filter label {
    font-weight: 600;
    color: #143c3c;
}

.projects-filter select {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cfd8d5;
    border-radius: 4px;
    background: #fff;
    color: #2b2b2b;
}

@media (max-width: 768px) {
    .projects-filter {
        justify-content: center;
        text-align: center;
    }
}

