.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.content {
    padding: 4rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-menu a {
    text-decoration: none;
    color: var(--color-text-main);    
    font-weight: 500;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#nav-menu a:hover {
    background-color: rgba(67, 187, 187, 0.12);
    color: #0f434f;
    transform: translateY(-1px);
}

#nav-menu a[aria-current="page"] {
    background-color: rgba(67, 187, 187, 0.12);
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(4, 58, 111, 0.16);
}

#nav-menu a[aria-current="page"]:hover {
    background-color: rgba(38, 149, 149, 0.134);
    color: var(--color-primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown > a::after {
    content: "▾";
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 280px;
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(45, 27, 105, 0.10);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(45, 27, 105, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-main);
    text-decoration: none;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: rgba(184, 217, 212, 0.35);
    color: var(--color-text-main);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
    transform: rotate(180deg);
}


.button-spenden {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ee93a2, #e68d9c);
    box-shadow: 0 10px 24px rgba(217, 72, 95, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button-spenden:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #ee93a2, #e68d9c);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(217, 72, 95, 0.36);
}

.button-spenden:focus-visible {
    outline: 3px solid rgba(232, 93, 117, 0.28);
    outline-offset: 3px;
}

.button-spenden[aria-current="page"] {
    color: #ffffff;
    background: linear-gradient(135deg, #ee93a2, #e68d9c);
    box-shadow: 0 10px 24px rgba(217, 72, 95, 0.28);
}

#nav-menu a.button-spenden,
#nav-menu a.button-spenden:hover {
    color: #fff;
    background: linear-gradient(135deg, #ee93a2, #e68d9c);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    position: relative;
}

.lang-switcher button {
     border: 1px solid rgba(45, 27, 105, 0.12);
    background-color: var(--color-white);
    color: var(--color-text-main);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-switcher button:hover {
    background-color: #f7d6eeb0;
    color: var(--color-text-main);
    border-color: #ad86a3b0;
    transform: translateY(-1px);
}

.lang-switcher--dropdown .lang-switcher-toggle {
    min-width: 56px;
    text-align: center;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(45, 27, 105, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(45, 27, 105, 0.14);
    z-index: 1100;
}

.lang-switcher.open .lang-switcher-menu {
    display: block;
}

.lang-switcher-menu li {
    margin: 0;
}

.lang-option {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-main);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
    background-color: #f7d6eeb0;
    border-color: rgba(45, 27, 105, 0.12);
}

.hamburger {
    display: none;
    border: none;
    background-color: #b8d9d4;
    color: var(--color-white);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 18px #b8d9d4;
}

.hamburger:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);

}

.site-footer {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    padding: 4rem 2rem 2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08)),
        radial-gradient(circle at 12% 20%, rgba(255, 107, 157, 0.22) 0 11%, transparent 12%),
        radial-gradient(circle at 85% 18%, rgba(78, 205, 196, 0.20) 0 10%, transparent 11%),
        radial-gradient(circle at 25% 82%, rgba(255, 206, 86, 0.18) 0 12%, transparent 13%),
        radial-gradient(circle at 82% 76%, rgba(123, 97, 255, 0.18) 0 12%, transparent 13%),
        conic-gradient(
            from 220deg at 50% 50%,
            rgba(255, 107, 157, 0.14),
            rgba(255, 196, 0, 0.12),
            rgba(78, 205, 196, 0.12),
            rgba(123, 97, 255, 0.12),
            rgba(255, 107, 157, 0.14)
        ),
        linear-gradient(135deg, #fdf7fa, #f6fffe);
    border-top: 1px solid rgba(45, 27, 105, 0.08);
    isolation: isolate;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.site-footer::before {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -100px;
    background:
        conic-gradient(
            from 35deg,
            rgba(255, 0, 128, 0.22),
            rgba(255, 170, 0, 0.20),
            rgba(255, 230, 90, 0.16),
            rgba(0, 210, 255, 0.18),
            rgba(130, 95, 255, 0.20),
            rgba(255, 0, 128, 0.22)
        );
    clip-path: polygon(50% 0%, 72% 14%, 96% 18%, 84% 42%, 100% 62%, 74% 72%, 84% 96%, 56% 86%, 50% 100%, 30% 84%, 4% 92%, 16% 64%, 0% 44%, 18% 18%);
    transform: rotate(-16deg);
    filter: blur(1px);
}

.site-footer::after {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -150px;
    background:
        conic-gradient(
            from 120deg,
            rgba(78, 205, 196, 0.18),
            rgba(0, 153, 255, 0.16),
            rgba(162, 89, 255, 0.18),
            rgba(255, 107, 157, 0.18),
            rgba(255, 205, 86, 0.16),
            rgba(78, 205, 196, 0.18)
        );
    clip-path: polygon(50% 0%, 64% 12%, 88% 8%, 80% 34%, 100% 50%, 80% 68%, 90% 94%, 62% 84%, 50% 100%, 34% 86%, 8% 92%, 18% 66%, 0 50%, 18% 28%, 10% 8%, 38% 14%);
    transform: rotate(18deg);
    filter: blur(1px);
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1132px;
    margin: 0 auto;
    padding: 2rem 2rem 1.2rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(45, 27, 105, 0.10);
    backdrop-filter: blur(10px) contrast(0.95);
    -webkit-backdrop-filter: blur(10px) contrast(0.95);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(45, 27, 105, 0.10);
}

.footer-column {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #5c4c57;
}

.footer-logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.08);
}

.footer-column h3 {
    margin-bottom: 1.2rem;
    font-size: 1.35rem;
    color: #8f3f74;
}

.footer-column p,
.footer-column li,
.footer-column a,
.footer-bottom p,
.footer-bottom-links a {
    color: #5f5660;
    line-height: 1.8;
    font-size: 1.02rem;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a,
.footer-bottom-links a {
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-column a:hover,
.footer-bottom-links a:hover {
    color: #2d1b69;
}

.footer-contact {
    margin-bottom: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    font-size: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}



.main-btn {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.85rem 1.2rem;
    background-color: var(--color-primary);
    color: #000000;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 22px rgba(235, 112, 6, 0.2);
}

.main-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}


@media (max-width: 1100px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
        background: var(--color-white);
        border: 1px solid rgba(45, 27, 105, 0.08);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(45, 27, 105, 0.08);
        gap: 0.5rem;
    }

    #nav-menu.open {
        display: flex;
    }

    #nav-menu a {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        background-color: rgba(60, 3, 11, 0.08);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: flex-start;
    }

    .lang-switcher-menu {
        left: 0;
        right: auto;
    }

    .logo a {
        font-size: 1rem;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .dropdown-menu {
        position: static;
        min-width: unset;
        padding: 0.5rem 0 0 0.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-dropdown > a::after {
        margin-left: 0.35rem;
    }
}

@media (max-width: 768px) {
    main,
    .content {
        padding: 2rem 1rem 3rem;
    }

    .site-footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-links {
        gap: 1.2rem;
    }

    .footer-logo {
        font-size: 1.4rem;
    }
}
