/* Font Face Definition für Rhymes Text Regular */
@font-face {
    font-family: 'Rhymes Text';
    src: url('../fonts/RhymesTextRegular.woff2') format('woff2'),
         url('../fonts/RhymesTextRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face Definition für Rhymes Text Bold */
@font-face {
    font-family: 'Rhymes Text';
    src: url('../fonts/RhymesTextBold.woff2') format('woff2'),
         url('../fonts/RhymesTextBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Font Face Definition für Rhymes Text Regular Italic */
@font-face {
    font-family: 'Rhymes Text';
    src: url('../fonts/RhymesTextRegularItalic.woff2') format('woff2'),
         url('../fonts/RhymesTextRegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}


/* Optional: Font als Fallback in der CSS definieren */
:root {
    --font-rhymes: 'Rhymes Text', 'Times New Roman', Times, serif;
}

/* Beispiel für die Verwendung der Schriftart */
html, body, h1, h2, h3, p {
    font-family: var(--font-rhymes);
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

/* Desktop Styles */

h1, .large {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: normal;
}

h1 {
    margin-bottom: 2rem;
    margin-top: 2.5rem;
}

h2, .medium {
    font-size: 1.875rem;
    line-height: 1;
    font-weight: normal;

}

h2 {
    margin-top: 2.5rem;
}

h3 {
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.375;
    margin-top: 2rem;
}

p, h4, .regular {
    font-size: 1.25rem;
    line-height: 1.375;
    margin-top: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.small, footer p {
    font-size: 1rem;
    line-height: 1.25;
}

#expertise {
   background-color: #E2E5F3; /* Light Blue; */
}

#curriculum {
   background-color: #AFB8D8; /* Medium Blue; */
}

#publikationen {
   background-color: #9AA4CB; /* Dark Blue; */
}

.left-column {
    float: left;
    width: 50%;
}

header {
    position: fixed;
    height: 80px;
    top: 0;
    left: 0;
    padding-left: 33px;
    padding-right: 33px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Platz zwischen Titel und Languages */
    width: 50%; /* Breite des Headers definieren */
    box-sizing: border-box; /* Padding in Breite einbeziehen */
    background-color: white;
    z-index: 100; /* Diese Zeile hinzufügen */
}

#portrait {
    position: fixed;
    top: 80px;
    right: 50%;
    max-width: 25%;
}

footer {
    position: fixed;
    bottom: 27px;
    left: 33px;
}

#impressum {
    position: fixed;
    bottom: 27px;
    text-align: right;
    right: 50%;
    padding-right: 33px;
    font-size: 0.75rem;
}

#claim {
    position: fixed;
    bottom: 227px;
    left: 33px;
    max-width: 45%;
}

.right-column {
    float: right;
    width: 50%;
}

.tab {
    position: fixed;
    width: 16.6666666667%; /* 1/3 of right half */
    top: 0;
    left: 50%;
    padding: 20px;
    text-align: center;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#expertise .tab {
    background-color: #E2E5F3; /* Light Blue; */
}

#curriculum .tab {
    left: 66.6666666667%;
    background-color: #AFB8D8; /* Medium Blue; */
}

#publikationen .tab {
    left: 83.3333333334%;
    background-color: #9AA4CB; /* Dark Blue; */
}

.tab:hover {
    opacity: 0.8;
}

.tab.active {
    opacity: 1;
}

.tab-content {
    padding: 200px 40px 100px 40px;
    min-height: 100vh;
    margin-top: 0;
    transition: background-color 0.3s ease;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Expertise ist standardmäßig sichtbar */
#expertise .tab-content.active {
    display: block;
}


nav, .main-content {
    margin-left: 33px;
    margin-right: 33px;
    max-width: 800px;
}

nav {
    margin-top: 100px;
    margin-bottom: 40px;
}

.main-content {
    margin-bottom: 200px;
}



/* viewport height less than or equal to 740px */
@media (max-height: 740px) {
   #claim {
       max-width: 25%;
    }
}


/* Mobile Styles */

/* viewport width less than or equal to 900px */
@media (max-width: 900px) {
    h1, .large, .tab {
        font-size: 1.875rem;
    }

    .left-column {
        float: none;
        width: 100%;
    }

    header {
        background-color: white;
        width: 100%;
        height: 94px;
    }

    #portrait {
        position: static;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 60vh; /* Auch auf Mobile begrenzen */
        overflow: hidden;
    }

   footer {
        position: static;
        margin-left: 33px;
        margin-top: 40px;
        margin-bottom: 60px;
        max-width: 100%;
    }

    #impressum {
        position: static;
        margin-top: 40px;
        text-align: left;
    }

    #claim {
        position: static;
        padding-left: 33px;
        padding-right: 33px;
        width: 100%;
        max-width: 100%;
        margin-top: 140px;
        margin-bottom: 80px;
    }

    .right-column {
        float: none;
        width: 100%;
    }

    body, section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .tab {
        position: static;
        width: auto;
        max-width: none;
        margin-left: 33px;
        padding: 0;
        text-align: left;
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 0;
        height: 94px;
    }

    .tab-content {
        padding: 0 33px 100px 33px;
        height: auto;
        min-height: 100px;
    }

}





.languages {
    font-size: 1rem;
    position: relative;
    cursor: pointer;
}

.languages::after {
    content: "^";
    margin-left: 3px;
    transform: rotate(180deg) translateY(2px);
    display: inline-block;
    transition: transform 0.2s ease;
}

.languages ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

/* Hover für Desktop */
@media (hover: hover) {
    .languages:hover ul {
        display: block;
    }
}

/* Touch-Geräte verwenden JavaScript */
@media (hover: none) {
    .languages ul.show {
        display: block;
    }
}

.languages:hover::after,
.languages:focus-within::after {
    transform: rotate(0deg) translateY(2px);
}

.languages li a {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}