/* General styles */

html {
    background-color: #f9f9f9;
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0; 
}

.page {
    display: flex;
    min-height: 100vh;
}

.content {
    padding: 1em;
    flex: 1 1 0; 
}

/* Headers */

h1, h2, h3 {
    color: #1a1a1a;
    text-transform: uppercase;
    font-family: Raleway, sans-serif;
    text-align: left;
    font-weight: 800;
}

h2, h3 {
    margin-top: 0.3em;
    margin-left: 0.2em;
}

h1 {
    text-align: center;
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: .2rem;
    padding-bottom: 1vw;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

/* Body text */

.body-text-regular, .body-text-center, .table-cv, .body-text-la {
    color: #1a1a1a;
    font-size: 18px;
    font-style: normal;
    font-stretch: 2;
    line-height: 1.5; 
}

.body-text-regular {
    text-align: justify;
}

.body-text-center {
    text-align: center;
    margin-bottom: 2vw;
}

.body-text-la {
    text-align: left;
}

.cv-detail {
    font-size: 15px; 
}

.content a:link {
    color: #d04614;
    text-decoration: none; 
}

.content a:visited {
    color: #d04614;
    text-decoration: underline;
}

.content a:hover {
    color: #ff4400;
    text-decoration: underline;
}

ul {
    margin-top: 0;
}

.spaced-list li {
    padding: 10px 0; 
    text-align: left;
}

/* Tables */

.table-cv {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    text-align: left;
}

.table-cv table {
    width: 100%;
    min-width: 100%;
}

.table-cv td {
    vertical-align: top;
    padding: 5px 10px;
}

.table-cv td:nth-child(1) {
    width: 25%;
    min-width: 25%;
}

.table-cv td:nth-child(2) {
    width: 75%;
}

/* Images */

.circular-image {
    width: 35vw;  
    height: 35vw; 
    min-width: 250px;
    min-height: 250px;
    max-width: 500px;
    max-height: 500px;
    overflow: hidden; 
    border-radius: 50%; 
    display: flex; 
    align-items: flex-start; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-width: calc(0.4vw+5px); 
    border: solid #ff4400; 
    margin-bottom: 3vw;
}

.circular-image-small {
    width: 25vw;  
    height: 25vw; 
    min-width: 200px;
    min-height: 200px;
    max-width: 400px;
    max-height: 400px;
    overflow: hidden; 
    border-radius: 50%; 
    display: flex; 
    align-items: flex-start; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-width: calc(0.4vw+5px); 
    border: solid #ff4400; 
    margin-bottom: calc(3vw+20px);
}

.circular-image img, .circular-image-small img {
    text-align: center;
    width: 100%; 
}

/* Sidebar */

.sidebar, .sidebar-wrapper {
    width: 300px;
    max-width: 300px;
}

.sidebar {
    height: 100vh;
    max-width: 300px;
    flex: 1 1 0;
    padding: 2rem 1rem; 
    background-color: #292929;
    box-shadow: 8px 0 8px #0c0c0c17;
    position: relative;
    overflow-y: auto;
    z-index: inherit;
}

.sidebar-wrapper {
    position: fixed;
    z-index: 999;
}

.content {
    margin-left: 300px;
}

.sidebar h3 {
    margin-bottom: 1em;
    padding: 0;
    margin-left: 0;
    font-size: 30px;
    color: white;
}

.sidebar .menu {
    margin: 0 -1rem;
}

.sidebar .menu .menu-item,
.sidebar .menu .menu-item-active,
.sidebar .menu .menu-subsection .menu-subsection-item,
.sidebar .menu .menu-subsection .menu-subsection-item-active {
    display: block;
    background: none;
    padding: 1em;
    margin: 0;
    text-decoration: none;
    transition: 0.2s linear;
    color: whitesmoke;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font-variant: small-caps;
}

.sidebar .menu .menu-item,
.sidebar .menu .menu-item-active {
    font-size: 18px;
}

.sidebar .menu .menu-item:hover, 
.sidebar .menu .menu-item-active, 
.sidebar .menu .menu-subsection .menu-subsection-item:hover,
.sidebar .menu .menu-subsection .menu-subsection-item-active {
    background-color: #ff672f;
    color: #ffffff;
    padding: 1em;
    margin: 0;
    box-sizing: border-box;
}

.sidebar button {
    font-weight: normal;
    font-family: inherit;
}

.sidebar .menu .impressum-link {
    position: absolute;
    bottom: 4rem; 
    width: 100%;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 99px;
    background-color: transparent;
    cursor: pointer;
}

.hamburger {
    position: relative;
    top: calc(50% - 2px);
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 32px; 
    z-index: 999;
}

.hamburger > span, 
.hamburger > span::before, 
.hamburger > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background-color: #ff672f;
    transition-duration: .25s;
}

.hamburger > span::before {
    content: ''; 
    top: -10px; 
}
.hamburger > span:after {
    content: '';
    top: 10px;
}

