


@media (min-device-pixel-ratio: 1.2) {
    img {
      transform: scale(0.833);
      
    }
  }


  /* lenis implementation for smooooooooooth scroll smooth scroll*/

  html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
}

@supports (overscroll-behavior: contain) {
    .lenis.lenis-smooth [data-lenis-prevent] {
        overscroll-behavior: contain;
    }
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}




.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none; /* Overrides the modal's flex display when hidden */
}

.modal-content {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #000; /* Black background for video */
    border-radius: 10px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-content {
        width: 100%;
        height: auto;
        max-width: 1920px;
        max-height: 1080px;
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;

    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.popup .close-button {
    color: #000;
    font-size: 2rem;
}

.close-button:hover {
    color: var(--red);
}


#play-button-wrapper {
    position: absolute;
    top: calc(15% + 20px);
    left: 50%;
    transform: translate(-50%, -50%); /* Ensures centering relative to both axes */
    z-index: 10;
    pointer-events: auto;
}

.play-button-arrow {
    /* width: 100px; */
    width: 30%;
    height: auto;
    /* fill: #79bdfa; */
    animation: nudge-arrow 2.5s ease-in-out infinite;
    filter: drop-shadow(12px 10px 10px rgba(0, 0, 0, 0.9));
    cursor: pointer;
    /* Optional for dark mode or forced override */
    mix-blend-mode: screen;
}

@keyframes nudge-arrow {
    0%   { transform: translateX(-50%) translateX(0); }
    20%  { transform: translateX(-50%) translateX(30px); }
    60%  { transform: translateX(-50%) translateX(0); }
    100% { transform: translateX(-50%) translateX(0); }
}



/*This is for the newsletter window:*/

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--primary-bg);
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 460px;
    margin: 2rem auto;
    animation: fadeIn 0.4s ease;
}

.success-message h2 {
    font-size: 1.8rem;
    color: var(--accent-yellow, var(--dark-2));
}

.success-message p {
    font-size: 1.1rem;
    color: #333;
}

.success-message img {
    max-width: 240px;
    height: auto;
    opacity: 0.95;
}

.success-close-button {
    background: var(--accent-yellow, #ffcc00);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.success-close-button:hover {
    background: #e6b800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 419px) {

    #play-button-wrapper {
        left: 58%;
    }
}

#hero-gradient {
    background: var(--primary-bg-gradient);
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw; 
    height: 160px !important;
}
  

/* These hero-spacers left and right of the hero-image-wrapper enable early downscaling as window shrinks.
Without them, the content wouldn't start shrinking until the window width reaches the image. */

.overlay-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 70vw;
    max-width: 1000px;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    z-index: 9;
}

.overlay-text h1 {
    font-size: clamp(3rem, 12vw, 9rem);
}

.overlay-text h2 {
    margin-top: 10px;
    font-size: 1.5rem !important;
    border: black solid 1px;
}

.hero-button {
    background: transparent;
    font-size: 1.4rem !important;
    width: clamp(220px, 40vw, 360px);
    height: auto;
    box-shadow:
        2.8px 2.8px 2.2px rgba(48, 60, 97, 0.1),
        6.7px 6.7px 5.3px rgba(0, 0, 0, 0.028),
        12.5px 12.5px 10px rgba(0, 0, 0, 0.035),
        22.3px 22.3px 17.9px rgba(0, 0, 0, 0.042),
        8px 8px 4px rgba(0, 0, 0, 0.05),
        20px 20px 20px rgba(48, 60, 97, 0.5);
}

.hero-button:hover {
    filter: brightness(1.2); 
}

.hero-button button {
    background: none !important;
    display: inline-block; /* Ensures the clickable area matches the image size */
    overflow: hidden;
}

.hero-button,
.hero-button button,
.hero-button img {
    padding: 0;
    border-radius: 8px;
}


#hero-image-wrapper {
    position: relative;
}

#hero-button-top {
    position: absolute;
    top: 40%; /* Use percentage based on image height */
    left: 10%;
    /* transform: translate(-50%, -50%); */
    z-index: 30;
}

@media (max-width: 500px) {
    
    .hero-button {
        width: clamp(140px, 45vw, 200px);
    }
}


