/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Rubik", sans-serif;
    font-weight: lighter;
    background-color: #fff;
    color: #000;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.mainframe {
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
}
.TitlePicture {
    background-image: url("../--resources/pictures/CoverHome.png");
    background-size: cover;
    background-position: 50% 20%;
    height: 100vh;
    width: 100%;
    display: flex; 
    align-items: flex-end; /* fallback for flex children */
    position: fixed;    /* relative later */
    transition: 0.5s all ease;
    
}

.TitleText {
    color: black;
    text-align: left;
    font-size: 1.8em;
    font-weight: 500;
    line-height: 1;
    padding: 40px;
    border-radius: 0px 60px 0px 60px;
    position: absolute;
    left: 50%;
    bottom: 35%;
    transition: 1.2s bottom ease, 0.5s opacity ease;

}
.GottesdienstText{
    color: black;
    text-align: left;
    font-size: 1.8em;
    font-weight: 500;
    line-height: 1;
    padding: 40px;
    border-radius: 0px 60px 0px 60px;
    position: absolute;
    left: 50%;
    bottom: -50%;
    opacity: 100%;
    transition: 1.2s bottom ease, 0.5s opacity ease;

}

.GottesdienstText p{
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
    color: black;
    margin: 0 auto;
    max-width: 800px;
}
.round-button{
    margin-top: 5px;
    border: 2px solid black;
    color: black;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.5em;
    cursor: pointer;
    transition:  0.5s ease;
}
.round-button:hover {
    background-color: black;
    color: white;
}
    .scroll-spacer {
height: 2300px; width: 100%; margin: 0; padding: 0;    
}
.content-section{
    background-color: white; 
    position: relative; 
    z-index: 1; 
    width: 100vw; 
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    left: 0;
    overflow: hidden;
}

