:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;

    color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #154F33;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /** Regulatory Copy Protection **/
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    @media print {
        /* print nothing */
        body {
            display: none;
        }
    }
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: #154F33;
}

*::-webkit-scrollbar-thumb {
    background-color: #154F33;
    border-radius: 10px;
}

.first-tile::-webkit-scrollbar {
        width: 4px;
    }
.first-tile::-webkit-scrollbar-track {
    background: #f9f9f9;
}
.first-tile::-webkit-scrollbar-thumb {
    background-color: gray;

}
body {
    margin: 0;
    display: flex;
    place-items: center;
    min-height: 100vh;
    height: 100vh; /* fill viewport */
    box-sizing: border-box; /* include padding inside 100vh */
    overflow: hidden; /* no outer scroll on desktop */
    background: #154F33 !important;
    color: black;
    text-align: center;
    font-family: 'Arial', sans-serif;
    padding: 20px;
}
.wrapper {
    width: 100vw;
    height: 100%; /* fill the body */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top:-10px;
    padding-top: 120px; /* space for girl + christmas */
    padding-bottom: 100px; /* space for logo + footer links */
    box-sizing: border-box;
    z-index: 1;
}
.first-tile {
    position: relative;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 15px;
    height: min(850px, calc(100vh - 260px)); /* 120 top + 100 bottom + ~40 body padding */
    width: 430px;
    margin-right: 40px;
}
.second-tile {
    position: relative;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 15px;
    height: min(850px, calc(100vh - 260px)); /* 120 top + 100 bottom + ~40 body padding */
    width: 430px;
    margin-left: 40px;
}
.tile-scroll {
    padding: 20px; 
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    border-radius: 15px;
}
/* Gradient fade effect at bottom of scrollable tiles as scrollability indicator */
.first-tile.scrollable::after,
.second-tile.scrollable::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(249,249,249,0), #f9f9f9);
    border-radius: 0 0 15px 15px;
}
/* Disable fade effect when at bottom of scroll */
.first-tile.at-bottom::after,
.second-tile.at-bottom::after {
    display: none;
}

#mxcanvas {
    aspect-ratio: 480/894;
    max-width: 100%;
    max-height: calc(100vh - 40px); /* 2 × 20px body padding */
}
#first-tile, #second-tile{
    display: none;
}
.modal-backdrop.show{
background-color: transparent;
}

a {
    color:#E20074 !important;
    font-weight: 600;
}
p{
    font-size: smaller;
}
ul li{
    text-align:left;
    font-size: smaller;
}
.text-right{
    text-align:left;
}
.text-left{
    text-align:left;
}
.mms{
    color:#E20074 !important;
    font-weight: bold;
}
#logo{
    width: 100px;
    height: 100px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index:-1;
}
#girl{
    width: 110px;
    height: 110px;
    position: fixed;
    top: 0;
    left: 0;
    z-index:-1;
}
#christmas{
    width: 200px;
    height: 200px;
    position: fixed;
    top: -40px;
    left: 100px;
    z-index:-1;
}
#pic06{
    width: 230px;
    height: 230px;
    position: fixed;
    top: -20px;
    right: -20px;
    rotate: 170deg;
    z-index:-1;
}
#pic08{
    width: 230px;
    height: 230px;
    position: fixed;
    bottom: -20px;
    left: -30px;
    z-index:-1;
}
#Impressum,
#Datenschutz{
    color:white !important;
    font-weight: bold;
}
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 10px;
    opacity: 0.7;
    animation: fall linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) rotate(360deg); /* sanfter Fall */
        opacity: 0.5;
    }
}
#Footer{
    position: fixed;
    bottom: 13px;
    right: 100px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px;
}

/* Media Query: phone + tablet layout (vertically stacked cards) */
@media (max-width: 991px) {
    body {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }
    .wrapper {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 75px;
        padding-bottom: 75px;
        margin-top: 0;
        position: relative;
    }
    .first-tile,
    .second-tile {
        width: 90vw;
        height: auto;
        margin: 10px auto;
        padding: 15px;
        position: relative;
        z-index: 1;
    }
    .first-tile{
        margin-bottom : 20px;
    }
    .second-tile{
        margin-top: 20px;
    }
    #mxcanvas {
        display: block;
        width: 90vw;
        max-width: 90vw;

        /* keep the original aspect ratio */
        aspect-ratio: 480 / 894;
        height: auto;
        /* never taller than the viewport (minus your padding) */
        max-height: calc(100vh - 40px);

        margin: 20px auto;
    }
    #logo {
        position: static;
        width: 70px;
        height: 70px;
        display: block;
        margin: 0 auto 8px auto;
        z-index: 0;
    }
    #girl{
        width: 80px;
        height: 80px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }
    #christmas{
        width: 100px;
        height: 100px;
        position: absolute;
        top: 0;
        left: 100px;
        z-index: 0;
    }
    #pic06{
        width: 100px;
        height: 100px;
        position: absolute;
        top: -8px;
        right: -16px;
        rotate: 170deg;
    }
    #pic08{
        width: 100px;
        height: 100px;
        position: absolute;
        bottom: -25px;
        left: -25px;
    }
    #Footer {
        position: static;
        margin-top: 24px;
        text-align: center;
    }
    body {
        overflow: scroll !important;
    }
}

/* Media Query: Laptops */
@media (min-width: 992px) and (max-width: 1280px) and (max-height: 600px) {
    .wrapper {
        flex-direction: row;
        height: 100vh;
        position: relative;
        justify-content: center;
        align-items: center;
    }
    .first-tile, .second-tile {
        width: 430px;
        height: 440px;
        overflow-y: scroll;
        overflow-x: hidden;
        scrollbar-gutter: stable;
        margin: 0 40px;
        background-color: #f9f9f9;
        border-radius: 15px;
    }
    .first-tile {
        margin-bottom: 0;
    }
    .second-tile {
        margin-top: 0;
    }
    #logo {
        width: 50px;
        height: 50px;
        position: fixed;
        z-index:-1;
    }
    #girl {
        width: 50px;
        height: 50px;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index:-1;
    }
    #christmas {
        width: 100px;
        height: 100px;
        position: fixed;
        top: -10px;
        left: 55px;
        z-index:-1;
    }
    #pic06 {
        width: 110px;
        height: 110px;
        position: fixed;
        top: -10px;
        right: -10px;
        rotate: 170deg;
        z-index:-1;
    }
    #pic08 {
        width: 110px;
        height: 110px;
        position: fixed;
        bottom: -10px;
        left: -20px;
        z-index:-1;
    }
    #Footer {
        position: fixed;
        bottom: 13px;
        right: 80px;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 24px;
    }
    body {
        font-size: 16px;
        padding: 20px;
        background-color: #154F33 !important;
        color: black;
        text-align: center;
        font-family: 'Arial', sans-serif;
        overflow: hidden;
    }
    #Impressum,
    #Datenschutz{
        color:white !important;

    }
}

/* Media Query: Desktops */
@media (min-width: 1200px) {
    .grid-container {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 12px 10px 12px;
    background-color: white;
    border: 1px solid #999999 !important ;
    border-radius: 12px;
    box-shadow:2px 2px 5px #c3c3c3;
}
.icon-container {
    position: relative;
    height: 17px;
    width: auto;
}
.icon-container img {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: left;
    color: transparent;
}
.card-text {
    font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 500;
    color: black;
    word-break: break-word;
}
.card-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    background-color: white;
    border: 1px solid #999999 !important;
    border-radius: 12px;
    box-shadow:2px 2px 5px #c3c3c3;
}

.card-wide .icon-container {
    width: 15px;
    height: 17px;
}