/*
Theme Name: Bürgerhaus Löwen
Theme URI: https://kaos.de
Author: Dennis Hüttner / KAOS Werbeagentur
Author URI: https://kaos.de
Description: Custom WordPress Theme für die Spendenkampagne des Bürgerhaus Löwen in Kißlegg. Alle Sektionen als Gutenberg-Blocks verfügbar. Entwickelt von KAOS/Carbunus Werbeagentur GmbH.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buergerhaus-loewen
Tags: block-patterns, custom-blocks, block-editor, custom-menu, featured-images, full-width-template, theme-options, gutenberg, tailwindcss

KAOS/Carbunus Werbeagentur GmbH
Poststr. 11
88239 Wangen im Allgäu
Telefon: +49 7522 78922-0
E-Mail: huettner@kaos.de
*/

/* CSS Variables */
:root {
    --Section-Padding-padding-section-large: 96px;
    --color-primary-green: #27801B;
    --color-dark-green: #1a5c3a;
    --color-orange: #F29100;
    --color-light-green: #C6D65D;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    justify-content: center;
}

body {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

* {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
}

#spenden {
    background-color: #fff;
    z-index: 0;
}

.section-padding {
    padding-top: var(--Section-Padding-padding-section-large, 64px);
    padding-bottom: var(--Section-Padding-padding-section-large, 64px);
}

/* Spenden Stand House Animation */
.spenden-stand {
    clip-path: polygon(46% 0%, 52% 0%, 89% 30%, 90% 37%, 89% 42%, 90% 36%, 91% 38%, 92% 40%, 93% 41%, 95% 44%, 96% 45%, 97% 46%, 99% 48%, 99% 48%, 98% 49%, 96% 50%, 96% 53%, 96% 69%, 96% 67%, 96% 71%, 96% 71%, 96% 74%, 96% 78%, 96% 82%, 96% 86%, 96% 89%, 96% 90%, 96% 93%, 96% 96%, 94% 96%, 88% 96%, 83% 96%, 80% 96%, 79% 96%, 73% 96%, 69% 96%, 66% 96%, 62% 96%, 4% 96%, 4% 89%, 4% 88%, 4% 71%, 4% 49%, 4% 50%, 2% 49%, 1% 48%, 3% 46%, 4% 44%, 6% 42%, 9% 37%, 9% 37%, 10% 31%, 10% 30%);
    background: linear-gradient(to top, #fff 0%, #fff 0%, transparent 0%, transparent 100%);
    transition: background 0.5s ease;
}

.progress-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-top: 2px dashed rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    transition: bottom 1s ease;
}

@keyframes slideUp {
    from { bottom: 0%; opacity: 0; }
    to { opacity: 1; }
}

.progress-line-animated {
    animation: slideUp 3.5s ease-out;
}

@keyframes fillHouse {
    from {
        background: linear-gradient(to top, #fff 0%, #fff 0%, transparent 0%, transparent 100%);
    }
}

.house-fill-animated {
    animation: fillHouse 4s ease-out forwards;
}

.progress-line-label {
    position: absolute;
    left: -180px;
    font-size: 0.875rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile: Box-Style für Progress Labels */
@media (max-width: 768px) {
    .progress-line-label {
        left: 50%;
        transform: translateX(-50%);
        top: -35px;
        color: rgb(39, 128, 27);
        background: rgba(255, 255, 255, 0.9);
        padding: 6px 12px;
        border-radius: 4px;
        font-weight: 600;
    }
}

/* Background Image Effect */
.wp-block-buergerhaus-loewen-donation-form {
    position: relative;
}

.wp-block-buergerhaus-loewen-donation-form:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("assets/images/Image-1_shrink.png") right center no-repeat;
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.wp-block-buergerhaus-loewen-donation-form > * {
    position: relative;
    z-index: 1;
}

/* Counter and Fame sections with decorative borders */
#counter, #fame {
    position: relative;
}

#counter:before, #fame:before {
    z-index: 3;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    top: -2px;
    width: 100%;
    height: 24px;
    content: '';
    background: url(assets/images/footer_zacken.svg) no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
}

#counter:after, #fame:after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    width: 100%;
    height: 24px;
    content: '';
    background: url(assets/images/footer_zacken.svg) no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
    z-index: 3;
}

/* Scroll to Top Button */
.scroll-to-top {
    background-color: #F29100;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #d47e00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 145, 0, 0.3);
}

/* Footer Copyright */
.footer-copyright {
    background-color: #C6D65D;
    color: #1a5c3a;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #27801B 0%, #F29100 100%);
    z-index: 100;
    transition: width 0.1s ease;
}

/* Active Navigation Link */
nav a.active {
    color: #27801B;
}

/* Dynamic Navigation Underline */
nav ul {
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: -12px;
    left: 0;
    height: 3px;
    background: #F29100;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
    display: block;
}

.nav-underline.active {
    opacity: 1;
}

/* Counter Animation Enhancement */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.counter-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Smooth sticky navigation */
nav {
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobileMenu.open {
    max-height: 300px;
}

/* Hero Slider Styles */
.keyvisual-slider,
.keyvisual-slider_individuell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    width: 100%;
}

.keyvisual-slider.container {
    padding-left: 0;
    padding-right: 0;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    box-sizing: border-box;
    height: 100%;
}

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

@media (max-width: 560px) {
    .slide img {
        min-height: 480px;
        object-fit: cover;
    }
}

.caption-item {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 20;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.caption-inner {
    background: var(--color-primary-green, #27801B);
    color: #fff;
    padding: 1.25rem 1.25rem 3.5rem 1.25rem;
    width: 100vw;
    max-width: 100%;
}

@media (min-width: 768px) {
    .caption-inner {
        width: 520px;
    }
}

.caption-inner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .caption-inner h1 {
        font-size: 2.5rem;
    }
}

.caption-inner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.slider-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    min-width: 120px;
}

.stat-box .number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-box .label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.caption-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.button-white {
    background: white;
    color: #27801B;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    transition: all 0.15s ease-in-out;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.button-white:hover {
    background: #F29100;
    color: white;
}

.slider-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: flex-end;
}

.nav-btn {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    background: rgba(198, 214, 93, 0.95);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.nav-btn:hover {
    background: rgba(198, 214, 93, 1);
}

@media (max-width: 768px) {
    .nav-btn {
        width: 48px;
        height: 48px;
    }
}

.caption-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 25;
}

@media (max-width: 768px) {
    .caption-dots {
        display: none;
    }
}

.dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.dot.active {
    opacity: 1;
    transform: scale(1.1);
}

.keyvisual-slider_individuell .caption-inner {
    width: 100%;
}

/* Background Logo - Fixed and Central */
body::after {
    content: "";
    position: fixed;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 600px;
    background: url(assets/images/logo_bg.svg) center center no-repeat;
    background-size: 450px auto;
    opacity: 1;
    filter: contrast(400%) brightness(300%) saturate(150%);
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: multiply;
}

/* Wall of Fame Hover Effect */
#donorsGrid > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#donorsGrid > div:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

footer h3.wp-block-heading{
font-weight: 700;
font-size: 1.25rem;
line-height: 1.75rem;
margin-bottom: 1rem;
}

footer .footer-widget.widget_block.widget_text{
color: rgb(209, 213, 219);
font-size: 14px;
line-height: 20px;
}

.receipt-header-top-wrap {
	background-color: #fff !important;
	border: 2px solid  var(--givewp-primary-color);
}

