@charset "UTF-8";

/*=========== TABLE OF CONTENTS ===========
0.  CSS Variables
1.  Icons
2.  General css (Reset code)
3.  Header
4.  Welcome-hero
5.  About us 
6.  Timeline
7.  Skills
8.  Experience
9.  Profiles
10. Portfolio
11. Clients
12. Contact
13. Footer
14. Imprint
15. Privacy
16. ScrollTop
17. Animations

/*-------------------------------------
		0. CSS Variables
--------------------------------------*/

:root {
    --blue: #0956b9;
    --white: #ffffff;
    --max-width: 1280px;
    --spacing: 32px;
    --radius: 10px;

}

/*-------------------------------------
		1. Icons
--------------------------------------*/

.icon-phone-wrapper {
    width: 32px;
    height: 32px;
    position: relative;
    top: 10px;
    left: 9px;
}

.icon-mail-wrapper {
    width: 32px;
    height: 32px;
    position: relative;
    top: 11px;
    left: 9px;
}

.icon-fb-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    left: -2px;
}

.icon-linkedIn-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    left: -2px;
}

.pswp-docs__home-gallery a {
    padding-bottom: 100%
}

#btn-gallery {
    background: darkblue;
    color: white;
    font-size: 14px;
    margin: 8px;
    border-radius: 4px;
    padding: 12px;
    line-height: 32px;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
}

.pswp__custom-caption {
    background: rgba(75, 150, 75, 0.75);
    font-size: 16px;
    color: #fff;
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 2px 8px;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.pswp__custom-caption a {
    color: #fff;
    text-decoration: underline;
}

.hidden-caption-content {
    display: none;
}

/*-------------------------------------
		2. General css (Reset code)
--------------------------------------*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: whitesmoke;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: 'liga', 'kern';
    font-feature-settings: 'liga', 'kern';
    background-color: white;
}

.footer-nav a {
    font-size: 16px;
}

a,
a:hover,
a:active,
a:focus {
    text-decoration: none;
    color: #6a708e;
    color: darkblue;
    font-size: 16px;
    padding: 0;
}

p {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
}

select,
input,
textarea,
button {
    box-shadow: none;
    outline: 0 !important;
}

button {
    background: transparent;
    border: 0;
}

section {
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
}

.section-heading>h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    padding-bottom: 30px;
    line-height: 1.5;
}

.section-heading>h3.no-padding {
    padding-bottom: 0;
}

.section-heading>h4 {
    color: gray;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
    padding: 0 12px;
    padding-bottom: 50px;
}

.with-border-bottom {
    margin: 8px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
}

.with-border-top {
    border-top: 0.5px solid rgba(0, 0, 0, 0.2);
}

.background-whitesmoke {
    background-color: whitesmoke;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--max-width);
    justify-content: center;
    white-space: wrap;
}

h1.section-heading {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.section-content p {
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.7;
    word-wrap: break-word;
}

.section-content a:hover {
    text-decoration: underline;
}

.text-mark-1 {
    margin: 0 -0.4em;
    padding: 0.1em 0.4em;
    border-radius: 0.8em 0.3em;
    background: transparent;
    background-image: linear-gradient(to right,
            rgba(255, 225, 0, 0.1),
            rgba(255, 225, 0, 0.7) 4%,
            rgba(255, 225, 0, 0.3));
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.text-mark-2 {
    font-style: normal;
    border-radius: 1em 0 1em 0;
    text-shadow: 1px 1px 1px #fff;
    background-image:
        linear-gradient(-100deg,
            rgba(255, 250, 150, 0.15),
            rgba(255, 250, 150, 0.8) 100%,
            rgba(255, 250, 150, 0.25));
}

.long-text {
    padding: 8px 12px;
    font-size: 15px;
}

.long-text p {
    font-size: 15px;
    line-height: 1.7;
}

.wp-block-list {
    margin: 0;
    padding: 0;
    padding-left: 18px;
}

.wp-block-list li:not(:last-child) {
    padding-bottom: 12px;
}

.text-left {
    text-align: left;
}

.text-small {
    opacity: 0.9;
    font-size: 13px !important;
}

.text-small a {
    font-size: 13px !important;
}

.list-style li {
    padding-bottom: 4px;
    list-style-position: inside;
}

.contact-details>div {
    line-height: 28px !important;
}

@media (max-width: 768px) {

    .long-text {
        text-align: justify;
        padding: 8px 12px;
    }

    .long-text h3 {
        text-align: left;
    }

    section {
        flex-direction: column;
    }

    .contact {
        background-color: whitesmoke;
        padding: 40px;
        border-radius: 3px;
        border: 1px solid silver !important;
        text-align: center;
    }

    .contact-title {
        font-weight: bold;
    }

    .pswp__img {
        border-radius: 0 !important;
    }

    #btn-gallery {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

}

/*-------------------------------------
        3. Header
--------------------------------------*/
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    user-select: none;
    -webkit-user-select: none;
}