.hero-button img {
    display: block;
    width: 100%;
    height: auto;
    background: none;
    border-radius: 8px;
}

.hero-button:hover {
    filter: brightness(1.2);
}





#hero-button-bottom {
    margin-top: 60px !important;
    margin-bottom: 40px;
}

#crowdfunding-button-position-bottom {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
}

#text-wettlauf-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 20px); /* Accounts for 10px padding on each side */
    max-width: 1200px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#text-wettlauf {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 88vw !important;
    box-sizing: border-box;
    overflow: visible !important;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px !important;
}

#text-wettlauf h1 {
    font-size: 2.6rem;
    line-height: 1.2em;
}

#text-wettlauf p {
    color: white;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.6em;
    width: 100%;
    word-wrap: break-word;
    box-sizing: border-box;
}

#fliesen-placeholder {
    width: 100%;
}

.masonry-item .bullet-list {
    padding: 0;
    margin-top: 0;
}

.masonry-item .bullet-list li {
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    margin-bottom: 10px; /* Optional: Adjust the spacing between list items */
}
  
#seebad {
    width: 100%;
    height: auto;
    display: block;
}

#section-richtig-toll-werden .bg-gradient-mid2-transparent-mid2 p {
    text-align: left;
    margin-left: 2rem;
    max-width: 60ch;
    margin: 2rem 1rem !important;
    padding: 0;
}

#verschwinden-entgegenwirken-background {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--mid-2);
}

#verschwinden-entgegenwirken-background p {
    max-width: 50ch;
    text-align: center;
    font-size: 1.2rem;
}

#section-richtig-toll-werden {
    background-color: var(--light-2);
}

#section-richtig-toll-werden img {
    margin-bottom: 20px;
}

#section-richtig-toll-werden h3 {
    font-size: 2rem;
}

#section-richtig-toll-werden p {
    font-size: 1.3rem;
    color: black;
}

#section-quotes {
    position: relative;
    height: auto;
    background-color: black;
    margin: 0 auto !important;
    text-align: center; 
}

#image-neukoelln {
    width: 100%;
    height: auto;
    max-width: none;
    min-width: 2256px;
    height: auto;
    display: block;
}

#image-rostock {
    background-color: #e9e5e2;
    max-width: 1224px;
    border-radius: 50px;
    width: fit-content; /* Adjust width to fit the content dynamically */
    margin: 0 auto;
}

#image-mannheim-familie-1912 {
    max-width: 1043px;
    padding-bottom: 100px;
    width: 100%;
    margin: 0 auto;
}

#section-crowdfunding-steps .text-block-with-headline h2 {
    font-size: 5rem !important;
    text-align: center;
    margin-bottom: 0 !important;
}

#section-crowdfunding-steps p {
    font-size: 1.2rem !important;
}

.negative-margin-200 {
    margin-top: -140px;
    margin-bottom: 0px;
}

.quote-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 20;
}
  
.quote-wrapper.offset-left {
    margin-left: -10vw;
}
  
.quote-wrapper.offset-right {
    margin-left: 10vw;
}

.animated-quote {
    position: relative;
    width: 100%;
    min-width: 16ch;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 11;
}

.animated-quote h3 {
    font-family: var(--quote-font);
    text-align: left;
    font-size: clamp(2rem, 30px, 5rem);
    font-weight: bold;
    line-height: 1.2;
    font-style: italic;
    position: relative;
    display: inline-block;
    color: black;
    text-shadow: var(--fat-white-stroke);
}

.animated-quote a {
    font-family: var(--quote-font);
    text-align: center;
    font-size: clamp(1.2rem, 18px, 1.6rem);
    font-weight: bold;
    line-height: 1.2;
    font-style: italic;
    position: relative;
    display: inline-block;
    color: var(--blue-3);
    text-shadow: none;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {

    #section-crowdfunding-steps .text-block-with-headline h2 {
        font-size: 3rem !important;
    }

    #title-fotos-einscannen h1 {
        font-size: 1.6rem !important;
    }

    .quote-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .animated-quote h3 {
        font-size: 1.4rem;
    }
}

