/* =========================
   FONT DEFINITIONS
   ========================= */

@font-face {
    font-family: 'KETO';
    src: url(../fonts/250904_KETO-SemiBold.woff2) format('woff2'),
        url(../fonts/250904_KETO-SemiBold.woff) format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url(../fonts/AzeretMono-Light.ttf) format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url(../fonts/AzeretMono-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url(../fonts/AzeretMono-Italic.ttf) format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url(../fonts/AzeretMono-SemiBold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url(../fonts/AzeretMono-SemiBoldItalic.ttf) format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* =========================
   GLOBAL RESET & BASE STYLES
   ========================= */

html * {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Azeret Mono', monospace;
    hyphens: manual;
}

/* =========================
   LAYOUT & GRID
   ========================= */

main {
    scroll-snap-type: y mandatory;
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
}

section {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    padding: 0 1.5em;
    flex-direction: column;
    gap: 2em;
}

.col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2em;
    /* background-color: rgba(0, 0, 0, 0.2); */
    scroll-snap-stop: always;
}

.left-col {
    scroll-snap-align: start;
    padding-top: 2em
}

.right-col {
    scroll-snap-align: end;
    flex-grow: 1;
    padding-bottom: calc(100vh - 100svh + 2em);
}

.desktop-only {
    display: none;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
    font-family: 'KETO';
    font-size: 8dvh;
    color: white;
    text-shadow: .1em .1em 0 #000;
    text-align: center;
    margin-top: 0.2em;
    margin-bottom: .2em;
    line-height: 1.05;
    max-width: calc(100vw - 3rem);
    /* overflow: hidden; */
}

h2 {
    font-family: 'KETO';
    font-size: 3.0rem;
    margin-bottom: .5em;
    color: white;
    text-shadow: .1em .1em 0 #000;
    text-align: center;
    line-height: 1.1;
}

h3 {
    font-family: 'KETO';
    font-size: 2rem;
    margin-bottom: .5em;
    color: white;
    line-height: 1.3;
}

p,
h2,
h3 {
    margin-top: 0;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    color: white;
    line-height: 1.6;
}

em {
    font-style: italic;
}

.subtitle p {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0;
}

.block-type-smalltext p {
    font-size: 1rem;
}

.section-color-black p,
.section-color-black h1,
.section-color-black h2,
.section-color-black h3 {
    color: black;
}

/* =========================
   KEYBOARD SECTION
   ========================= */

#svh-container {
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    justify-content: space-between;
    padding: 1.2em 1.5em 3em;
    overflow: hidden;
}

#keyboard {
    padding: 0;
}

#mund {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0.5em 0.5em 0 black;
    border: 3px solid black;
    margin-bottom: .5em;
    flex-grow: 2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-width: 150px;
    min-height: 150px;
    max-width: 300px;
    max-height: 300px;
    margin: .5em 0 2em;
    position: relative;
    overflow: hidden;
    background-color: #b5d5af;
}

#mund-video {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    max-width: 100%;
    max-height: 100%;
}

/* Piano */
.piano {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: black;
    /* border-radius: 0.25em; */
    padding: 0.2em;
    max-width: 500px;
    min-height: 100px;
    flex-basis: 120px;
    box-shadow: .2em .2em 0 #000;
}

.white-keys {
    display: flex;
    height: 100%;
    gap: 2px;
}

.white-key {
    flex: 1;
    background-color: #fff;
    /* border-radius: 0 0 0.15em 0.15em; */
    cursor: pointer;
    transition: all 50ms ease;
    position: relative;
}

.white-key,
.black-key {
    display: flex;
    justify-content: center;
    align-items: end;
    padding-bottom: .5em;
    color: gray;
    font-weight: 300;
    font-size: smaller;
}

.white-key:last-child {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 1em;
}



.white-key:active,
.white-key.pressed,
.black-key:active,
.black-key.pressed {
    transform: translateY(2px);
    background-color: #b5d5af;
}