header,
header>div {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
}

header>div {
    width: 100%;
    max-width: var(--max-width);
    justify-content: space-around;
}

.header-card {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    margin: auto;
    width: 100%;
    max-width: var(--max-width);
}

.header-card-top-dots {
    background: radial-gradient(#4cc9c8 20%, transparent 19%), radial-gradient(#4cc9c8 20%, transparent 19%), transparent;
    background-position-x: 0%, 0%, 0%;
    background-position-y: 0%, 0%, 0%;
    background-size: auto, auto, auto;
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
    grid-column: 8 / span 6;
    grid-row: 2 / span 3;
    height: 80px;
}

#header-logo {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-start;
    background-color: orangered;
    grid-column: 1 / span 9;
    grid-row: 1 / span 3;
    height: 80px;
    border-bottom-right-radius: 3px;
    padding-left: 8px;

}

header>div>nav,
header>div>nav>ul,
header>div>nav>ul>li,
header>div>nav>ul>li>a {
    display: flex;
    height: 100%;
    align-items: center;
}

header>div>ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

header>div>nav>ul {
    list-style: none;
}

header .site-branding {
    scale: 0.98;
}

#menu-btn {
    display: none;
    flex: 1;
    justify-content: flex-end;
    padding-right: 8px;
    cursor: pointer;
    height: 100%;
    line-height: 100%;
    min-width: 48px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

#menu-btn>span {
    display: flex;
    align-items: center;
    align-self: center;
    z-index: -1;
    min-width: 48px;
    max-width: 48px;
}

#menu-btn.open .menu-icon-top {
    transform: translateY(5px) translateX(0) rotate(45deg);
    background: #0956b9;
}

#menu-btn.open .menu-icon-bottom {
    transform: translateY(-5px) translateX(0) rotate(-45deg);
    background: #0956b9;
}

#menu-btn.open .menu-icon-middle {
    opacity: 0;
}

#menu-btn>span,
.menu-icon {
    position: relative;
}

.menu-icon {
    width: 24px;
    height: 20px;
    cursor: pointer;
    transition: opacity .25s;
}

.menu-icon>span {
    max-width: 48px;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #0956b9;
    transition: all .2s ease;
}

.menu-icon-top {
    top: 2px;
}

.menu-icon-middle {
    top: 7px;
}

.menu-icon-bottom {
    top: 12px;
}

#menu-list a {
    color: var(--blue);
    text-decoration: none;
    padding: 12px 20px;
}

#menu-list a:hover {
    color: var(--white);
    background: var(--blue);
}

#menu-list a.active {
    color: var(--white);
    background: var(--blue);
}

#menu-list,
#menu-list>li,
#menu-list>li>a {
    width: 100%;
}

#menu-list {
    box-shadow: none;
}

#menu-list[aria-expanded="true"] {
    display: inherit;
    flex-direction: column;
    top: 80px;
    z-index: 10;
    left: 0;
    height: auto;
    overflow: scroll;
    position: absolute;
}

.zoomin {
    -webkit-animation-duration: .13s;
    animation-duration: .13s;
    animation-fill-mode: both;
    -webkit-animation-name: zoomin;
    animation-name: zoomin;
}

.zoomin {
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

header .site-logo img {
    height: auto;
    max-width: 425px;
    width: 425px;
    padding: 8px 0;
}

header .site-logo img:active {
    scale: 0.96;
}

header .site-description {
    display: none;
    color: #ff3701;
    color: #006400;
    font-size: 16px;
    line-height: normal;
}

body {
    background-color: white;
}

body.home {
    max-width: var(--max-width);
}

@media (min-width: 1281px) {
    body.home {
        margin: 20px auto !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
        box-shadow: 0 0 3px rgba(0, 0, 0, .75);
    }

    .contact-with-border {
        padding-right: 25px;
    }

    #header-logo {
        padding-left: 87px;
    }
}

