:root {
    --primary-color: #2e6fb0;
    --primary-color-rgb: 46, 111, 176;
    --primary-color-dark: #225282;
    --primary-color-light: #3884d1;
    /* --primary-color: #28a8d6; */

    --background-color: #fff;
    --background-color-shadow: #e6e6e6;


    --text-light: #fff;
    --text-dark: #000;

    --content-width: 800px;
    --icon-size: 36px;
}

@font-face {
    font-family: "WorkSans";
    src: url("/font/WorkSans-VariableFont_wght.ttf"), url("/font/WorkSans-Italic-VariableFont_wght.ttf");
}


* {
    box-sizing: border-box;
}

::-moz-selection {
    color: var(--text-light);
    background: var(--primary-color-light);
}

::selection {
    color: var(--text-light);
    background: var(--primary-color-light);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--background-color-shadow);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

html,
body {
    /* font-family: 'Courier New', Courier, monospace; */
    font-family: "WorkSans", sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-align: justify;
    margin: 0;
    padding: 0;
}

html {
    width: 100vw;
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
    scrollbar-color: var(--primary-color) var(--background-color-shadow);
    scrollbar-width: thin;
    line-height: 1.5em;
}

html {
    --s: 150px;
    /* control the size */
    --c1: #b9b9b920;
    --c2: #dcdcdc20;
    --c3: #fafafa20;

    background:
        conic-gradient(from 75deg, var(--c1) 15deg, var(--c2) 0 30deg, #0000 0 180deg,
            var(--c2) 0 195deg, var(--c1) 0 210deg, #0000 0) calc(0.5*var(--s)) calc(0.5*var(--s)/0.577),
        conic-gradient(var(--c1) 30deg, var(--c3) 0 75deg, var(--c1) 0 90deg, var(--c2) 0 105deg,
            var(--c3) 0 150deg, var(--c2) 0 180deg, var(--c3) 0 210deg, var(--c1) 0 256deg,
            var(--c2) 0 270deg, var(--c1) 0 286deg, var(--c2) 0 331deg, var(--c3) 0);
    background-size: var(--s) calc(var(--s)/0.577);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden auto;
}

button,
a.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* margin: 6px; */
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: inherit;
    font-family: inherit;
    transition: background-color ease-in-out 150ms;
}

button:hover,
a.button:hover {
    background-color: var(--primary-color-dark);
}

button icon,
a.button icon {
    background-color: var(--text-light);
}

/* Spinner */
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #000;
    border-color: #000 transparent #000 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
    background-color: #fff;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
    justify-content: space-around;
}

header #text {
    max-width: 500px;
}

#intro-image {
    height: auto;
    max-height: 700px;
    width: 100%;
    min-width: 250px;
}

#intro #img-section {
    display: flex;
    width: min(100%, var(--content-width));
}

#intro #img-section img {
    max-width: calc(100% / 2.3);
}

#intro #img-section #spacer {
    flex-grow: 1;
    background-color: var(--primary-color);
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-forward" viewBox="0 0 24 24"><path d="m 8,4 8,8 -8,8 V 16 C 7.9926,11.276379 7.9931,11.291219 8,4 Z" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-forward" viewBox="0 0 24 24"><path d="m 8,4 8,8 -8,8 V 16 C 7.9926,11.276379 7.9931,11.291219 8,4 Z" /></svg>');

}

main {
    display: grid;
    width: 100%;
    padding-bottom: 50px;
    grid-template-columns: 0 auto 0;
}

footer {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-bottom: 50px;
}

footer .content {
    max-width: var(--content-width);
    display: grid;
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: start;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: dashed underline var(--text-light);
}

footer #datenschutz {
    grid-column-start: span 2;
}

.content {
    display: grid;
    place-items: center;
    text-align: justify;
    padding: 0 8px;
    max-width: var(--content-width);
    margin: auto;
}

#feature-list li {
    list-style-type: none;
    margin-bottom: 30px;
    /* text-align: start; */
}

#feature-list li::before {
    content: '+';
    color: var(--primary-color);
    display: inline-block;
    font-weight: bold;
    width: 1em;
    margin-left: -1em;
}

#feature-list li strong {
    font-weight: 450;
}

h2 {
    width: 100%;
    text-align: start;
    border-bottom: solid var(--primary-color) 3px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: dashed underline var(--text-dark);
}

a.button:hover {
    text-decoration: none;
}

#demo-video-box {
    max-width: 100%;
}

#app-live-demo {
    display: none;
}

#spinner {
    position: absolute;
}

@media screen and (min-width: 800px) and (min-height: 700px) {
    main {
        grid-template-columns: auto var(--content-width) auto;
    }

    #app-live-demo {
        display: grid;
        place-items: center;
        width: 100%;
        height: 1400px;
        translate: 0 -120px;
        background-image: url("phone.png");
        background-position: center center;
        background-repeat: no-repeat;
        grid-column-start: span 3;
    }

    #app-frame {
        width: 413px;
        height: 708px;
        z-index: 1;
    }

    #app-preview {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    /* footer {
        padding: 8px;
    } */

    footer .content {
        grid-template-columns: auto;
        justify-items: start;
        padding: 0 8px 50px 8px;
    }

    footer #datenschutz {
        grid-column-start: 1;
    }

    header {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    header #text {
        display: grid;
        justify-items: center;
    }

    #intro-image {
        max-height: 90dvh;
    }

    #feature-list {
        padding-left: 20px;
    }
}


/*********************** Icons ***********************/
icon {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    background-color: var(--text-dark);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

icon.small {
    width: calc(var(--icon-size) / 2);
    height: calc(var(--icon-size) / 2);
}

icon.light {
    background-color: var(--text-light);
}

/* icon svg from: https://github.com/Templarian/MaterialDesign-SVG */
icon.play {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-play" viewBox="0 0 24 24"><path d="M8,5.14V19.14L19,12.14L8,5.14Z" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-play" viewBox="0 0 24 24"><path d="M8,5.14V19.14L19,12.14L8,5.14Z" /></svg>');
}

icon.cellphone-text {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cellphone-text" viewBox="0 0 24 24"><path d="M17,19V5H7V19H17M17,1A2,2 0 0,1 19,3V21A2,2 0 0,1 17,23H7C5.89,23 5,22.1 5,21V3C5,1.89 5.89,1 7,1H17M9,7H15V9H9V7M9,11H13V13H9V11Z" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cellphone-text" viewBox="0 0 24 24"><path d="M17,19V5H7V19H17M17,1A2,2 0 0,1 19,3V21A2,2 0 0,1 17,23H7C5.89,23 5,22.1 5,21V3C5,1.89 5.89,1 7,1H17M9,7H15V9H9V7M9,11H13V13H9V11Z" /></svg>');
}

icon.cloud-download {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cloud-download" viewBox="0 0 24 24"><path d="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.83 7.13 7.39 5.75 8.95 4.38 11 4.08V12.15L9.4 10.6L8 12L12 16L16 12L14.6 10.6L13 12.15V4.08Q15.58 4.43 17.29 6.39 19 8.35 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="mdi-cloud-download" viewBox="0 0 24 24"><path d="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.83 7.13 7.39 5.75 8.95 4.38 11 4.08V12.15L9.4 10.6L8 12L12 16L16 12L14.6 10.6L13 12.15V4.08Q15.58 4.43 17.29 6.39 19 8.35 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z" /></svg>');
}