#video-container-fliesen {
    position: relative;
    overflow: hidden;
    width: 100vw;
    background-color: var(--dark-3);
    padding: 0;
    margin: 0 auto;
    margin-bottom: 50px;
}

#little-squares {
    display: grid;
    grid-template-columns: repeat(5, 128px);
    gap: 8px;
    justify-content: center;
    padding: 8px;
    margin: 0 auto;
    background: black;
}

.square-thumbnail {
    width: 100%;
    max-width: 128px;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.square-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.square-thumbnail:hover {
    transform: scale(1.2);
}

/* Adjustments specifically for smaller screens */
@media (max-width: 767px) {
    #little-squares {
        display: grid;
        grid-template-columns: repeat(2, 128px);
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 6px;
        margin: 0 auto;
    }
}

#section-alte-lateinschule {
    position: relative;
    height: auto !important;
    margin: 0 !important;
}

#push-down {
    background-color: var(--mid-2);
    height: 300px;
    margin: 0;
    padding: 0;
}

#section-aber-leicht-zu-vermeiden {
    background-color: var(--mid-2);
}

#sideways-scroll-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: black;
    height: auto;
    width: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    white-space: nowrap;
}

#imNorden {
    top: 0;
    position: relative;
    padding: 40px 0;
    background-color: var(--dark-3);
    text-align: center !important;
}

#imNorden img {
    max-width: 720px;
    border: 4px solid black;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#section-crowdfunding-steps {
    background-color: #a5a09c;
}

#section-crowdfunding-steps .columns-wrapper {
    display: flex;
    background: linear-gradient(to bottom,
     #a5a09c,
       var(--secondary-bg) 20%,
       var(--secondary-bg) 90%,
       var(--primary-bg) 100%);
}

figcaption.text-dark {
    color: black;
}

#section-crowdfunding-steps .left-column, .right-column {
    flex: 1;
}


#section-crowdfunding-steps .text-block-with-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#section-aber-leicht-zu-vermeiden .spacer-200 {
    background-color: var(--mid-2);
}

#section-aber-leicht-zu-vermeiden .spacer-40 {
    background-color: var(--mid-2);
}


@media (max-width: 768px) {
    #section-aber-leicht-zu-vermeiden h3 {
        padding: 30px;
        font-size: 2rem;
    }

    #section-aber-leicht-zu-vermeiden p {
        font-size: 1.2rem;
        padding: 16px !important;
    }
}

.columns-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 4vw, 50px);
    margin: 0 auto;
    width: 100%;
}

.left-column, 
.right-column {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 640px;
    flex: 1;
}

.left-column {
    justify-content: space-between;
    margin: 0;
}

.left-column > *:last-child {
    margin-bottom: 0;
}

.right-column {
    text-align: center;
}

/* ===== Image Styling ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.left-column img {
    margin-bottom: 30px;
}

.right-column img {
    margin: 0 auto;
    border: var(--dark-1) solid 2px;
}

/* ===== Typography ===== */
.right-column h3 {
    padding: 30px;
    font-size: 60px;
}

.right-column h2 {
    display: block;
    margin: 0 auto 30px;
}

.right-column p {
    display: block;
    margin: 0 auto 30px;
    max-width: 40ch;
    text-align: left;
    font-size: 1.2rem;
    padding: 1rem;
}

/* ===== Desktop Layout ===== */
@media (min-width: 769px) {
    .columns-wrapper {
        flex-direction: row;
    }
    
    .left-column {
        order: 1;
    }
    
    .right-column {
        order: 2;
    }
}

#aufwand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#aufwand-pro-foto-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--light-1);
    max-width: 100dvw;
}

#aufwand-pro-foto-top .text-black {
    text-align: center;
    color: black;
    width: 100%;
    margin-top: 20px;
    padding: 0;
}

#aufwand-pro-foto-top p {
    margin: 0 !important;
    padding: 0;
    color: black;
}

#aufwand-pro-foto-top h3 {
    font-size: 2.5rem !important;
    margin: 10px 10px 5px !important;
    padding: 0 !important;
}

#aufwand-pro-foto-top .bullet-list {
    margin-top: 0 !important;
    margin-right: 180px;
    text-align: left;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    z-index: 14;
}