@media (min-width: 768px) {

    body.home {
        margin: 12px 12px;
        box-shadow: 0 0 3px rgba(0, 0, 0, .75);
        background-color: white;
    }

    #footer p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    header .site-branding {
        scale: 0.92;
    }

    #header-logo {
        padding-left: 6px;
        justify-content: flex-start;
    }

    #menu-btn {
        display: flex;
    }

    #menu-list {
        font-size: 24px;
        color: black;
        background-color: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    header.menu-open {
        box-shadow: none;
    }

    #menu-list>li>a {
        width: 100%;
        height: 48px;
        justify-content: center;
    }

    header>div>nav {
        position: static;
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    #menu-list[aria-expanded="false"] {
        display: none;
    }

    #menu-list a:hover {
        color: white;
        background: var(--blue);
    }

    #about {
        padding-top: 12px !important;
        padding-bottom: 24px !important;
    }

}

@media (max-width: 512px) {

    #about h4 ul>li {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    header .site-logo img {
        height: auto;
        max-width: 330px;
        width: 330px;
        padding: 7px 0;
    }

    #header-logo {
        grid-column: 1 / span 11 !important;
        padding-left: 0 !important;
        justify-content: center !important;
    }

    .header-card-top-dots {
        grid-row: 3 / span 3 !important;
    }
}

@media (max-width: 400px) {

    #header-logo {
        grid-column: 1 / span 12 !important;
    }

    header .site-logo img {
        padding: 0;
        padding-top: 16px;
    }

    .header-card-top-dots {
        display: none;
        grid-column: 1 / span 12 !important;
        grid-row: 3 / span 3 !important;
        height: 40px;
        margin-top: 6px;
    }
}

/*-------------------------------------
        4. Welcome-hero
--------------------------------------*/

#welcome-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: url(../images/slider-1-roofers.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 490px;
    min-height: 490px;
}

#welcome-hero::after {
    content: "";
    background-color: #00335A;
    opacity: 0.15;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.header-text {
    z-index: 1;
    color: white;
    max-width: 65vw;
    margin-left: 70px;
    user-select: none;
    -webkit-user-select: none;
}

.header-text h1 {
    font-size: 45px;
    font-weight: 700;
}

.separator {
    border-top-style: solid;
    border-top-width: 2px;
    width: 9%;
    border-color: white;
    margin: 15px 0;
}

.header-text h2 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.5;
}

@media (max-width: 768px) {

    #welcome-hero {
        height: 440px;
        min-height: 440px;
    }

    .header-text {
        margin-left: 40px;
    }
}

.card-main h1 {
    font-weight: 500;
    border-left: 2px solid #ddd;
    padding-left: 20px;
}

/*-------------------------------------
        Tree
--------------------------------------*/
.tree {
    margin-left: calc(var(--radius) - var(--spacing));
    margin-left: 0;
    padding-left: 0;
    font-size: 22px;
}

.tree li {
    border-left: 2px solid #ddd;
    display: block;
    position: relative;
    padding-left: calc(2 * var(--spacing) - var(--radius) + 2px);
    line-height: var(--spacing);
}

.tree li:last-child {
    border-color: transparent;
}

.tree li::before {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / -2);
    left: -2px;
    width: calc(var(--spacing) + 2px);
    height: calc(var(--spacing) + 1px);
    border: solid #ddd;
    border-width: 0 0 2px 2px;
}

.tree li::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / 2 - var(--radius));
    left: calc(var(--spacing) - var(--radius) - 1px);
    width: calc(2 * var(--radius));
    height: calc(2 * var(--radius));
    border-radius: 50%;
    background: #ddd;
}


/*-------------------------------------
        5. About us
--------------------------------------*/
#about {
    display: flex;
    justify-content: center;
    padding: 0;
}

#about>div {
    display: flex;
    width: 100%;
    max-width: var(--max-width);
    justify-content: flex-start;
    align-items: center;
}

#about>div>div {
    margin: 12px 0;
}

#about .usp>h3 {
    margin-bottom: 7px;
    font-weight: normal;
    line-height: 1.5;
    text-align: justify;
}

#about h4>ul {
    list-style: none;
}

#about h4 ul>li {
    padding: 4px 0;
    font-size: 19px;
    font-weight: normal;
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1.4;
}

#about h4 ul>li:before {
    content: '✔';
    display: inline-block;
    font-size: 24px;
    margin-right: 7px;

    /* We use ".checkmark-svg" because of a bug in Webkit: the color of the checkmark isn't working. */
    color: #006400;
    display: none;
}