.black-keys {
    position: absolute;
    top: 0;
    left: 0.25em;
    right: 0.25em;
    height: 60%;
    pointer-events: none;
}

.black-key {
    position: absolute;
    width: 9%;
    height: 100%;
    background-color: black;
    /* border-radius: 0 0 5px 5px; */
    cursor: pointer;
    transition: all 50ms ease;
    pointer-events: all;
    border: black 3px solid;
}


/* Positionierung der schwarzen Tasten */
.black-key:nth-child(1) {
    left: 8%;
}

/* C# zwischen C und D */
.black-key:nth-child(2) {
    left: 20.5%;
}

/* D# zwischen D und E */
.black-key:nth-child(3) {
    left: 45.5%;
}

/* F# zwischen F und G */
.black-key:nth-child(4) {
    left: 58%;
}

/* G# zwischen G und A */
.black-key:nth-child(5) {
    left: 70.5%;
}

/* A# zwischen A und B */

.key-hint {
    visibility: hidden;
    width: 24px;
    aspect-ratio: 1/1;
    border: 1px solid gray;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.piano-info {
    display: none;
    height: 18px;
    width: 18px;
}

.piano-info svg {
    width: 100%;
    height: 100%;
}

#unmute {
    width: 2.3em;
    height: 2em;
    position: fixed;
    top: 60vh;
    right: 2em;
    z-index: 100;
    background-color: white;
    padding: 4px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* =========================
   IMAGES & MEDIA
   ========================= */

figure {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    flex-direction: column;
}

figure img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

figcaption {
    color: white;
    font-size: .8rem;
    line-height: 1.5;
    margin-top: .3em;
    text-align: center;
    font-weight: 300;
}

.portraitPhoto {
    width: 90%;
    max-width: 350px;
    box-shadow: 0.5em 0.5em 0 black;
    border: 3px solid black;
}

/* =========================
   SOCIAL MEDIA & BUTTONS
   ========================= */

.block-type-socialmediabuttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-top: .75em
}

.social-media-icon-qr-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .75em
}

.social-media-button img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.social-media-qr {
    width: 100px;
    height: 100px;
    margin: 0 5px;
    border: white solid 3px;
    border-radius: 3px;
    display: none;
}

a.email-button {
    text-decoration: none;
}