#pointing {
    position: relative;
    top: 0;
    margin-top: 20px;
    margin-bottom: 40px;
    border: none;
}

#aufwand-pro-foto-bottom {
    border: 6px solid var(--accent-yellow);
    margin-top: 20px;
    background-color: var(--dark-3);
}

#aufwand-pro-foto-bottom p {
    text-align: left;
    color: var(--accent-yellow);
    max-width: 98vw;
}

@media (max-width: 767px) {
    #aufwand-wrapper {
        width: 100vw;
    }

    #aufwand-pro-foto-top,
    #aufwand-pro-foto-bottom {
        margin: 20px 0;
    }
}

#aufwand-pro-foto-top {
    margin-top: 40px;
}

#kartenspieler img {
    position: relative;
    top: 0;
    /* width: 100%; */
    max-width: 873px;
    height: auto;
    border: var(--dark-1) solid 2px;
}

#nehb-video-container, #caritas-video-container {
    position: relative;
    width: 100%;
    display: flex;
    margin: 10px 0;
}

#nehb-video, #caritas-video {
    width: 100%;
    max-width: 612px;
    height: auto;
}

.spacer-narrow {
    display: none; /* Hide by default */
    width: 100%;
}

#map-mockup {
    width: 100%;
    max-width: 720px !important;
    height: auto;
}

.image-rounded-corners img {
    border-radius: 30px;
    margin-top: 30px;
}

#right-column-retrosnaps img {
    width: 100%;
    max-width:873px;
}

.max-width-100 {
    max-width: 100%;
    height: auto;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* height: auto; */
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: blur(1px); /* Adjust the blur radius as needed */
}

.background-image404 {
    position: fixed; /* Fixed ensures it stays in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/content/photos/404_image.webp');
    background-size: cover;
    background-position: center;
    z-index: 0; /* Sends the background behind other content */
}

@media (max-width: 768px) {
    .background-image404 {
        background-position: 35% center; /* Slightly left of center */
    }
}

.darken-layer {
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    background-color: rgba(17, 16, 22, 1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}

.marquee-front {
    position: relative; /* Add this to ensure the darken-layer is positioned correctly */
    z-index: 2; /* Ensure it's above the darken-layer */
}

.marquee-front img {
    /* filter: sepia(100%) hue-rotate(180deg) saturate(70%) brightness(1); */
    /* filter: sepia(100%) saturate(40%); */
    transition: filter 0.3s;
    z-index: 3;
}

.marquee-front img:hover {
    filter: sepia(100%) hue-rotate(180deg) saturate(40%) brightness(1);
}

.marquee-mid img {
    /* filter: sepia(100%) hue-rotate(180deg) saturate(60%) brightness(1); */
    filter: sepia(100%) saturate(30%) brightness(1);
    transition: filter 0.3s;
}

.marquee-front img,
.marquee-mid img {
    transition: filter 0.3s;
}

.marquee-container-front {
    position: absolute;
    top: 350px;
    left: 0;
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Ensure no conflicting margins */
    padding: 0;
    -webkit-mask-image: linear-gradient (
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0)
    );
    mask-image: linear-gradient (
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0)
    );
    z-index: 4;
}

.marquee-container-mid {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 0;
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0)
    );
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0)
    );
    z-index: 3;
}

.marquee-front, .marquee-mid {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marquee-front, .marquee-mid a {
    cursor: pointer;
}

.marquee-front, .marquee-mid img {
    cursor: pointer;
}

.marquee-front {
    
    width: 400px;
    height: auto;
    left: max(calc(400px * 5), 100%);
    animation: scroll 54s linear infinite;
}

.marquee-mid {
    width: 320px;
    height: -1520px;
    
    left: max(calc(220px * 7), 100%);
    border-radius: 5px;
    animation: scroll-mid 120s linear infinite;
}

.marquee-mid > *:nth-child(3) {
    height: 512px !important;
    width: auto;
}



@keyframes scroll {
    to {
        left: -400px;
    }
}

@keyframes scroll-mid {
    to {
        left: -320px;
    }
}

#parallax-pic-front-1 {
    animation-delay: calc((54s / 5 * (5 - 1))*-1);
    
}