#about em {
    color: black;
    font-style: normal;
    font-size: 17px;
}

.checkmark-svg {
    position: relative;
    top: 2px;
    fill: #006400;
    width: 22px;
    min-width: 22px;
    margin-right: 12px;
}

#about .contact-form {
    min-width: 480px;
    max-width: 500px;
    height: fit-content;
    position: relative;
    top: -100px;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(4px);
    backdrop-filter: saturate(180%) blur(4px);
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .15);
    box-shadow: 0 0 3px rgba(0, 0, 0, .15);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 100, 0, 0.2);
}

#about .contact-form>p {
    font-size: 18px;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 12px;
}

#about .contact-form a:hover {
    text-decoration: underline;
}

#about .contact-form>.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    gap: 0;
}

#about .contact-form>.grid>* {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: normal;
    padding: 18px 8px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.2);
}

#about .contact-form>.grid>div {
    display: flex;
    align-items: center;
}

#about .contact-form>.grid>div>i {
    min-width: 32px;
    margin-right: 1px;
}

#about .contact-form>.grid>*:first-child,
#about .contact-form>.grid>*:nth-child(2) {
    border-top: none;
}

.contact,
.contact a {
    font-size: 18px;
}

.contact a:hover {
    text-decoration: underline;
}

.contact div {
    line-height: 26px;
}

.contact-with-border {
    border-left: 8px solid orangered;
    padding-left: 16px;
    height: fit-content;
}

#certs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {

    #about.with-border-bottom {
        border-bottom: none;
    }

    #about .about-wrapper {
        flex-direction: column;
    }

    #about .contact-form {
        min-width: 90vw;
        max-width: 100vw;
        top: 0;
        padding: 16px 8px;
        -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .15);
        box-shadow: 0 0 3px rgba(0, 0, 0, .15);
    }
}


/*-------------------------------------
        6. Timeline
--------------------------------------*/

#timeline {
    background-image: url(../images/slider-1-roofers.jpg);
    background-color: #FFFFFF;
    background-position: center left;
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: white;
}

#timeline>.background-overlay {
    background-color: #00335A;
    opacity: 0.15;
    inset: 0;
    position: absolute;
}


/*-------------------------------------
        7. Skills
--------------------------------------*/

.cards-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin: 0 15px;
    max-width: var(--max-width);
}

.card {
    width: 100%;
    border-radius: 4px;
    background: white;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .15);
    box-shadow: 0 0 3px rgba(0, 0, 0, .15);
}

.card-header {
    position: relative;
}

.card-header img {
    width: 100%;
    object-fit: fill;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.card-title {
    color: black;
    padding: 8px;
    width: 100%;
    left: 0;
    color: white;
    background-color: rgba(5, 58, 34, 0.9);
    background-color: rgba(5, 90, 34, 0.9);
    background-color: rgba(0, 100, 0, 0.9);
    font-size: 18px;
    bottom: 3px;
    position: absolute;
}

.card-description {
    padding: 12px 8px;
}

.card-description ul {
    padding-left: 0;
    line-height: 1.5;
    list-style-position: inside;
}

/*-------------------------------------
        8. Experience
-------------------------------------*/


/*-------------------------------------
        9. Profiles
--------------------------------------*/


/*-------------------------------------
        10. Portfolio
--------------------------------------*/


/*-------------------------------------
        11. Clients
--------------------------------------*/


/*-------------------------------------
        12. Contact
--------------------------------------*/


/*-------------------------------------
        13. Footer
--------------------------------------*/

#footer {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

#footer p {
    text-align: center;
}

.footer-nav a:not(:last-child)::after {
    content: '|';
    display: inline-block;
    margin-left: 5px;
}

.footer-nav {
    text-align: center;
}

.footer-nav a {
    font-size: 16px;
}

.footer-nav a:hover {
    text-decoration: underline;
}


/*-------------------------------------
		14. Imprint
--------------------------------------*/

.imprint .scrolltop-wrap {
    display: none;
}

/*-------------------------------------
		15. Privacy
--------------------------------------*/


/*-------------------------------------
        16. ScrollTop
--------------------------------------*/

html {
    scroll-behavior: smooth;
    background-color: whitesmoke;
}

body {
    position: relative;
}

.scrolltop-wrap {
    box-sizing: border-box;
    position: absolute;
    top: 25rem;
    right: 2rem;
    bottom: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 2;
}