.email-button {
    height: 60px;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.email-button-icon {
    height: 100%;
    width: 72px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-button-icon svg {
    height: 70%;
}

.email-button-text {
    color: black;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75em;
    line-height: 1.3;
}

.block-type-emailbutton,
.block-type-socialmediabuttons,
.block-type-contactform {
    margin-top: -2em;
    margin-bottom: 3em;
    max-width: 500px
}

/* =========================
   CONTACT FORM
   ========================= */

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.0em;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1rem;
}

.form-field input,
.form-field textarea {
    padding: 0.75em;
    border: 2px solid white;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: black;
    opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #000;
}

.contact-submit {
    background-color: black;
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-top: .5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    border: 2px solid black;
}

.contact-submit:hover {
    background-color: white;
    color: black;
}

.contact-submit:hover svg path {
    fill: black;
}

.send-svg {
    height: 15px
}

.form-success {
    height: 90px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.form-success-icon {
    height: 100%;
    width: 72px;
    flex-shrink: 0;
    background-color: green;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success-icon svg {
    height: 65%;
}

.form-success-text {
    color: black;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .25em 0 1em;
    line-height: 1.3;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1em;
    border-radius: 3px;
    margin-top: 1em;
}


/* =========================
   SPACING
   ========================= */

.block-type-spacer {
    height: 2em
}

/* =========================
   FOOTER
   ========================= */

.footer-section .col {
    gap: 0;
}

.footer-section .left-col {
    padding-top: 3rem;
}

.footer-section p {
    margin-bottom: 1em;
    font-size: .9rem;
}

.footer-section a {
    color: white;
    text-decoration: underline white 1px;
}

.footer-section .block-type-socialmediabuttons {
    margin: 1em 0;
    padding: 0;
    justify-content: flex-start;
    gap: 1em
}

.footer-section .block-type-socialmediabuttons img {
    height: 50px;
    width: auto;
}

.footer-section .block-type-socialmediabuttons .social-media-qr {
    height: auto;
    width: auto;
}

.footer-section .block-type-socialmediabuttons .social-media-icon-qr-container {
    gap: .2em;
}

/* reviews widget */
.review-widget_net {
    margin-top: 4em;
}

.grw-net-widget {
    margin-left: 0 !important;
}

.review-widget_net .branding {
    font-size: 0 !important;
}

/* =========================
   LEGAL PAGES
   ========================= */

main.legal section {
    padding: 2em 1.5em 4em;
    scroll-snap-align: none !important;
}

main.legal a {
    text-decoration: white underline 1px;
    color: white;
}

a.site-title-link {
    text-decoration: none !important;
}

.back-arrow {
    display: flex;
    width: 100%;
    align-items: center;
    /* justify-content: space-between; */
    gap: 1em;
    margin-bottom: 2em;
}

.back-arrow svg {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}

.legal-content p {
    font-size: .8rem;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (min-width: 1080px) {

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    html {
        font-size: 18px;
    }

    /* Layout adjustments */
    section {
        flex-direction: row;
        gap: 10vw;
        justify-content: center;
        padding: 0 3em;
    }

    .col {
        /* background-color: rgba(0, 0, 0, 0.1); */
        padding: 3em 0 !important;
        max-width: 650px;
    }

    .left-col {
        scroll-snap-align: none;
    }

    .right-col {
        scroll-snap-align: none;
        flex-grow: 0;
    }

    /* Section alternating layout */
    section:nth-child(even) .right-col {
        align-self: self-end;
    }

    section:nth-child(even) .left-col {
        align-self: self-start;
    }

    section:nth-child(odd) .right-col {
        align-self: self-start;
    }

    section:nth-child(odd) .left-col {
        align-self: self-end;
    }

    figcaption {
        color: white;
        margin-top: .5em;
        text-align: left;
    }

    #unmute {
        width: 1.8em;
        height: 1.5em;
    }

    /* Typography */
    h1 {
        font-size: 10dvh;
    }

    h2 {
        text-align: left;
        font-size: 3.2rem;
    }

    .block-type-smalltext p {
        font-size: .8rem;
    }

    /* Keyboard section */
    #keyboard {
        flex-direction: column;
    }

    #svh-container {
        padding-bottom: 2em;
    }

    .piano {
        max-width: 650px;
        height: 180px;
        flex-grow: 0;
        flex-basis: unset;
        min-height: unset;
    }

    .piano-info {
        display: block;
    }

    /* Footer */
    .footer-section .col {
        align-self: self-start !important;
        padding-top: 2em;
    }

    .footer-section {
        min-height: unset !important
    }

    /* Block spacing */
    .right-col .block-type-spacer:first-of-type {
        display: none;
    }

    .block-type-spacer:first-of-type {
        height: 1em
    }

    .block-type-emailbutton,
    .block-type-socialmediabuttons,
    .block-type-contactform {
        margin-top: -2em;
        margin-bottom: 1em;
        max-width: 500px
    }

    /* Contact form */
    .contact-form-fields {
        gap: .5em;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .form-field {
        width: calc(50% - .25em);
    }

    .form-field input,
    .form-field textarea,
    .form-success-text {
        padding: .75em;
        font-size: .8rem;
    }

    .form-field:nth-child(3) {
        width: 100% !important
    }

    /* Button adjustments */
    .email-button-text {
        font-size: .9rem;
    }

    /* Social media */
    .block-type-socialmediabuttons {
        justify-content: space-between;
    }

    .social-media-qr {
        display: block;
    }

    .social-media-qr img {
        width: 100%;
        height: 100%;
    }

    .social-media-qr:hover {
        transition: transform 0.1s;
        transform-origin: 80% 20%;
    }

    .footer-section .social-media-qr:hover {
        transform-origin: bottom;
    }

    .review-widget_net {
        margin-top: 2em;
    }

}