:root {
    --white: #fff;
    --text: #111;
    --red: #c00;
    --red-hover: #5c2021;
    --blue: #038;
    --light-grey: #f8f8f8;
}

body {
    font-family: "FrutigerLTW01-45Light", sans-serif !important;
    font-size: 17px;
    line-height: 24px;
    padding-top: 10px;
    color: var(--text);
}

/**
 * Smooth loading
 */
.smooth-loading {
    display: none;
    transition-property: opacity;
    -webkit-transition: opacity 250ms ease-in;
    -moz-transition: opacity 250ms ease-in;
    -ms-transition: opacity 250ms ease-in;
    -o-transition: opacity 250ms ease-in;
    transition: opacity 250ms ease-in;
}

/**
 * Wrapper
 */
#wrapper {
    max-width: 1024px;
    margin: 0 auto 10px;
    border: 1px solid #ddd;
}

@media screen and (max-width: 767px) {
    body {
        padding-top: 0;
    }

    #wrapper {
        border: 0;
    }
}

/**
 * Typography
 */
 a {
    color: var(--blue);
    outline: 0;
}

a:hover {
    color: var(--red) !important;
}

b {
    font-weight: normal;
}

h1, h2.ui.header {
    border-bottom: 1px solid #ddd !important;
    font-weight: normal;
    margin-top:60px!important;
}

h1 span, h2.ui.header span {
    font-family: "FrutigerLTW01-55Roman", sans-serif !important;
    border-bottom: 3px solid var(--blue) !important;
    position: relative;
    top: 1px;
    padding-bottom: 9px;
    font-size: 30px;
    font-weight: normal;
    display: inline-block;    
}

@media screen and (max-width: 767px) {
    h1 span {
        top: 1px;
        display: inline-block;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 25px;        
    }
}

h2 {
    font-family: "FrutigerLTW01-45Light", sans-serif !important;
}

h3.ui.header, h3.ui.header:first-child {
    color: var(--blue);
    font-weight: normal;
    margin-bottom: 10px !important;
    font-family: "FrutigerLTW01-45Light", sans-serif !important;
    margin-top: 40px;
}

p {
    margin-top:20px;
    margin-bottom:0px;
}

h4 {
    font-family: "FrutigerLTW01-45Light", sans-serif !important;
    font-weight: 400;
    font-size: 22px;
    line-height: 32px;
    margin-top: 30px;
    margin-bottom: 20px;
}

span.pensum {
    display: block;
    font-size: 24px;
    margin: 26px 0px 18px;
}

@media screen and (max-width: 767px) {
    h4 {
        font-size: 19px;
        line-height: 26px;
    }
}

/**
 * Listing
 */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
    background: url("../images/bullet-point.png") 6px 7px no-repeat;
    background-size: 8px 8px;
}

/**
 * Header
 */
header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 60px 60px 46px;
    background-color: var(--white);
}

.desktop-logo {
    display: block;
}

.mobile-logo {
    display: none;
}

header nav {
    display: none;
    gap: 15px;
}

header nav a {
    font-family: 'Frutiger LT W01_65 Bold';
    font-size: 1.125em;
    text-decoration: none;
}

picture {
    display: block;
    margin: 0 auto;
}

picture img {
    display: block;
    width: 100%;
    height: auto;
}

#fixed-header {
    position: fixed;
    top: -117px;
    opacity: 0;
    z-index: 9999;
    transition: top 0.3s ease, opacity 0.3s ease;
    max-width: 1022px;
    width: 100%;
    background-color: var(--white);
    padding: 20px 60px 15px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border-bottom: 8px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, #f6290e 0%, #f6290e 17%, #165aad 72%, #165aad 100%) border-box;
}

#fixed-header.active {
    top: 0px;
    opacity: 1;
}

#fixed-header .title-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: calc(100% - 170px);
    width: 100%;
    overflow: hidden;
}

#fixed-header h2 {
    line-height: 38px;
    margin:0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

#fixed-header nav {
    display: flex;
    gap: 30px;
}

#fixed-header nav a {
    display: block;
    font-family: 'Frutiger LT W01_65 Bold';
    font-size: 1.125em;
    font-weight: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    position: relative;
}