#parallax-pic-front-2 {
    
    animation-delay: calc((54s / 5 * (5 - 2))*-1);
}

#parallax-pic-front-3 {
    animation-delay: calc((54s  / 5 * (5 - 3))*-1); /* Corrected calculation */
}

#parallax-pic-front-4 {
    animation-delay: calc((54s  / 5 * (5 - 4))*-1);
}

#parallax-pic-front-5 {
    animation-delay: calc((54s / 5 * (5 - 5))*-1);
}

#parallax-pic-mid-1 {
    animation-delay: calc(120s / 6 * (6 - 1)*-1);
    display: flex;
    justify-content: flex-end;
    top: 10px;
}

#parallax-pic-mid-2 {
    animation-delay: calc((120s / 5 * (5 - 2))*-1);
}

#parallax-pic-mid-3 {
    top: 20px;
    animation-delay: calc((120s / 5 * (5 - 3))*-1);
}

#parallax-pic-mid-4 {
    animation-delay: calc((120s / 5 * (5 - 4))*-1);
}

#parallax-pic-mid-5 {
    animation-delay: calc((120s / 5 * (5 - 5))*-1);
    top: 0;
}




.marquee-front img {
    border-radius: 5px;
    width: 340px;
    height: auto;
}

.marquee-mid img {
    width: 220px;
    border-radius: 4px;
}

#parallax-pic-mid-5 img {
    width: 320px;
    height: auto;
}

#parallax-pic-mid-7 img {
    width: 500px;
}

#parallax-pic-mid-3 img {
    height: 512px;
    width: auto;
}

#parallax-pic-mid-4 img {
    width: 380px;
}


#RetroPicWall {
    position: relative;
    display: flex;
    top: -1560px;
    /* width: 100%; */
    min-height: 2000px;
    justify-content: center;
    align-items: center;
    background: var(--dark-2); /* Fallback background */
    z-index: -2;
}

#RetroPicWall .background-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 3000px;
    height: auto;
    z-index: -1;
}


#bahnhof-image {
    width: 100%;
    height: auto;
}

#bahnhof-little {
    margin-top: -20px;
    /* margin-bottom: 150px; */
}

#first-retro-snap-video {
    position: relative; /* Prevent overlapping behavior */
    margin-top: 0; /* Reset any existing margins */
    padding-top: 50px;
    z-index: 1;
    background-color: black !important;
    text-align: center; 
    margin: 0 auto;
}

#first-retro-snap-video h2 {
    font-size: 2rem;
    margin-top: 20px;
    padding: 50px;
    color: white;
    border-radius: 20px;
    background-color: var(--dark-1);
}


#section-was-machen-mit-fotos {
    position: relative;
    width: 100%;
    height: 2780px !important;
    display: none;
}

#parallax-container {
    position: relative;
    width: 100%;
    height: 420vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 5px solid black;
    background-color: var(--dark-2);
    z-index: 11;
}









/* Base styles - Mobile first (smallest screens) */
#Kamenz {
    /* position: relative; */
    position: absolute;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 640px;
    z-index: 10;
}

#wrapper-noch-gibt-es-viele {
    position: relative;
    left: 0;
    top: -800px;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    z-index: 20;
}

#content-container {
    position: relative;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0.7rem;
    box-sizing: border-box;
    z-index: 100;
}

.text-block-adaptive {
    position: relative;
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2ch;
    width: min(100%, 50ch);
    max-width: 100%;
    color: white;
    margin: 0;
    padding: 0;
    z-index: 100;
}

.text-block-adaptive p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    color: white;
}



/* Desktop - 1024px and up - 2 columns, image still above */
@media (min-width: 1024px) {
    #Kamenz {
        position: absolute;
        width: 640px;
        top: 800px;
    }

    #wrapper-noch-gibt-es-viele {
        margin-top: 440px;
    }

    .text-block-adaptive {
        grid-template-columns: repeat(2, minmax(30ch, 40ch));
        width: fit-content;
    }
}

@media (min-width: 1200px) {
    
    #content-container {
        width: calc(100vw - 640px);
    }
}

@media (min-width: 1302px) {
    .text-block-adaptive {
        grid-template-columns: repeat(2, minmax(30ch, 40ch));
    }
}










