body {
    background-color: white;
    padding: 0px;
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", "Hind", "Myriad Pro", "Myriad", "Helvetica Neue",
        "Helvetica", "Arial", "sans-serif";
    letter-spacing: 1;
    /* -webkit-font-smoothing: antialiased; */
}

p {
    color: rgba(76, 92, 98, 1);
    line-height: 1.6;
    margin-top: 0;
    margin-left: 0px;
    overflow: auto;
    display: block;
    overflow: hidden;
}

h1 {
    font-weight: 500;
    font-size: 40px;
}

h2 {
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
}

h4 {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0px;
}

#pageWrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    height: 100vh;
}

.CenterFrame {
    position: absolute;
    width: 960px;
    left: calc(50% - 480px);
    margin-bottom: 88px;
}

.View {
    position: absolute;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    background-color: transparent;
    height: auto;
    transition:
        opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: block;
    will-change: transform;
    backface-visibility: hidden;
}

.SlideOutLeft {
    height: calc(100vh - 128px);
    overflow: hidden;
    transform: scale(0.8) translateX(-512px);
    opacity: 0;
    pointer-events: none;
}

.SlideOutRight {
    height: calc(100vh - 128px);
    overflow: hidden;
    transform: scale(0.8) translateX(512px);
    opacity: 0;
    pointer-events: none;
}

#header {
    height: 64px;
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#logoButton {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

#logoButton.HasIndicator {
    /* pointer-events: none; */
}

#logoButton .BackGlyph {
    width: 28px;
    height: 28px;
    background-image: url("img/back-arrow-outline.svg");
    opacity: 0;
}

#logoButton.HasIndicator .BackGlyph {
    opacity: 1;
}

#logoButton .Labels {
    display: flex;
    flex-direction: column;
    height: 32px;
    pointer-events: none;
}

#logoButton {
    text-decoration: none;
    color: black;
}

#logoButton .Title {
    opacity: 1;
    color: rgba(64, 92, 108, 0.7);
}

#logoButton .BackLabel {
    opacity: 0;
    transform: translateY(-50%);
}

#logoButton.HasIndicator:hover {
    cursor: pointer;
}

#logoButton.HasIndicator:hover .Title {
    transform: translateY(-50%);
}

#logoButton.HasIndicator:hover .BackLabel {
    transform: translateY(-100%);
    opacity: 1;
}

#logoButton.HasIndicator:hover .Title {
    opacity: 0;
}

#logoButton.HasIndicator:hover .BackGlyph {
    background-image: url("img/back-arrow-filled.svg");
    opacity: 1;
}

#logoButton h2 {
    display: inline-block;
    margin: 0;
    opacity: 0.8;
    transition: 0.4s cubic-bezier(0.135, 0, 0.135, 1);
    cursor: default;
    -webkit-user-select: none;
}

#logo {
    height: 28px;
    width: auto;
    margin: 4px 0px 0px 32px;
    float: left;
    opacity: 0.8;
    transition: 0.3s;
    cursor: default;
    user-select: none;
}

#thumbnailView {
    display: grid;
    gap: 80px 40px;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    padding: 40px;
    padding-bottom: 128px;
}

#thumbnailView.ZoomedIn {
    /* transition: opacity 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530), transform 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) !important; */
    transform: scale(1.5);
}

#thumbnailView.NoSpace {
    width: 0;
    height: 0;
    overflow: hidden;
}

.DetailViewContainer {
    position: absolute;
    width: 100%;
    padding: 32px 40px 88px 40px;
    box-sizing: border-box;
    /* background-color: rgba(20,90,240,0.2); */
    height: auto;
    left: 0px;
    /* transform: translateX(800px); */
    transition:
        opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    will-change: transform;
    height: 920px;
}

.DetailViewContainer.ZoomedOut {
    /* transition: opacity 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530), transform 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) !important; */
    transform: scale(0.6);
}

#detailView {
    background-image: url("img/placeholder_content.svg");
    background-repeat: no-repeat;
}

#detailView .Spacer {
    width: 100%;
    display: block;
    height: 32px;
}

#detailView.Loaded {
    height: auto;
    background-image: none;
}

.FloatingImage {
    border-radius: 16px;
    box-shadow:
        0px 8px 36px rgba(0, 12, 24, 0.1),
        0px 3px 16px rgba(0, 0, 0, 0.1);
}

.FlexRow {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 24px;
}

.FlexRow img {
    flex: 1 1 0;
    min-width: 10px;
    width: 100%;
    height: auto;
}

.ImageGrid2x2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ImageGrid2x2 img {
    width: 100%;
    hieght: auto;
}

#aboutView {
    display: none;
    padding-bottom: 160px;
}

#aboutView .Intro-block {
    display: flex;
    gap: 32px;
    flex-direction: row;
}

#aboutView .Intro-block #portrait {
    flex: 1;
    background-image: url("img/SaschaPortrait.jpg");
    background-size: cover;
    background-position: top center;
}