#fixed-header nav.it a {
    font-size:0.9em;
}

#fixed-header nav a.active {
    color: var(--red);
}

/* Burger Container */
.burger-container {
    display: none;
    position: absolute;
    right: 25px;
    top: 16px;
}

/* Burger Icon */
.burger-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    position: relative;
}

/* Burger Icon Lines */
.burger-icon .line {
    width: 30px;
    height: 4px;
    background-color: var(--blue);
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-icon .line:nth-child(1) {
    top: 10px;
}

.burger-icon .line:nth-child(2) {
    top: 18px;
}

.burger-icon .line:nth-child(3) {
    top: 26px;
}

/* Active State for Burger Icon */
.burger-icon.active .line:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.burger-icon.active .line:nth-child(2) {
    opacity: 0;
}

.burger-icon.active .line:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    body {
        padding-top:90px;
    }
    /* Header Adjustments */
    header {
        display: none;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }
    #fixed-header nav.it a {
        font-size: 1em;
    }

    .burger-container {
        display: block;
    }

    #fixed-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
        top:0px;
        opacity: 1;
    }

    #fixed-header .title-nav {
        max-width: 100%;
    }

    #fixed-header nav {
        height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0px;
        background: var(--white);
        padding: 0px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
        border-bottom: 8px solid transparent;
        background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, #f6290e 0%, #f6290e 17%, #165aad 72%, #165aad 100%) border-box;
    }

    #fixed-header nav.active {
        height: 250px;
        padding-top:20px;
    }

    #fixed-header nav a {
        padding: 8px 30px;
        border-bottom: solid 1px #ccc;
    }

    #fixed-header nav a:after {
        position: absolute;
        right:25px;
        top: 10px;
        font-family: 'finma';
        font-size: 26px;
        content: '\e603';
        display: inline-block;
        margin-right: 7px;
        margin-top: -4px;
        color: var(--blue);
        line-height: 26px;
        background-color: #ffffff;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
}

    /* Fixed Header Adjustments */
    #fixed-header .title-nav h2 {
        display: none;
    }

    #fixed-header.active .title-nav h2 {
        display: block;
    }
}


/**
 * Sections
*/

section {
    margin: 60px 60px 0px;
}

#contact {
    background: #e7e7e7 url("../images/box-background.png") no-repeat right bottom;
    background-size: 50% auto;
    margin-left: 0;
    margin-right: 0;
    padding: 30px 60px 40px;
}

#contact h3.ui.header {
    margin-top:0px;
    margin-bottom: 15px!important;
}

#contact p {
    margin: 0;
}

@media (max-width: 1024px) {
    section {
        margin: 30px 30px 0px;
    }
    #about, #similarJobs {
        margin-top: 40px;
    }
    .work-links {
        margin-top: 30px;
    }
    #fixed-header, #contact {
        padding-right:30px;
        padding-left:30px;
    }
    picture {
        margin:0!important;
    }
    h3.ui.header, h3.ui.header:first-child {
        margin-top:35px;
    }
}

#contact .specific-contact {
    margin-top: 15px;
}

/**
* Icon
*/
.social-icons {
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .print {
        display: none !important;
    }
}

.finma-icon {
    color: var(--red);
    font-size: 28px !important;
    position: relative;
    top: 6px;
}

.jobmail,
.openjobs {
    margin-top: -4px;
}

.glyph-marker,
.glyph-share,
.glyph-print {
    height: 20px;
    width: 20px;
    display: inline-block;
    margin-right: 8px;
    top: 5px;
}

#place-of-work {
    margin-bottom: 30px;
    font-size: 110%;
}

.glyph-marker {
    background: url("../images/marker.png") no-repeat;
    background-size: 12px auto;
    width:12px;
    margin-right:4px;
    top: 3px;
}

.marker-image {
    margin-right: 10px !important;
}

.glyph-share {
    background: url("../images/share.png") no-repeat;
    background-size: 18px auto;
}

.glyph-print {
    background: url("../images/print.png") no-repeat;
    background-size: 18px auto;
}