.text-bottom {
    color: black;
    color: transparent;
    -webkit-text-stroke: 2.5px black;
}

@media (min-width: 769px) {

    #crowdfunding-button-position-bottom {
        top: 10% !important;
    }
    
    .overlay-text h1 {
        margin-top: 60px !important;
    }

    .overlay-text h2 {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    #quote-7 {
        top: 900px;
    } 

    #bahnhof-image {
        width: 100%;
        height: auto;
    }

    #RetroPicWall {
        background: linear-gradient(180deg, black 5%, #282c39 14%);
    }

    #haushaltsaufloesung {
        margin-left: -200px;
        width: 150%;
    }
}

@media (max-width: 1024px) {
    .text-block-adaptive {
        grid-template-columns: 1fr;
        max-width: 50ch;
    }
}

@media (min-width: 1200px) {
    #Kamenz {
        top: 1200px;
    }

    #section-was-machen-mit-fotos {
        height: 2000px !important;
    }
}



@media (min-width: 1024px) {

    #text-wettlauf-wrapper {
        position: absolute;
        margin-top: -800px !important;
        left: 50%;
        transform: translateX(-50%);
    }  
    
    #text-wettlauf {
        position: absolute;
        top: 120px;
        width: 400px !important;
        left: 240px !important;
    }

    #text-wettlauf p {
        font-size: 1.5rem !important;
        text-align: justify;
    }

    #text-wettlauf h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) {

    /*this is working, but only affecting the outer part, letting the body peek through*/
    #section-was-machen-mit-fotos {
        height: 2600px !important;
        margin-bottom: 0 !important;
    }
}

#section-es-ist-aber-ein-wettlauf {
    align-items: stretch;
}

#section-es-ist-aber-ein-wettlauf {
    background: url('/content/photos/dumpster_1920x1080.jpg') center center / cover no-repeat;
    background-color: var(--mid-2);
    align-items: stretch;
}

#es-ist-aber-ein-wettlauf {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    height: auto;;
}

#h2-es-ist-aber-ein-wettlauf {
    margin-bottom: -10px;
    background-color: transparent;
}

#haushaltsaufloesung img {
    width: 250%;
    height: 400px;
}

.text-background-box {
    position: relative;
    top: 1vh;
    height: auto;
    z-index: 10;
}

#impressum strong {
    margin: 1.5rem 0.5rem 0.5rem;
}

#impressum p {
    max-width: 60ch;
    font-family: sans-serif !important;
    font-size: 1rem;
}

#ending-video {
    width: 100%;
    margin: 0;
}

#ending-video video {
    width: 100%;
    display: block;
}

#ending-video-image {
    width: 100%;
    margin: 0;
}

#ending-video-image img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.quotes-body {
    margin: 0;
    padding: 0;
    background-image: url('/content/photos/bg_Seebad_2048x2712.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.quote-carousel {
    position: absolute; /* Use absolute positioning */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-image {
    max-width: 800px;
    max-height: 1000px;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Adding shadow */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: var(--blue-2);
    z-index: 10;
}

/* Hover effect */
.arrow:hover {
    background-color: var(--accent-yellow);
    border-color: var(--blue-2);
}

.left-arrow {
    left: -60px;
    transform: translateY(-50%) rotate(180deg);
}

.right-arrow {
    right: -60px;
}

@media (max-width: 768px) {
     
    #crowdfunding-button-position-bottom {
        width: 90%;
        bottom: -16vh;
        left: 60%;
        transform: translateX(-50%);
    }

    .quote-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .quote-image {
        width: 94vw;
        margin: 0;
    }

    .arrow-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 50%;
        margin-top: 10px;
    }

    .arrow {
        position: relative;
        transform: none;
    }

    .left-arrow {
        transform: rotate(180deg);
    }

    #image-neukoelln {
        min-width: unset;
        max-width: 100%;
    }
    
    #kartenspieler, #geschwister {
        display: none;
    }

    #nehb-video, #caritas-video {
        margin-bottom: 100px;
    }

    .overlay-text {
        top: 20% !important;
    }

    .overlay-text h1 {
        font-size: 4rem !important;
    }

    #hero-button-bottom {
        width: 80vw !important;
    }

    .quotes-body {
        background-size: 220%;
        background-position: center 20%;
    }
    
    #haushaltsaufloesung {
        width: 250%;
        height: 400px;
    }

    #haushaltsaufloesung img {
        margin-left: -200px;
        width: 250%;
        height: 600px !important;
    }
    
    #image-mannheim-familie-1912 {
        position: relative;
        width: 100%;
        height: auto;
        max-width: 720px;
        margin: 0 auto;
        left: 0;
        transform: none;
    }

    .quotation-marks {
        left: 50px;
        width: 5rem !important;
        height: auto;
    }

    #scale-when-small {
        transform: scale(2);
        transform-origin: top left;
        height: auto;
        overflow: hidden;
    }
}

