/* --- SCHRIFTARTEN DEFINITION (Carlito als Calibri-Ersatz) --- */

@font-face {
    font-family: 'Carlito';
    src: url('../fonts/Carlito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carlito';
    src: url('../fonts/Carlito-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Carlito';
    src: url('../fonts/Carlito-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Carlito';
    src: url('../fonts/Carlito-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* --- GLOBALE STYLES --- */

body, html {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000000;
    background: #ffffff;
    font-family: 'Calibri', 'Carlito', sans-serif;
    font-size: 18px;
    line-height: 26px;
}

body {
    border: solid 12px #eeeeee;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-weight: bold;
    font-family: 'Calibri', 'Carlito', sans-serif;
}

h4 {
    font-weight: normal;
    font-family: 'Calibri', 'Carlito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

img {
    border: none;
    outline: none;
    display: block;
}

a,
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    color: #d1b254;
}

div {
    display: block;
    position: relative;
}

p {
    font-family: 'Calibri', 'Carlito', sans-serif;
}

/* Auch Buttons sollen die korrekte Schriftart haben */
button {
    font-family: 'Calibri', 'Carlito', sans-serif;
}

.alignleft p,
.alignleft ul li,
.alignleft ul,
.alignleft em {
    text-align: left;
}

strong {
    font-family: 'Calibri', 'Carlito', sans-serif;
    font-weight: bold;
}

em {
    font-style: italic;
    font-family: 'Calibri', 'Carlito', sans-serif;
}

header {
    width: 100%;
    height: 145px;
}

footer, .footer {
    background-color: #eeeeee;
    width: 100%;
    font-family: 'Calibri', 'Carlito', sans-serif;
    height: 50px;
}

.footer-left, .footer-right {
    position: absolute;
    padding: 15px 0 5px 0;
    top: 0;
    line-height: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #929292;
}

.footer-left {
    left: 10%;
}

.footer-right {
    right: 10%; 
    left: 10%;
    text-align: center;
}

section {
    width: 100%;
    text-align: center;
}

.section {
    background: #ffffff;
    text-align: center; 
}

.section.blue {
    background: #003282;
    color: #ffffff;
    padding: 40px 6% 50px 6%;
}

/* --- TEXT SPALTEN (FLEXBOX UPDATE) --- */

.text-column-wrapper {
    display: flex;          /* Flexbox für gleiche Höhe */
    width: 100%;
    padding: 20px 0;
    align-items: stretch;   /* Zieht alle Spalten auf gleiche Höhe */
    justify-content: space-between;
}

.text-column {
    display: flex;          /* Spalte selbst ist Flexbox */
    flex-direction: column; /* Elemente untereinander */
    width: 33.33%;          
    padding: 0 10px;
    box-sizing: border-box;
}

.section.blue .text-column p {
    width: 85%;
    /* margin-left/right auto kommt vom globalen p style unten */
}

/* Haupttext füllt den Platz */
.text-column p.main-text {
    flex-grow: 1;           
    margin-bottom: 20px;
}

/* Kontaktlink wird nach unten gedrückt */
.text-column p.contact-link {
    margin-top: auto;       
    margin-bottom: 0;
    font-weight: bold;
}

/* ------------------------------------ */

.section.white {
    background: #ffffff;
    padding: 70px 0 100px 0;
}

.section.box {
    width: 100%;
    height: 100%;
    display: table;
    background-size: cover;
    background-image: url('../img/gallery/shutterstock_693887626_b_80.jpg');
    background-position: center center;
}

h2, p, .white ul {
    max-width: 525px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

ul, li {
    text-align: left;
}

.logo {
    width: 280px;
    height: auto;
    position: absolute;
    left: 50%;
    top: 45px;
    margin-left: -140px;
    z-index: 111;
}

.swoosh {
    width: 200px;
    height: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
}

.swoosh.small {
    width: 120px;
    padding-top: 15px;
    padding-bottom: 5px;
}

.logo img,
.swoosh img {
    width: 100%;
    height: auto;
}

.box-inner {
    margin: 100px 0 120px 0;
    padding: 40px 50px 30px 50px;
    background: #ffffff;
    display: inline-table;
}

.box-inner p {
    min-width: 180px;
}

/* NAVIGATION */

.nav-left,
.nav-right {
    font-family: 'Calibri', 'Carlito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    position: absolute;
    top: 30px;
}

.nav-left {
    left: 35px;
}

.nav-right {
    right: 35px; 
}

span.active {
    color: #d1b254;
    padding-right: 20px;
}

a.navigation {
    padding-right: 20px;
}

/* SLIDER SLICK */

.slider {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

.slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eeeeee;
    background-size: cover;
    background-position: center bottom;
}

.slide:after {
    padding-top: 40%;
    display: block;
    content: '';
}

.slider-box {
    background-color: rgba(209,178,84,0.9);
    position: absolute;
    top: 15%;
    padding: 30px 35px 33px 35px;
    left: 5%;
    color: #ffffff;
    width: auto;
    text-align: left;
    box-sizing: border-box;
}

.slider-box span {
    display: block;
}

.slider-box span.slider-headline {
    font-family: 'Calibri', 'Carlito', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 2rem;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

.slider-box span.slider-subhead {
    line-height: 1.2rem;
}

.slider01 {
    background-image: url('../img/gallery/shutterstock_1076266166_b_1920_85.jpg');
}

.slider03 {
    background-image: url('../img/gallery/pexels-photo-655674_b.jpg');
}

.slider02 {
    background-image: url('../img/gallery/shutterstock_1008467146_b2_1920_85.jpg');
}


/* GALLERY */

.section.gallery {
    display: table;
    width: 100%;
}

.gallery-column {
    width: 24.7%;
    margin: 0;
    padding: 0;
    display: table-cell;
    background: transparent;
}

.gallery-column.padding {
    width: 0.4%;
}

.gallery-image-wrapper {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 66%;
}

.gallery-title {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    line-height: 1rem;
}

.gallery-image {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-size: cover;
    background-position: center center;
    border-bottom: 5px solid #ffffff;
}

.gallery-image.industry01 {
    background-image: url('../img/gallery/shutterstock_518713594_b_85.jpg');
}

.gallery-image.industry02 {
    background-image: url('../img/gallery/shutterstock_454264585_b_85.jpg');
}

.gallery-image.healthcare01 {
    background-image: url('../img/gallery/shutterstock_554622343_b_85.jpg');
}

.gallery-image.healthcare02 {
    background-image: url('../img/gallery/shutterstock_352316315_b_85.jpg');
}

.gallery-image.consumer01 {
    background-image: url('../img/gallery/pexels-photo-34207359.jpg');
}

.gallery-image.consumer02 {
    background-image: url('../img/gallery/Energiemanagement-Industrie-Transparenz.jpg');
}

.gallery-image.technology01 {
    background-image: url('../img/gallery/shutterstock_244142176_b_85.jpg');
}

.gallery-image.technology02 {
    background-image: url('../img/gallery/shutterstock_680664070_b_85.jpg');
}

.gallery-image.values01 {
    background-image: url('../img/gallery/shutterstock_526689706_b_85.jpg');
}

.gallery-image.values02 {
    background-image: url('../img/gallery/shutterstock_504252922_b_85.jpg');
}

.gallery-image.values03 {
    background-image: url('../img/gallery/shutterstock_704150728_b_85.jpg');
}

/* --- TEAM SECTION (NEU) --- */

.team-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 40px;
}

.team-member {
    width: 22%; 
    text-align: center; 
    margin-bottom: 40px;
}

/* BILDER: 80% Breite, zentriert */
.team-member img {
    width: 80%;
    height: auto;
    border-radius: 5px; 
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #eee; 
}

/* NAME */
.team-member h4 {
    font-size: 0.9em; 
    margin-top: 10px;
    margin-bottom: 2px;
    font-weight: bold;
}

/* TITEL (Partner) */
.team-member h5 {
    font-size: 0.8em; 
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TEXTLISTEN */
.team-member ul {
    text-align: left; 
    padding-left: 1.2em; 
    margin-top: 0;
    font-size: 0.9em; 
    line-height: 1.4;
}

.team-member li {
    margin-bottom: 8px; 
}

/* BUTTONS FÜR LEBENSLAUF */
.bio-toggle-btn {
    background-color: transparent;
    border: 1px solid #999;
    color: #333;
    padding: 5px 12px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.bio-toggle-btn:hover {
    background-color: #eee;
    border-color: #666;
}

/* Der Text-Inhalt ist standardmäßig ausgeblendet */
.bio-content {
    display: none; 
    margin-top: 10px;
}


/* RESPONSIVE */

@media only screen and (max-width: 1200px) {
    .slider-box {
        width: 45%;
    }
    .section.blue {
        padding: 40px 0 50px 0;
    }
}

@media only screen and (max-width: 1000px) {
    .footer-left, 
    .footer-right,
    .section.gallery,
    .gallery-column {
        display: block;
        width: 100%;
    }
    
    /* Text-Spalten auf Mobile wieder untereinander */
    .text-column-wrapper {
        display: block; 
    }
    .text-column {
        width: 100%;
        display: block;
        padding-bottom: 30px;
    }

    .slide:after {
        padding-top: 50%;
    }
    .slider-box {
        width: 60%;
    }
    .footer, footer {
        height: auto;
    }
    .footer {
        padding: 15px 0;
    }
    .footer-right,
    .footer-left {
        position: relative;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0 0 0 15px;
        box-sizing: border-box;
    }
}

@media only screen and (max-aspect-ratio: 1/1) {
    .slide:after {
        padding-top: 100%;
    }
}

@media only screen and (max-width: 750px) {
    .nav-left,
    .nav-right {
        position: relative;
        right: initial;
        left: initial;
        margin-right: 0;
        text-align: right;
        max-width: 40%;
        margin-left: 60%;
        top: 20px;
    }
    a.navigation, span.active {
        display: block;
    }
    .logo {
        margin-left: 0;
        left: 35px;
        max-width: 50%;
    }
    .slider-box {
        width: 90%;
        top: 5%;
        padding: 20px 25px;
    }
    .slider-box span.slider-headline {
        font-size: 1.35rem;
        line-height: 1.5rem;
    }
    .section.white {
        padding: 50px 0 70px 0;
    }
    .footer-left, .footer-right {
        line-height: 1rem;
        padding-left: 0;
    }
    .second {
        display: none;
    }
    .section.box {
        background-image: url('../img/gallery/shutterstock_693887626_b_mobile_85.jpg');
    }
    
    /* TEAM MOBILE OPTIMIERUNG */
    .team-member {
        width: 48%; 
        margin-bottom: 30px;
    }

    /* Namen immer zweizeilig */
    .team-member h4 {
        line-height: 1.3em;
        min-height: 2.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        word-wrap: break-word;
    }

    .team-member ul {
        font-size: 0.85em;
        padding-left: 1em;
    }
}

@media only screen and (max-width: 550px) {
    body, html {
        font-size: 15px;
        line-height: 22px;
    }
    header {
        height: 130px;
    }
    p {
        width: 86%;
    }
    .logo {
        left: 25px;
        top: 35px;
    }
    .section.blue,
    .section.white {
        padding: 30px 0 40px 0;
    }
    .swoosh {
        padding-top: 20px;
        width: 160px;
    }
    .box-inner {
        padding: 25px 25px 15px 25px;
    }
    .text-column {
        padding-bottom: 15px;
    }
}

@media only screen and (min-width: 1440px) {
    .slider-box {
        padding: 35px 40px;
    }
    .slider-box span.slider-headline {
        font-size: 2.5rem;
        line-height: 2.5rem;
        padding-bottom: 15px;
    }
    .slider-box span.slider-subhead {
        font-size: 1.3rem;
        line-height: 1.8rem;
    }
    .gallery-title {
        min-width: 250px;
    }
}

/* --- KORREKTUR: Abstand unter dem Team verringern --- */
#werwirsind {
    padding-bottom: 0 !important;
}