.scrolltop-wrap>a {
    position: sticky;
    top: -5rem;
    width: 48px;
    height: 48px;
    margin-bottom: -5rem;
    cursor: pointer;
    border-radius: 4px;
    transform: translateY(100vh);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: inline-block;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    outline: none;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.scrolltop-wrap>a>svg {
    display: block;
    width: 100%;
    height: 100%;
}

.scrolltop-wrap #scrolltop-arrow {
    fill: whitesmoke;
    transform: scale(0.8);
    transform-origin: center;
}

.scrolltop-wrap>a:hover #scrolltop-arrow {
    fill: white;
}

.scrolltop-wrap>a:active #scrolltop-arrow {
    transform: scale(0.65);
}

/*-------------------------------------
		17. Animations
--------------------------------------*/

.video-image {
    overflow: hidden;
    position: relative;
}

.video-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: backgroundMovieEffect 8s ease-in-out forwards;
    animation: backgroundMovieEffect 12s ease-in-out infinite alternate;
}

@keyframes backgroundMovieEffect {
    0% {
        transform: scale(1) translateX(0) translateY(0);
    }

    100% {
        transform: scale(1.03) translateX(2px) translateY(1px);
    }
}

.anim {
    animation-duration: 1s;
    -animation-fill-mode: both;
}

@keyframes fadein {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.fadein {
    animation-name: fadein;
}

@keyframes fadeout {
    from {
        opacity: 1
    }

    to {
        opacity: 0;
        z-index: -100000
    }
}

.fadeOut {
    animation-name: fadeout;
}

@keyframes zoomin {
    from {
        opacity: 0;
        transform: scale3d(.3, .3, .3)
    }

    50% {
        opacity: 1
    }
}

.zoomin {
    animation-duration: .13s;
    animation-name: zoomin;
}

@keyframes zoomout {
    from {
        opacity: 1
    }

    50% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3)
    }

    to {
        opacity: 0
    }
}

.zoomout {
    animation-duration: .25s;
    animation-name: zoomout;
}


/*-------------------------------------
        18. Photoswipe
--------------------------------------*/
#btn-gallery {
    background: darkblue;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    margin: 0;
}

#btn-gallery>span {
    display: block;
    font-size: 32px;
}

.pswp__custom-caption {
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    font-size: 16px;
    color: black;
    width: calc(100% - 32px);
    max-width: 400px;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    padding: 0;
}

.pswp__custom-caption>* {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.pswp__custom-caption>h3 {
    text-align: center;
    background: white;
    border-radius: 4px;
    padding: 10px 12px;
}

.pswp__custom-caption>h3+div:not(:empty) {
    border-top: 1px inset whitesmoke;
    padding: 10px 12px;
    padding-top: 5px;
}

.pswp__custom-caption a {
    color: #fff;
    text-decoration: underline;
}

.pswp-docs__home-gallery>a {
    display: none;
}

.hidden-caption-content,
.pswp__custom-caption:empty {
    display: none !important;
}

.pswp-docs__home-gallery-item figcaption {
    display: none;
}

#my-gallery {
    --numcolumns: 3;
    --gap: 0.25em;
    --size: calc(100vw / var(--numcolumns));
    display: grid;
    grid-template-columns: repeat(var(--numcolumns), 1fr);

    grid-template-rows: auto;
    gap: var(--gap);
    align-items: stretch;

    list-style: none;
}

#my-gallery>figure {
    display: block;
    height: calc(var(--size) - var(--gap));
}

#my-gallery>figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;

    transition: opacity .25s;
}

#my-gallery>figure img:active,
#my-gallery button:active {
    scale: 0.98;
}

#my-gallery>figure img:hover,
#my-gallery button:hover {
    opacity: 0.94;
}

.pswp__img {
    border-radius: 4px;
}

.pswp__img {
    object-fit: contain;
    object-fit: unset;
}

@media (max-width: 512px) {

    #my-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    #my-gallery>figure img {
        transition: none !important;
    }

    .pswp__custom-caption>h3 {
        font-size: 18px;
    }

}

/*-------------------------------------
        Css patterns
--------------------------------------*/
.container-pattern {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    position: relative;
}

.pattern-diagonal-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 49%, #e5e7eb 49%, #e5e7eb 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, #e5e7eb 49%, #e5e7eb 51%, transparent 51%);
    background-size: 40px 40px;

    /* Maskierung für den Verlaufseffekt oben */
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
}