.menu-toggle.is-active .hamburger > span {
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger > span::before {
    top: 0;
    transform: rotate(0deg);
}

.menu-toggle.is-active .hamburger > span::after {
    top: 0; 
    transform: rotate(90deg);
}

@media (max-width: 1800px) {
    .sidebar {
        max-width: 200px
    }
    .content {
        margin-left: 200px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    .content {
        padding-top: 5rem;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -350px;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        transition: 0.2s linear;
    }
    .sidebar.is-active {
        left: 0;
    }
    .content {
        margin-left: 0;
    }
}

.triangle {
    padding: 5px;
    cursor: pointer;
    display: inline-block;
}

.menu-subsection {
    display: block;
    margin-bottom: 2rem;
}

.sidebar .menu .menu-subsection .menu-subsection-item,
.sidebar .menu .menu-subsection .menu-subsection-item-active {
    font-size: 14px;
}

.sidebar .menu .menu-subsection .menu-subsection-item {
    margin-left: 1.5rem;
}

.sidebar .menu .menu-subsection .menu-subsection-item-active, 
.sidebar .menu .menu-subsection .menu-subsection-item:hover {
    margin-left: 0.7rem;
}

/* Specific actions for mobile devices*/

body.mobile .menu-toggle {
    display: block;
}
body.mobile .content {
    padding-top: 5rem;
    margin-left: 0;
}
body.mobile .sidebar {
    position: fixed;
    top: 0;
    left: -550px;
    height: 100vh;
    min-height: 100%;
    width: 100%;
    max-width: 500px;
    min-width: 500px;
    transition: 0.2s linear;
}
body.mobile .sidebar.is-active {
    left: 0;
}
body.mobile .sidebar .menu .menu-item{
font-size: 40px;
}
body.mobile .sidebar .menu .menu-item-active{
    font-size: 40px;
}
body.mobile .menu-toggle {
    width: 150px;
    height: 150px;
    border-radius: 200px;
}
body.mobile .hamburger > span, 
body.mobile .hamburger > span::before, 
body.mobile .hamburger > span::after {
    height: 8px;
    border-radius: 200px;
}
body.mobile .hamburger > span::before {
    content: ''; 
    top: -20px; 
}
body.mobile .hamburger > span:after {
    content: '';
    top: 20px;
}
body.mobile .hamburger {
    width: 64px; 
}

body.mobile .sidebar .menu .menu-subsection .menu-subsection-item,
body.mobile .sidebar .menu .menu-subsection .menu-subsection-item-active {
    font-size: 30px;
}



body.mobile .content {
    font-size: 40px;
}

body.mobile h1 {
    font-size: 80px;
    padding-top: 0.7em;
}
body.mobile h2 {
    font-size: 60px;
}
body.mobile h3 {
    font-size: 50px;
}
body.mobile .circular-image {
    width: 50vw;
    height:50vw; 
}
body.mobile .body-text-regular {
    font-size: 40px;
}



body.mobile .table-cv {
    font-size: 40px;
}

body.mobile .table-cv .cv-detail {
    font-size: 32px;
}

body.mobile .body-text-center {
    font-size: 40px;
}

body.mobile .circular-image-small {
    width: 40vw;
    height: 40vw;
}

body.mobile .table-cv {
    font-size: 40px;
}

/* Fix for mobile phones in widescreen*/

@media screen and (orientation: landscape) {
    body.mobile .circular-image {
        width: 20vw;
        height: 20vw;
    }

    body.mobile .circular-image-small {
        width: 20 vw;
        height: 20 vw;
    }

    body.mobile h1 {
        font-size: 40px;
    }

    body.mobile h2 {
        font-size: 32px;
    }

    body.mobile h3 {
        font-size: 26px;
    }

    body.mobile .body-text-regular, .body-text-center, .table-cv, .body-text-la {
        font-size: 20px;
    }

    body.mobile .cv-detail {
        font-size: 16px;
    }

    body.mobile .sidebar {
        max-width: 200px;
    }

    body.mobile .sidebar .menu .menu-item, body.mobile .sidebar .menu .menu-item-active {
        font-size: 20px;
    }

    body.mobile .copyright {
        font-size: 18px;
    }

}

@media screen and (max-height: 1200px) {

    body.mobile .sidebar .impressum-link {
        margin-top: auto; 
        position: relative;
        margin-top: 8rem;
        margin-bottom: 4rem;
    }
}


/* Responsive columns */

.grid-items {
    padding: 3%; 
    column-count: 1;
    column-gap: 0;
}

@media (min-width: 1800px) {
    .grid-items {
        column-count: 2;
        column-gap: 4%;
    }
    .grid-items > div {
        padding: 20px;
    }
    .circular-image {
        width: 25vw;
        height: 25vw;
    }
    .circular-image-small {
        width: 20vw;
        height: 20vw;
    }
}

@media (min-width: 2400px) {
    .grid-items {
        column-count: 3;
        column-gap: 4%;
    }
    .grid-items > div {
        padding: 20px;
    }
    .circular-image {
        width: 25vw;
        height: 25vw;
    }
    .circular-image-small {
        width: 20vw;
        height: 20vw;
    }
}

.grid-item, .grid-item-dark {
    break-inside: avoid;
}

.grid-item-dark {
    background-color: #dbdbdb83;
    margin-top: 1.5rem;
}

/* Copyright */

.copyright {
    background: transparent;
    position: fixed;
    bottom: 10px;
    opacity: 0.5;
    font-size: 15px;
    width: 100%;
    text-align: center;
    z-index: -1;
    color: #1a1a1a;
}
body.mobile .copyright {
    font-size: 32px;
    opacity: 0.3;
}

/* Welcome Page */

.welcomepage, .welcomepage body {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcomepage #selection-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcomepage .button {
    width: 250px;
    height: 100px;
    margin: 10px;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 100px;
    cursor: pointer;
    background-color: #dbdbdb83;
    color: #1a1a1a;
}

.welcomepage .selected {
    background-color: #ff4400; 
    color: white;
}

.welcomepage .button:hover {
    background-color: #ff4400;
    color: white;
}
.welcomepage #goButton {
    display: block;
    font-size: 18px;
    margin: 20px auto;
    padding: 10px 20px;
    border-radius: 0;
    background-color: #dbdbdb83;
    color: #1a1a1a;
}

.welcomepage #goButton:hover {
    background-color: #ff4400;
    color: white;
}