.content-vision{
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 100px;  
      
}
.content-vision h1 {
    position: absolute;
    width: 30%;
    text-align: center;
    font-size: 10em;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 10px;
    left: 9%;
}
.vision-image {
    margin-top: 200px;
    width: 35%;
    height: 380px;
    background-image: url('/--resources/pictures/visionIllustration.png'); /* Replace with your image path */
    background-size: 330px 380px;
    background-position: center;
    background-repeat: no-repeat;
    mask:
    radial-gradient(circle,#000,#0000 80%);
    mask-composite: exclude;
}
.vision-text {
    margin-top: 200px;
    letter-spacing: 3px;
    width: 50%;
    text-align: left;
    font-size: 2em;
    line-height:1.2em;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vision-text .p1{
    padding-left: 300px;
}
.vision-text .p2{
    padding-left: 400px;
}
.vision-btn{
    border: 2px solid black;
    color: black;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition:  0.5s ease;
    font-size:0.5em;
    width: 80%;
    margin-top:40px;
    display:block;
    margin-left:auto;
    margin-right:auto;
}
.vision-btn:hover {
    background-color: black;
    color: white;
}
.content-angebot{
    width: 100%;
    padding-top: 100px;    
}
.content-angebot h1 {
    width: 100%;
    text-align: left;
    font-size: 3em;
    margin-bottom: 20px;
    margin-left: 9%;

}
.content-angebot p {
    width: 30%;
    text-align: left;
    line-height: 1.5;
}

.angebot-wrapper {
    position: relative;
    width: 100%;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-arrow:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-arrow-left {
    left: 2%;
}

.scroll-arrow-right {
    right: 2%;
}

.scroll-arrow svg {
    stroke: currentColor;
}

.scroll-arrow:hover svg {
    stroke: #fff;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: 500;
    color: rgb(255, 255, 255);
    pointer-events: none;
    z-index: 9;
    animation: bounce 1.5s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-shadow: #000 1px 1px 4px;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-left {
    left: 7%;
}

.scroll-hint-right {
    right: 7%;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}

.scroll-hint-right {
    animation: bounceRight 1.5s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(10px);
    }
}

.angebot-container{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    padding-left: 9%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.angebot-container::-webkit-scrollbar {
    height: 8px;
}

.angebot-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.angebot-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.angebot-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.angebot-item{
    width: 450px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    text-align: left;
    
}

.angebot-item:hover {
    transform: translateY(-5px);
}

.angebot-item-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.angebot-item:hover .angebot-item-image {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.angebot-item h2 {
    color: #000;
    font-size: 1.5em;
    font-weight: 500;
    text-align: left;
    margin: 0;
    padding: 0 10px;
}

.angebot-item p {
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
    text-align: left;
    width: 100%;
}

.angebot-item .round-button {
    margin: 0 10px;
    font-size: 0.9em;
    width: 60%;
}

/* YouTube Section */
.content-youtube {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 50px;
    background-color: #f8f8f8;
}

.youtube-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.youtube-logo {
    width: 120px;
    height: auto;
}

.youtube-section {
    margin-bottom: 60px;
}

.youtube-section h1 {
    width: 100%;
    text-align: left;
    font-size: 3em;
    margin-bottom: 20px;
    margin-left: 9%;
}

.youtube-section h2 {
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: left;
    margin-left: 9%;
}

.podcast-section {
    margin-bottom: 60px;
}

.podcast-section h2 {
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: left;
    margin-left: 9%;
}

.podcast-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.podcast-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.podcast-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.podcast-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.podcast-badge {
    width: 200px;
    height: auto;
}

.podcast-link h3 {
    font-size: 1.3em;
    font-weight: 500;
    color: #000;
    text-align: center;
    margin: 0;
}

.podcast-link:hover h3 {
    color: #1DB954; /* Spotify green */
}

.podcast-item:last-child .podcast-link:hover h3 {
    color: #000; /* Keep black for Apple */
}

.youtube-videos-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    max-width: 100%;
}

.youtube-video-item {
    width: calc(33.333% - 20px);
    max-width: 400px;
    min-width: 280px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.youtube-video-item:hover {
    transform: translateY(-5px);
}

.youtube-video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.youtube-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.youtube-video-item:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.no-videos-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
}

.youtube-video-item h3 {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 500;
    text-align: left;
    color: #000;
    transition: color 0.3s ease;
}

.youtube-video-item:hover h3 {
    color: #FF0000;
}

.content-spende{
    width: 100%;
    padding-top: 100px;  
    text-align: center;
    margin-bottom: 100px;
}

.content-spende h1 {
    width: 100%;
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;

}
.content-spende p {
    width: 40%;
    text-align: center;
    line-height: 1.5;
    font-size: larger;
    margin: 0 auto;
    margin-bottom: 20px;

}
.three-column-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 2%;
    box-sizing: border-box;
    background-color: #f8f8f8;
}

.three-column-section .column {
    flex: 1;
    text-align: center;
}

.three-column-section .column p {
    line-height: 1.6;
}

.three-column-section .column img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 960px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .mainframe {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        box-sizing: border-box;
        position: relative;
        left: 0 !important;
    }
    
    .TitlePicture {
        height: 80vh;
        background-image: url("/--resources/pictures/CoverHome.png");
        background-size: cover;
        background-position: 40% 20%;
        background-repeat: no-repeat;
        margin-top: 100px;
        width: 100vw;
        left: 0;
        right: 0;
    }
    

    
    .TitleText {
        font-size: 1.4em;
        left: 33%;
        bottom: 30%;
        max-width: 90%;
        font-weight: 450;
    }
    
    .GottesdienstText {
        font-size: 1em;
        left: 33%;
        bottom: -50%;
        max-width: 90%;
    }
    .GottesdienstText h1 {
        font-size: 1.5em;
    }
    
    .GottesdienstText p {
        font-size: 0.3em;
        line-height: 1.4;
    }
    
    .round-button {
        font-size: 0.8em;
        padding: 8px 16px;
        margin-top: 8px;
    }
    

    .scroll-spacer {
        height: 2000px;     
}

    
    .content-section {
        width: 100vw !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        position: relative !important;
        transform: translateX(0) !important;
    }
    .vision-image {
    margin-top: 120px;
    width: 50%;
    height: 200px;
    background-size: 200px 200px;
    }
    .content-vision h1 {
        font-size: 5em;
        left: 10%;
    }
    .vision-text {
        margin-top: 150px;
        font-size: 1em;
        line-height: 1.2em;
    }

    .vision-text .p1{
    padding-left: 0px;
    }
    .vision-text .p2{
    padding-left: 0px;
    }
    .vision-btn{
        width: 80%;
        margin-left: 0px;
        margin-top:0px;
    }
    
    .angebot-container {
        flex-direction: row;
        gap: 20px;
        padding: 20px 0;
        padding-left: 10%;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
    }
    
    .angebot-item {
        width: 250px;
        min-width: 250px;
        flex-shrink: 0;
    }
    
    .angebot-item-image {
        height: 250px;
    }
    
    .angebot-item h2 {
        font-size: 1.2em;
    }

    .content-youtube {
        padding-top: 60px;
    }

    .youtube-logo {
        width: 80px;
    }
    .youtube-section h1 {
    width: 100%;
    text-align: center;
    font-size: 1.8em;
}

    .youtube-section h2 {
        font-size: 1.8em;
        margin-left: 10%;
    }

    .youtube-videos-container {
        gap: 15px;
        padding: 15px;
    }

    .youtube-video-item {
        width: calc(50% - 10px);
        min-width: auto;
    }

    .play-button-overlay {
        width: 50px;
        height: 36px;
    }

    .youtube-video-item h3 {
        font-size: 0.9em;
    }
    
    .podcast-section h2 {
        font-size: 1.8em;
        margin-left: 10%;
    }
    
    .podcast-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }
    
    .podcast-item {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .podcast-link {
        width: 100%;
        max-width: 400px;
    }
    
    .podcast-badge {
        width: 150px;
    }
    
    .podcast-link h3 {
        font-size: 1.1em;
    }

    .GottesdienstText {
        font-size: 1.2em;
        padding: 20px;
    }
    
    .GottesdienstText p {
        font-size: 0.85em;
    }
    
    .round-button {
        font-size: 0.7em;
        padding: 6px 14px;
    }
    
    .scroll-hint {
        font-size: 1em;
        font-weight: 600;
    }
    
    .scroll-hint-right {
        right: 12%;
        color: white;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }
    
    .scroll-arrow svg {
        width: 18px;
        height: 18px;
    }
    .content-spende p {
    width: 80%;

    }
    .three-column-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .three-column-section .column p {
        text-align: center !important;
            padding-bottom:40px;
    }
}



