html 
{
    font-size: clamp(0.8rem, 0.375rem + 0.5208vw, 1rem);
}

.ce_rsce_text_partners_card 
{
    width: clamp(16.475rem, 13.5417rem + 6.1111vw, 20.875rem);
}

.founders_cards {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.background-text-trusted .rte p {
    font-size: clamp(8rem, 6.6667rem + 6.9444vw, 15rem);
}


@media (min-width: 768px) and (max-width: 1344px) {
    .card h2 {
        font-size: 1.5rem;
        letter-spacing: -1px;
    }
}

@media (min-width: 1344px) and (max-width: 1920px) {
    .card h2 {
        font-size: 1.75rem;
        letter-spacing: -2px;
    }
}

@media (min-width: 1920px) {
    .card h2 {
        font-size: 2rem;
        letter-spacing: -3px;
    }
}

#header_mobile, #footer_top_mobile, #footer_bottom_mobile
{
    display: none;
}

/* Mobile */

@media (max-width: 768px) 
{
    #header_desktop, #footer_top_desktop, #footer_bottom_desktop
    {
        display: none;
    }

    #header_mobile, #footer_top_mobile, #footer_bottom_mobile
    {
        display: block;
    }
    
    #header_mobile {        
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000;
    }

    #header_mobile .inside {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-rows: 5rem auto;
        column-gap: 0.75rem;
        align-items: center;
        padding: 0 2rem;
        max-width: 1512px;
        height: 5rem;
        margin: auto;
    }

    #header_mobile #logo {
        grid-column: 1; grid-row: 1;
        margin: 0;
        height: 3rem;
        display: flex;
        align-items: center;
    }

    #header_mobile .button_default {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin: 0;
        display: inline-flex;
        align-items: center;
    }

    #header_mobile #mobile-menu-button {
        grid-column: 4; grid-row: 1;
        justify-self: end;
        margin: 0;
        display: inline-flex; align-items: center;
    }
    
    #mobile-menu-button .burgermenu-icon {
        background: #2A8FA2;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 1rem;
        padding: 0.8rem;
    }

    #mobile-menu-button .fa {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: 14px;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    #header_mobile nav.mod_navigation {
        display: none;
    }

    #header_mobile nav.mod_navigation {
        position: absolute;
        top: 5rem;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #d7ebef;
        border-bottom: 1px solid #d7ebef;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    #header_mobile nav.mod_navigation ul.level_1 {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #header_mobile nav.mod_navigation ul.level_1 li a {
        display: block;
        padding: 1rem 2rem;
        color: black;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    #header_mobile nav.mod_navigation ul.level_1 li a:hover {
        background-color: rgba(0,0,0,0.04);
    }

    #header_mobile.nav-open nav.mod_navigation {
        display: block;
    }
    

    #wrapper .mod_article 
    {
        padding: 0 2rem;
    }
    
    #wrapper .mod_article.article-width-full-mobile {
        margin: 0;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    #wrapper .mod_article.newsletter-card {
        margin: 0;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    #wrapper .mod_article.newsletter-card .article-inner {
        flex-direction: column;
        gap: 2rem;               
        padding: 2rem;           
        border-radius: 0rem;
        align-items: center;         
        text-align: center;            
    }
    
    #wrapper .mod_article.newsletter-card .article-inner img {
        width: 2.5rem;
        height: 2.5rem;
        margin-left: 0.75rem;
        margin-top: 1.5rem;
        margin-right: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .mod_article.newsletter-card .article-inner .content-text {
      flex: 0 0 auto;
      width: 100%;
      min-width: 0;
    }
    
    .mod_article.newsletter-card .article-inner .content-text:last-child {
      display: flex;
      flex-direction: column;
      align-items: center;     
      justify-content: center;
      text-align: center;       
    }
    
    .easy-steps-card 
    {
        border: 1px solid #2A8FA2;
    }
    
    .card-step-card-nr::before
    {
        content: "Step " counter(card-counter);
        position: absolute;
        font-weight: 300;
        left: 1rem;
        top: 1.25rem;
        color: #2a8fa2;
        z-index: 2;
    }
    
    .button_default {
        background-color: #2A8FA2;
        color: white;
        padding: 0 1.5rem;
        border-radius: 1rem;
        border: 0.13rem solid #2A8FA2;
        text-decoration: none;
        font-weight: 500;
        margin-left: 1.8rem;          
        display: inline-flex;
        align-items: center;
        justify-content: center;       
        gap: .6rem;                 
        white-space: nowrap;
        height: 2.5rem;
        line-height: 1;                
        box-sizing: border-box;
        transition: border-color .5s ease, background-color .5s ease;
    }
    
    .button_default:hover {
        border-color: #a2d7e1;
        background-color: #45afc3;
    }
    
    .button_default.inner-content-height {
        height: 3.8rem;
        margin-left: 0;
    }
    
    .button_default.button_arrow {
        position: relative;           
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .button_default.button_arrow::after {
        position: static;          
        right: auto;               
        top: auto;                
        transform: rotate(-45deg); 
        transform-origin: 50% 50%;
        display: inline-block;     
        width: 1.5rem;
        height: 1.5rem;
        background: url("/files/startseite/icons/icon_arrow_white.png") no-repeat center / contain;
        pointer-events: none;
    }
    
    .button_default.button_arrow:hover::after {
        transform: rotate(0deg);
    }
    
    .mod_article.top_article_splash 
    {
        flex-direction: column-reverse;
        min-height: 700px;
    }
    
    .mod_article.two_column_layout
    {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
    }
    
    .mod_article.two_column_layout .card {
        background-color: white;
        border-radius: 1rem;
        flex: 1 1 50%;
        padding: 1.0rem;
    }

    .mod_article.two_column_layout .card.content-image {
        overflow: hidden;
        padding: 0;
    }
    
    .mod_article.two_column_layout .card.content-image figure, .mod_article.two_column_layout .card.content-image figure img{
        width: 100%;
        height: 100%;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api {
        position: relative;
        overflow: hidden;
        background: #03232A;
        padding: 0;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api::before {
        content: "";
        position: absolute;
        left: 4%;
        right: 4%;
        top: 62%;              
        height: 1px;           
        background-color: #14404A;
        z-index: 1;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api .corner-text {
      position: absolute;
      top: 3rem;
      right: 2rem;
      display: inline-flex;
      align-items: flex-end; 
      gap: 0.25rem;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api .corner-text .upto {
      font-size: 1.0rem;
      line-height: 1;
      font-weight: lighter;
      color: #14404a;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api .corner-text .percent {
      font-size: 3.0rem;
      font-weight: bold;
      line-height: 1;
      color: #fff;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api .corner-text .apy {
      font-size: 1.0rem;
      line-height: 1;
      font-weight: lighter;
      color: #14404a;
      align-self: flex-start;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api img{
        transform: translateY(3rem);
        transition: transform .35s ease;
    }
    
    .mod_article.two_column_layout .fifteen-percent-api:hover img{
        transform: translateY(0rem);
    }

    .card
    {
        border-radius: 1rem;
        padding: 1.0rem;
    }

    .card-arrow p {
        font-size: 1.0rem;
        width: 100%;
    }


    .strategies-list 
    {
        grid-template-columns: 1fr;    
    }

    .rte-hover-transition .rte 
    {
        height: 100%;
        opacity: 1;
    }
    
    .timeline
    {
        display: none;    
    }

    .timeline-three-column-grid 
    {
        grid-template-columns: 1fr;
    }

    .background-text-trusted .rte p {
        font-size: clamp(5rem, 1.412rem + 13.7255vw, 10rem);
    }

    .scrolling-images-track
    {
        min-width: unset;
    }
    
    .scrolling-images-container-element
    {
        width: 13rem;
    }

    .founders_cards 
    {
        display: grid;
        gap: 1rem;
        justify-content: space-between;
        grid-template-columns: 1fr;    
    }

    .ce_rsce_text_partners_card
    {
        width: 100%;
        height: 100%;
        aspect-ratio: 3 / 4;
    }

    .ce_rsce_image_list.image-list-founders .image-list-element
    {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;        
    }
    
    .ce_rsce_image_list.image-list-founders
    {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }
    
    .ce_rsce_image_list.image-list-backedby
    {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }
    
    .ce_rsce_image_list.image-list-backedby .image-list-element
    {
        width: 100%;
        aspect-ratio: 1 / 1;        
    }
    
    .ce_rsce_image_list.image-list-backedby .image-list-element .image-list-mask
    {
        max-height: 70%;
    }
    
    @property --p {
        syntax: "<number>";
        inherits: false;
        initial-value: 0;
    }
    
    .article-inner:has(.card-gallery-card) {
        display: flex;
        flex-wrap: nowrap;
        gap: .75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-inline: 1rem;
        scroll-padding-inline: 1rem;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        position: relative;
        padding-top: 4rem;
        padding-bottom: 4rem;
        border-radius: 0;
        
        --trackW: clamp(120px, 40vw, 240px);
        --h: 4px;
        --y: calc(100% - 2.75rem);
        
        background-image:
        linear-gradient(#5ec8db 0 0),
        linear-gradient(#bef5ff 0 0);
        background-repeat: no-repeat, no-repeat;
        
        background-size:
        calc(var(--p) * var(--trackW)) var(--h),
        var(--trackW) var(--h);
        
        background-position:
        calc(50% - 0.5 * var(--trackW) + var(--p) * var(--trackW) * 0.5) var(--y), 
        center var(--y);
        
        scroll-timeline: --cards inline;
        animation: fill linear both;
        animation-timeline: --cards;
    
    }
    
    .article-inner:has(.card-gallery-card) .card-gallery-card {
        flex: 0 0 clamp(240px, 80vw, 320px);
        scroll-snap-align: start;
    }
    
    .article-inner:has(.card-gallery-card)::-webkit-scrollbar { display: none; }
    
    @keyframes fill  {
        from { --p: 0.25; }
        to   { --p: 1; }
    }

    button.button_submit {
        width: 90vw;
        margin-bottom: 4rem;
    }
    
    #ctrl_12 {
        width: 90vw;
    }
    
    /* overriding hovers for mobile */
    .scrolling-images-container-element:hover {
        background-color: #507780;
    }

    .scrolling-images-container-element:hover img {
        transform: translateY(0rem);
        opacity: 0.4;
    }

    .scrolling-images-container-element:hover p {
        transform: translate(0, 0);
        opacity: 0;
    }
    
    .rte-hover-transition:hover .rectangle_1 {
        height: 0.5rem;
    }

    .ce_rsce_text_partners_card:hover 
    {
        color: #ffffff;
    }

    .ce_rsce_text_partners_card:hover .socialmedia-icon {
        background-color: #d7ebef;	
    }
    
    .ce_rsce_text_partners_card:hover .socialmedia-icon:hover {
        background-color: #d7ebef;	
    }

    #footer_top_mobile {
        width: 100%;
        background-color: #D7EBEF;
        border-bottom: 1px solid #85A6AD;        
    }

    #footer_top_mobile .inside, #footer_bottom_mobile .inside {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        color: #507780;
        font-size: 1.125rem;
    }

    #footer_bottom_mobile {
        width: 100%;
        background-color: #D7EBEF;
    }

    #footer_bottom_mobile nav ul {
        display: flex;
        gap: 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
        flex-direction: column;
        align-items: center;
    }

    #footer_bottom_mobile nav a {
        text-decoration: none;
        color: inherit;
    }

    #footer_bottom_mobile span {
        font-weight: bold;
    }

    #footer_top_mobile .button_default
    {
        width: 100%;
        height: 4rem;
        margin: unset;
    }  
}
  