#aboutView .Intro-block .Content {
    flex: 2;
    display: flex;
    gap: 24px;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
}

.Intro-block .Content h1 {
    margin: 0;
    line-height: 1;
}

.Intro-block .Content p {
    margin: 0;
}

#aboutView .CV-block {
    display: flex;
    height: auto;
    padding: 0;
    margin-top: 48px;
    clear: both;
}

#aboutView .CV-Section {
    border-top: 2px solid rgba(64, 92, 108, 0.2);
    clear: both;
    padding: 16px 0;
    margin-top: 128px;
}

#aboutView .CV-Section h2 {
    margin: 0;
    color: rgba(64, 92, 108, 0.6);
}

#aboutView h4 {
    margin: 0 0 0.4rem 0;
}

#aboutView .CV-block .Content {
    flex: 2;
}

#aboutView .CV-block .Time {
    color: rgba(64, 92, 108, 0.5);
}

#aboutView ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#aboutView ul li {
    color: rgba(76, 92, 98, 1);
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
}

#aboutView ul li::before {
    content: "•";
    color: #ccc;
    display: inline-block;
    width: 12px;
    margin-left: -16px;
}

#aboutView .Timeframe {
    flex: 1;
    padding-right: 32px;
    box-sizing: border-box;
    position: relative;
    margin: 0px;
}

#aboutView span {
    position: absolute;
    color: rgba(64, 92, 108, 0.4);
}

#aboutView .CV-block .Content {
    width: 100%;
    box-sizing: border-box;
}

#aboutView .Skills-wrapper {
    display: flex;
    flex-direction: row;
    gap: 64px;
    margin-top: 64px;
}

#aboutView .Skills-block {
    flex: 1;
}

#aboutView .Skills-block li::before {
    content: "";
}

#contactView {
    display: none;
}

#contactView input {
    color: rgba(76, 92, 98, 1);
    background-color: rgba(145, 157, 169, 0.16);
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    border-style: none;
    margin: 0px 0px 16px 0px;
    width: 100%;
    max-width: 320px;
    display: block;
    box-sizing: border-box;
}

#contactView textarea {
    color: rgba(76, 92, 98, 1);
    background-color: rgba(145, 157, 169, 0.16);
    font-size: 16px;
    font-family: "Inter", "Hind", "Myriad Pro", "Myriad", "Helvetica Neue",
        "Helvetica", "Arial", "sans-serif";
    width: 100%;
    min-height: 120px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
}

#contactView button {
    height: 32px;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 4px 24px 4px 24px;
    border-radius: 8px;
    float: right;
    border: none;
    background: rgb(52, 140, 246);
    color: white;
}

#contactView #goHome {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 8px 24px 8px 24px;
    text-decoration: none;
    border-radius: 8px;
    border-style: none;
    background: rgb(52, 140, 246);
    color: white;
}

.EmailSentSuccess {
    margin-top: 80px;
}

#emailSent {
    width: 280px;
    height: auto;
    float: left;
    margin: 0px 28px 0px -12px;
}

.error {
    border-color: red !important;
    border-style: solid !important;
    border-width: 1px !important;
}

.errorMessage {
    color: rgba(76, 92, 98, 1);
    margin: -12px 0 24px 10px;
    display: none;
}

#thankYouHeader {
    margin: 18px;
}

#thankYouMessage {
    margin-bottom: 28px;
}

.Hidden {
    opacity: 0;
    pointer-events: none;
}

.HideOnMobile {
    display: block;
}

.MobileOnly {
    display: none;
}

/* ------------------------------------ */

#vme .Thumbnail {
    background-image: url("VME_thumbnail.jpg");
}

#beo .Thumbnail {
    background-image: url("projects/Beo/img/BeoThumbnail.webp");
}

#vulture .Thumbnail {
    background-image: url("projects/Vulture/img/VultureThumbnail.jpg");
}

#forcetouch .Thumbnail {
    background-image: url("projects/ForceTouch/img/ForceTouchThumbnail.webp");
}

#ui-kit .Thumbnail {
    background-image: url("UIKitPoster.png");
}

#gecko .Thumbnail {
    background-image: url("img/GeckoPoster.png");
}

#appicons .Thumbnail {
    background-image: url("projects/AppIcons/img/AppIcons.jpg");
}

#schnapsapparat .Thumbnail {
    background-image: url("projects/SchnapsApparat/img/SchnapsApparatThumbnail.jpg");
}

#piles .Thumbnail {
    background-image: url("projects/Piles/img/PilesThumbnail.jpg");
}

#shpockIcons .Thumbnail {
    background-image: url("projects/ShpockIcons/img/Thumbnail.webp");
}

#shpockTransactional .Thumbnail {
    background-image: url("projects/ShpockTransactional/img/Thumbnail.webp");
}

#gestureinterface .Thumbnail {
    background-image: url("projects/GestureInterface/img/GestureInterfaceThumbnail.jpg");
}

#aidkitDesignSystem .Thumbnail {
    background-image: url("projects/aidkitDesignSystem/img/aidkit_uikit_thumbnail.webp");
}