.welcomepage #goButton:disabled {
    background-color: #f9f9f9;
    color: #dbdbdb83;
    cursor: default; 
}

.welcomepage #no-js-links {
    display: none;
}

.welcomepage body.mobile .button {
    width: 300px;
    height: 170px;
    margin: 20px;
    font-size: 40px;
    line-height: 170px;
}

.welcomepage body.mobile #goButton {
    font-size: 40px;
    margin: 40px auto;
    padding: 20px 40px;
}

/* Social Media Links */

.social-media-page h2 {
    text-align: center;
    margin-top: 3rem;
}

.social-media-link {
    font-size: 26px; 
    background-color: #292929;
    color: #ffffff;
    width: 67%; 
    vertical-align: middle;
    font-variant: small-caps;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    box-shadow: 8px 0 8px #0c0c0c17;
}

body.mobile .social-media-links .social-media-link {
    font-size: 36px;
}

.social-media-link:hover {
    background-color: #ff672f;
}

.content .social-media-links a:hover {
    text-decoration: none;
    color: #ffffff;
}

/* Photo Gallery */

.gallery-wrapper {
    position: relative;
    z-index: 1; 
    margin-left: 350px; 
    margin-right: 25px;
    width: calc(100% - 400px);
    margin-top: 20px;
}

.gallery {
    column-count: 4;
    column-width: 25%;
}

.image-container {
    overflow: hidden; 
    position: relative; 
    box-sizing: border-box;
    width: 100%;
    margin: 0 10px 10px 10px;
    transition: transform 0.3s ease;
    box-shadow: 10px 10px 10px 3px #00000024;
}

.image-container:hover {
    transform: scale(1.05); 
    cursor: pointer;
    z-index: 100;
}

.image-container img {
    width: 100%; 
    height: auto; 
    display: block; 
}

.image-container .image-text {
    position: absolute;
    bottom: 10px; 
    right: 10px; 
    background: rgba(0, 0, 0, 0.3); 
    color: #fff; 
    padding: 5px 10px; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    pointer-events: none; 
}

.image-container:hover .image-text {
    opacity: 1; 
}

@media (min-width: 1201px) and (max-width: 1800px) {
    .gallery {
        column-count: 3;
        column-width: 33%;
    }
    .gallery-wrapper {
        margin-left: 250px; 
        width: calc(100% - 275px); 
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .gallery {
        column-count: 2;
        column-width: 50%;
    }
    .gallery-wrapper {
        margin-left: 250px; 
        width: calc(100% - 275px); 
    }
}

@media (max-width: 900px) {
    .gallery {
        column-count: 1;
        column-width: 100%;
    }
    .gallery-wrapper {
        margin-left: 0; 
        margin-right: 0;
        width: 100%; 
        margin-top: 0;
    }
}

body.mobile .gallery {
    column-count: 1;
    column-width: 100%;
}

body.mobile .gallery-wrapper {
    margin-left: 0; 
    margin-right: 0;
    width: 100%; 
    margin-top: 10px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    display: flex;
    align-items: center; 
    justify-content: center; 
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0s ease;
    z-index: 1000; 
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; 
}

.lightbox.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-text {
    position: absolute;
    bottom: 10px; 
    right: 10px; 
    color: #fff; 
    background: rgba(0, 0, 0, 0.3); 
    padding: 5px 10px; 
    max-width: calc(90% - 20px); 
    word-wrap: break-word; 
}

body.mobile .image-container:hover {
    transform: scale(1); 
}