.note {
    color: var(--blue);
    font-family: 'Frutiger LT W01_65 Bold';
    font-size: 18px;
}

/**
 * Link
 */
.work-links {
    margin-top: 40px;
}

.link {
    display: block;
    font-weight: bold;
}

.link.inline {
    display: inline-block;
}

.contact .xing {
    margin-right: 40px;
}

.contact .contact.content {
    overflow: hidden;
}

.first-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}


@media screen and (max-width: 991px) {
    .first-contact .phone-number {
        margin-bottom: 0;
    }

    .contact .xing {
        margin: 0;
        padding: 0;
    }
}

@media screen and (max-width: 767px) {
    .first-contact .phone-number {
        margin-bottom: 35px;
    }
}

@media screen and (max-width: 600px) {
    .first-contact .phone-number {
        margin-bottom: 15px;
    }
}

/**
 * Accordion.
 */
.ui.accordion {
    margin-top: 30px;
}

.ui.accordion .title,
.ui.accordion .content {
    background: #f8f8f8;
}

.ui.accordion i.accordion-icon {
    border-left: 1px solid #ddd;
    padding-left: 10px;
    font-size: 32px !important;
    color: var(--blue) !important;
    margin-top: -8px;
    padding-top: 8px;
    padding-bottom: 8px;
    float:right;
}

.ui.accordion .segment {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.ui.accordion .title {
    padding: 14px 10px 13px 20px !important;
    border-right: 1px solid #ddd;
    font-size: 19px !important;
    font-family: "FrutigerLTW01-45Light", sans-serif !important;
    font-weight: 400 !important;
    color: var(--blue) !important;
    line-height: 26px !important;
}

.ui.accordion .active.title {
    margin-bottom: 0;
    color: #c00 !important;
}

.ui.accordion .active.title i.glyph-arw-m-down {
    color: #c00 !important;
}

.ui.accordion .active.title i.glyph-arw-m-down:before {
    content: '\e602';
}

.ui.accordion .content {
    border-right: 1px solid #ddd;
}

.ui.accordion .content p {
    padding: 0 60px 18px 20px !important;
    margin-bottom: 0;
}

.ui.accordion .link {
    padding: 0 10px 15px 20px;
}


/**
 * Similar Jobs
 */
.jobList {
    margin-top: 40px;
}

.job {
    background: #f8f8f8;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 14px 10px;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.job .jobTitle {
    flex: 3.5;
}

.job .jobMeta {
    flex: 1;
}

@media (max-width: 768px) {
    .job {
        flex-direction: column;
    }
    .job > div {
        flex: 1 1 100%;
    }
    .job .jobMeta {
        margin-left:35px;
    }
}

.job .job-title {
    color: var(--blue);
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
}

.job .job-title .finma-icon {
    top: 1px;
    margin-right: 5px;
}

.job .job-content {
    padding: 0 10px 6px 34px;
    font-size: 15px;
    color: #646464;
    line-height: 1.32;
    margin-top:0px;
}

/**
 * Footer
 */
footer {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-bottom: 120px;
    justify-content: flex-start;
    align-items: center;
}

#footer-image img {
    display: block;
    width: 100%;
    height: auto;
}

#footer-tools {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ui.popup {
    display: flex!important;
    flex-wrap: wrap;
    gap:20px;
    align-items: center;
    justify-content: flex-start;
    width: 235px;
    height: 166px;
    padding:20px;
    box-sizing: border-box;
}


/**
 * Button
 */
.ui.button {
    font-family: 'Frutiger LT W01_65 Bold';
    font-size: 1.125em;
    line-height: 1.125em;
    font-weight: normal;
    color: #ffffff !important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin:0px;
    padding: 9px 40px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    background: var(--red);
    white-space: nowrap;
}

.ui.button:hover {
    background: var(--red-hover);
}

footer + .ui.button {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    text-align: center;
    z-index: 9999;
    animation: float-up 0.6s ease-out forwards;
}

@keyframes float-up {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    100% {
        bottom: 40px;
        opacity: 1;
    }
}
/**
 * Print.
 */
.printable-only {
    display: none;
}