@media (min-width: 1200px) {

    .overlay-text h1 {
        font-size: clamp(3rem, 10vw, 7rem);
    }
}

.custom-line {
    border: none; /* Remove the default border */
    height: 2px; /* Set the height of the line */
    background-color: #333; /* Set the color of the line */
    width: 100%;
    margin: 20px 0;
}

#faq-bottom {
    background-color: #e8e7e5;
    border-top: 2rem solid var(--dark-3);
}

#faq-body {
    width: calc(100% - 60px); /* Subtracting twice the margin value */
    max-width: calc(100% - 60px); /* Subtracting twice the margin value */
    margin: 30px;
    overflow-x: hidden;
    overflow-y: auto; /* Ensure vertical scrollbar is always visible */
    /* stylelint-disable-next-line property-no-unknown */
    scrollbar-color: auto; 
    /* stylelint-disable-next-line property-no-unknown */
    scrollbar-width: auto;
}

/* CSS Feature Query for scrollbar-color */
@supports (scrollbar-color: auto) {
    #faq-body {
        scrollbar-color: #888 #ccc; /* Example colors */
    }
}

#faq-body p {
    font-size: 1.2rem;
    text-align: left;
}

#faq-body h2 {
    margin: 50px 0;
}

#faq-header {
    position: absolute;
    width: 100%;
    max-width: 100%;
    top: 1%;
    display: flex;
    flex-direction: column;
    /* padding-top: 150px; */
    align-items: center;
    text-align: center;
}

#faq-header h2 {
    font-size: clamp(1rem, 100px, 3rem) !important;
    border: var(--accent-yellow) solid 2px;
    text-align: center;
    text-shadow: 5px 5px 0px black;
}

#faq-header h3 {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 2rem !important;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0.6rem;
    box-shadow: 5px 5px 0px 0px black;
}


#section-faq-intro .text-block-with-headline p {
    margin-top: 3rem !important;
    text-align: left !important;
}

.text-yellow h2 {
    position: relative;
    top: -1000px !important;
}

.newsletter-container {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('content/photos/newsletter_background.webp') no-repeat center center fixed;
    background-size: cover;
    z-index: 5;
}


.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30ch;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.popup h2 {
    margin: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: center;
}

.popup p {
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center;
}

.popup input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

@media (max-width: 780px) {
    .popup {
        width: calc(100% - 3rem); /* Responsive width with gap */
        top: 65%; /* Moves the panel slightly down */
        transform: translate(-50%, -55%); /* Adjusts centering based on the new top position */
    }
}

.button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
}

#newsletterForm {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    background-color: var(--blue-3);
    color: white;
    border: none;
    border-radius: 5px;
}

#newsletterForm:hover {
    background-color: #0056b3;
}

#newsletterForm p {
    font-size: 1.1rem;
    text-align: left !important;
}

#newsletterForm .text-image-description {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    
    #faq-header h2 {
        font-size: clamp(1rem, 160px, 4rem) !important;
        margin: 0 auto;
        border: var(--accent-yellow) solid 2px;
        text-align: center;
    }
    
    #faq-header h3 {
        margin-top: 40px;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    
}




.highlight {
    background-color: var(--accent-yellow);
    color: black;
    padding: 0 5px;
    border-radius: 3px;
}

#web-app-installieren {
    background-color: black;
}

#about-header {
    width: 100%;
    padding-top: 30px;
}

.single-column .text-section.bg-dark-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