#neurocatBranding .Thumbnail {
    background-image: url("projects/neurocatBranding/img/neurocat_branding_thumbnail.webp");
}

.JiggleThumbnail {
    -webkit-perspective: 400px;
    -moz-perspective: 400px;
    -ms-perspective: 400px;
    -o-perspective: 400px;
    perspective: 400px;
    perspective-origin: center;
    display: block;
    text-align: center;
    transition: ease-in-out 0.06s;
}

.JiggleThumbnail {
    display: block;
    width: 100%;
    height: 188px;
}

.JiggleThumbnail .Thumbnail {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
    will-change: transform;
    /*
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
 */
    transition: box-shadow 0.2s;
}

.JiggleThumbnail:hover .Thumbnail {
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.06);
}

.JiggleThumbnail .Specular {
    width: 100%;
    height: 100%;
    background-image: url("specular.png");
    background-size: 200% 200%;
    background-repeat: no-repeat;
    transition: opacity ease 0.5s;
    transform: translateZ(1px);
    opacity: 0.32;
    border-radius: 6px;
    pointer-events: none;
}

.JiggleThumbnail.Flat .Specular {
    opacity: 0;
}

.JiggleThumbnail .Shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: blur(20px) brightness(80%);
    background-image: url("image.jpg");
    background-size: cover;
    background-position: center center;
    transform: translate3d(0px, 12px, 0px);
    transition: all 0.4s;
    opacity: 0.6;
    z-index: -2;
}

.JiggleThumbnail:hover .Shadow {
    transform: translate3d(0px, 14px, 0px);
    filter: blur(28px) brightness(80%);
}

.JiggleThumbnail:active {
    transform: scale(0.98);
}

.JiggleThumbnail .ThumbnailTitle {
    display: inline-block;
    pointer-events: none;
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    text-align: center;
    transition: transform 0.3s;
    transform: 0;
    margin-top: 12px;
    padding: 7px 14px;
    background-color: transparent;
    border-radius: 8px;
    color: black;
    -webkit-font-smoothing: antialiased;
}

.JiggleThumbnail:hover .ThumbnailTitle {
    background-color: rgb(52, 140, 246);
    color: white;
    transform: translateY(4px);
}

@media only screen and (max-width: 1024px) {
    #logoButton.HasIndicator {
        margin-left: 40px;
    }
}

@media only screen and (max-width: 920px) {
    .CenterFrame {
        left: 0px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* iPAD PORTRAIT */
@media only screen and (max-width: 768px) {
    #logoButton {
        margin-bottom: 24px;
    }

    #thumbnailView {
        gap: 80px 30px;
        padding: 40px;
        grid-template-columns: repeat(2, 1fr);
    }

    .TopPadding {
        padding-top: 8px !important;
    }

    #aboutView .CV-block,
    #aboutView .Skills-wrapper {
        flex-direction: column;
    }

    #aboutView .CV-block > *,
    #aboutView .Skills-block > * {
        flex: none;
        width: 100%;
    }
}

@media only screen and (max-width: 560px) {
    #logoButton {
        margin-left: -16px;
    }

    #logoButton.HasIndicator {
        margin-left: 24px;
    }

    #thumbnailView {
        padding: 48px 24px;
    }

    .DetailViewContainer {
        padding: 32px 24px 88px 24px;
    }

    .FlexRow {
        flex-direction: column;
    }

    #aboutView .Intro-block {
        flex-direction: column;
        gap: 16px;
    }

    .Intro-block #portrait {
        flex: none !important;
        height: 100vw;
    }

    .Intro-block .Content {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .CV-Section {
        margin-top: 64px !important;
    }

    #contactView {
        padding: 24px;
    }

    .EmailSentSuccess {
        margin-top: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #emailSent {
        margin: 0;
        margin-left: 32px;
    }

    #thankYouMessage {
        text-align: center;
    }
}

/* PHONE */
@media only screen and (max-width: 420px) {
    #header {
        height: 112px;
    }

    #header #logo {
        margin: 4px 0px 0px 16px;
    }

    .View {
        padding: 24px;
    }

    #thumbnailView {
        gap: 80px 24px;
        padding: 48px 24px;
        grid-template-columns: repeat(1, 1fr);
    }

    .ImgFlexThree {
        display: block !important;
        margin-bottom: 8px !important;
    }

    .ImgFlexThree img {
        width: 100% !important;
        height: 100% !important;
        margin-bottom: 18px;
    }

    .ImgFlexThree video {
        width: 100% !important;
        height: 100% !important;
        margin-bottom: 18px;
    }

    .ImageGrid2x2 {
        grid-template-columns: 1fr;
    }

    .TextFloatImageLeft {
        float: none !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .TextFloatImageRight {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    #contactView h1 {
        margin-top: 0;
    }

    #contactView input {
        max-width: 420px;
    }

    .HideOnMobile {
        display: none;
    }

    .MobileOnly {
        display: block;
    }
}
