/*
 * Custom CSS for SHIA e.V. design elements that Bootstrap utilities cannot match
 * Follows mobile-first approach with breakpoints aligned to Bootstrap
 */

/* ===== Custom Color Variables ===== */
:root {
    --shia-red: #E63946;
    --shia-red-rgb: 230, 57, 70;
    --shia-blue-primary: #457B9D;
    --shia-blue-primary-rgb: 69, 123, 157;
    --shia-blue: #2980B9;
    --shia-light-green: #E8F4F0;
    --shia-dark: #212529;
}

nav a {font-size: 1rem;  }

/* Remove Bootstrap focus/active borders & glows */
:focus,
:active {
    outline: none !important;
    box-shadow: none !important;
}
.btn:focus,
.btn:active,
.form-control:focus,
.form-control:active,
.nav-link:focus,
.nav-link:active,
.page-link:focus,
.page-link:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important; /* keeps normal border, removes blue */
}

.sticky-top {position: fixed!important;}

.container-cap {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
   padding-inline: 0
 /*   padding-inline: 5%;*/
}
.container-fluid{padding-inline: 5%;}
/* ===== Header ===== */
.bg-light-green {
    background-color: var(--shia-light-green) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 500px;
}

.hero-image {
    width: 100%;
    max-height: 890px;
    height: 890px;
    overflow: hidden;
}

.hero-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-position: 50% 25%;
}

.hero-content {
    position: relative;
    margin-top: -200px;
    z-index: 10;
}

.hero-text-box {
    background-color: rgba(255, 255, 255, 0.95) !important;
    max-width: 100%;
}

.hero-heading {
    font-family: 'Roboto Serif', serif;
    line-height: 1.4;
}

.beratungen-hero, .hero-section {padding-top: 128px;}

/* Hero text color utilities */
.text-primary-red {
    color: var(--shia-red);
}

.headline-text p {margin: 0!important;}

.text-primary-blue {
    color: var(--shia-blue-primary);
}

/* Responsive adjustments for hero */
@media (max-width: 991.98px) {
    .hero-content {
        margin-top: -150px;
    }
    .hero-image {
        max-height: 500px;
    }
    .hero-section, .beratungen-hero{padding-top: 88px}
}

@media (max-width: 767.98px) {
    .hero-content {
        margin-top: -120px;
    }

    .hero-text-box {
        padding: 2rem 1.5rem !important;
    }

    .hero-heading {
        font-size: 1.75rem !important;
    }

    .hero-image {
        max-height: 400px;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        margin-top: -80px;
    }

    .hero-text-box {
        padding: 1.5rem 1rem !important;
    }

    .hero-heading {
        font-size: 1.5rem !important;
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    .hero-image img {
        min-height: 300px;
    }
    .hero-section, .beratungen-hero{padding-top: 50px}
}

/* ===== Events Section ===== */
.events-heading {
    font-family: 'Roboto', sans-serif;
    color: var(--shia-blue-primary);
}

/* ===== Event Cards ===== */
.event-card {
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    min-height: 425px;
}

.event-card .card-body {
    background-color: var(--shia-red);
    border-radius: 0.38rem;
}

.event-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 2rem;
    letter-spacing: 0.03rem;
    text-align: center;
}

.event-date-box {
    position: relative;
    padding: 0.625rem;
}

.date-line-top,
.date-line-bottom {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
    margin: 0.625rem 0;
}

.event-date {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 3rem;
    text-align: center;
}
.event-datetime {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 3rem;
    text-align: center;
}

.event-time {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 2rem;
    letter-spacing: 0.03rem;
}

/* Make event cards more compact on mobile */
@media (max-width: 575.98px) {
    .event-card {
        min-height: 350px;
    }

}

/* ===== Services Section ===== */
.services-heading {
    font-family: 'Roboto', sans-serif;
    color: var(--shia-blue-primary);
}

/* ===== Service Cards ===== */
.service-card {
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    min-height: 425px;
}

.service-card .card-body {
    background-color: var(--shia-blue-primary);
    padding: 1.5rem;
    border-radius: 0.38rem;
}

.service-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 2rem;
    letter-spacing: 0.03125rem;
}

.service-icon {
    min-height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img,
.service-icon svg {
  /*  max-width: 209px;
    max-height: 201px;*/
    width: 270px;
    height: auto;
}

.service-icon svg {
    color: #FFFFFF;
    width: 100%;
    height: auto;
}

.service-consultant {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 2rem;
}

/* Make service cards more compact on mobile */
@media (max-width: 575.98px) {
    .service-card {
        min-height: 350px;
    }


}

/* ===== News/Blog Section ===== */
/* Section heading - H2 Medium: Roboto Medium 40px/48px (1.2 line-height) */
#news-title {border-bottom: 3px solid var(--shia-blue-primary);}

.news-section-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--shia-blue-primary);
}

.news-entry {
    border-bottom: 3px solid var(--shia-blue-primary);
}

/* Category tag - Roboto Black 20px/32px with underline */
.news-category span {
    display: inline-block;
    border-bottom: 3px solid var(--shia-blue-primary);
    padding-bottom: 0.625rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-blue-primary);
}

/* Article headline - Roboto Medium 40px/48px (1.2 line-height) */
.news-headline {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
   /* font-size: 2.5rem;*/
    line-height: 1.2;
    color: #ee5e69;
}

/* Tag styling - Roboto Black 20px/32px with underline */
.news-tag {
    display: inline-block;
    border-bottom: 3px solid var(--shia-blue-primary);
    padding-bottom: 0.625rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-blue-primary);
}

/* DateTime - Roboto Black 20px/32px with bottom border */
.news-datetime {
    padding-bottom: 0.625rem;
}

.news-datetime span {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-blue-primary);
    border-bottom: 3px solid var(--shia-blue-primary);
    padding-bottom: 0.625rem;
}

/* Body text - Paragraph: Roboto Regular 20px/32px (1.6 line-height) */
.news-body-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333333;
}
.news-body-text p:last-child {
    margin-bottom: 0;
}
/* Bootstrap doesn't have fw-black (900), so we add it */
.fw-black {
    font-weight: 900 !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .news-section-heading {
        font-size: 2rem;
        line-height: 1.2;
    }
}
@media (max-width: 575.98px) {
    .news-headline {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .news-body-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .news-datetime span,
    .news-category span,
    .news-tag {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ===== Button Styles ===== */
.btn-primary {
    background-color: var(--shia-red);
    border-color: var(--shia-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #D32F2F;
    border-color: #D32F2F;
}

.btn-outline-primary {
    color: var(--shia-red);
    border-color: var(--shia-red);
    border-width: 1.5px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--shia-red);
    border-color: var(--shia-red);
    color: white;
}

.btn-outline-secondary {
    color: var(--shia-blue-primary);
    border-color: var(--shia-blue-primary);
    border-width: 1.5px;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--shia-blue-primary);
    border-color: var(--shia-blue-primary);
    color: white;
}

.btn-outline-dark {
    border-width: 2px;
}

/* ===== Utility Classes ===== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Improve card hover states for better UX */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.event-card .card-body, .service-card .card-body, .angebote-card { transition: background-color 0.25s ease;}
.event-card .card-body:hover{ background-color: rgba(var(--shia-red-rgb), 0.92)}
.service-card .card-body:hover, .angebote-card:hover{ background-color: rgba(var(--shia-blue-primary-rgb), 0.92)}

      /* ===== Accessibility Enhancements ===== */
/* Ensure focus states are visible */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--shia-red);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--shia-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== Responsive Typography ===== */
/* Adjust heading sizes for better readability on mobile */
@media (max-width: 767.98px) {
    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .hero-image,
    header,
    footer,
    .btn {
        display: none;
    }

    .hero-content {
        margin-top: 0;
    }

    .card {
        break-inside: avoid;
    }
}

/* ===== Beratungen Page ===== */
/* Background color for Beratungen page */
.bg-light-beratungen {
    background-color: #F1FAEE !important;
}


.beratungen-hero-image {
    width: 100%;
    max-height: 670px;
    overflow: hidden;
    height: 670px;
}

.beratungen-hero-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.beratungen-hero-overlay {
    box-shadow: 1.5px 1.5px 3px 0 rgba(0, 0, 0, 0.25);
    background-color: var(--shia-red);
}

/* Hero title - Roboto Serif ExtraBold 40px/56px */
.beratungen-hero-title {
    font-family: 'Roboto Serif', serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.4;
}

/* Introduction text - Roboto Serif ExtraBold 40px/56px */
.beratungen-intro-text {
    font-family: 'Roboto Serif', serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.4;
    max-width: 1320px;
}

/* Accordion Section */

.accordion-button::after {
    display: none;
}
.beratungen-accordion {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Accordion buttons - Roboto Bold 32px/40px */
.beratungen-accordion-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    padding: 2.5rem;
    border: none;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beratungen-accordion-btn:focus {
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.beratungen-accordion-btn:not(.collapsed) {
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
}

/* Red accordion buttons */
.bg-primary-red {
    background-color: var(--shia-red) !important;
}

.beratungen-accordion-btn.bg-primary-red:hover,
.beratungen-accordion-btn.bg-primary-red:focus {
    background-color: #D32F2F !important;
}

/* Blue accordion buttons */
.bg-primary-blue {
    background-color: var(--shia-blue-primary) !important;
}

.beratungen-accordion-btn.bg-primary-blue:hover,
.beratungen-accordion-btn.bg-primary-blue:focus {
    background-color: #3A6A87 !important;
}

/* Accordion icon (circle) */
.beratungen-accordion-icon {
    width: 37px;
    height: 37px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Accordion arrow */
.beratungen-accordion-arrow {
    width: 44px;
    height: 23px;
    flex-shrink: 0;
    position: relative;
}

.beratungen-accordion-arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.beratungen-accordion-btn:not(.collapsed) .beratungen-accordion-arrow::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Accordion body */
.accordion-body {
    padding: 2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Beratungen accordion content styles */
.beratung-icon {
    max-width: 270px;
}

.beratung-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-blue-primary);
    margin-bottom: 0.5rem;
}

.beratung-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333333;
}

.beratung-text-small {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

.beratung-divider {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 0.75rem 0;
    opacity: 1;
}

.beratung-profile-item:last-child .beratung-divider {
    display: none;
}

/* White separator between accordion items */
.accordion-item {
    position: relative;
}

/*
.accordion-item:last-child::after {
    display: none;
}
*/
/* Responsive adjustments */
@media (max-width: 991.98px) {

    .beratungen-hero-image {
        max-height: 500px;
    }

    .beratungen-accordion-btn {
        font-size: 1.5rem;
        line-height: 1.25;
        padding: 1.5rem 1rem;
    }
    .beratungen-accordion-icon {
        width: 20px;
        height: 20px;

    }
}

@media (max-width: 767.98px) {
    .beratungen-hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .beratungen-intro-text {
        font-size: 1.75rem;
        line-height: 1.4;
    }


    .beratungen-accordion-arrow {
        width: 35px;
        height: 18px;
    }

    .accordion-body {
        padding: 1.5rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .beratung-text {
        font-size: 1rem;
    }

    .beratung-text-small {
        font-size: 0.875rem;
    }


    .beratungen-hero-image {
        max-height: 400px;
    }

    .beratungen-hero-image img {
        min-height: 300px;
    }
    .beratungen-accordion-btn {
        font-size: 1.25rem;

    }
}

@media (max-width: 575.98px) {
    .beratungen-hero-title {
        font-size: 1.5rem;
    }

    .beratungen-intro-text {
        font-size: 1.25rem;
    }

    .beratungen-accordion-btn {
        font-size: 1rem;
        padding: 1rem;
        font-weight: 400;
    }

    .beratungen-hero-image img {
        min-height: 250px;
    }
}

/* ===== Footer ===== */
/* Main footer background and structure */
.footer-main {
    background-color: #1a1a1a;
    color: white;
    position: relative;
    padding: 0;
    margin-top: 0;
}

.footer-content {
    padding: 2.5rem 0 2.5rem;
    background-color: #D32F2F;
}

/* Footer bottom stripe - R60 color */
.footer-bottom {
    background-color: #EF878E;
    height: 70px;
    width: 100%;
}

/* Logo and branding */
.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.2;
    color: white;
}

/* Caption text - Roboto Regular 12px/20px */
.footer-caption {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.67;
    color: white;
    margin-bottom: 0;
}

/* Footer buttons - Roboto Medium 16px/24px */
.footer-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.125rem;
    padding: 1rem;
    border-width: 1.5px;
    border-radius: 6px;
    text-align: center;
}

.footer-btn:hover,
.footer-btn:focus {
    background-color: white;
    color: #1a1a1a;
}

/* Social media links */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
    opacity: 0.7;
}

.footer-social-link svg {
    width: 48px;
    height: 48px;
}

/* Partner logos */
.footer-logo-partner img {
    max-width: 100%;
    height: auto;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.footer-logo-partner img:hover {
    filter: brightness(1.2);
}

/* Footer sections */
.footer-section {
    margin-bottom: 0;
}

.footer-bottom a{
    color: white!important;
    text-decoration: none;
}
.footer-bottom a:hover{
    text-decoration: none;
    color: var(--shia-blue-primary)!important;
}

/* Responsive adjustments for footer */
@media (max-width: 991.98px) {
    .footer-content {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-logo-text {
        font-size: 2rem;
    }

    .footer-bottom {
        height: 52px;
    }
}

@media (max-width: 767.98px) {
    .footer-content {
        padding: 2rem 0 2rem;
    }

    .footer-logo-text {
        font-size: 1.75rem;
    }

    .footer-btn {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .footer-bottom {
        height: 42px;
    }

}

@media (max-width: 575.98px) {

    .footer-logo-text {
        font-size: 1.5rem;
    }


    .footer-bottom {
        height: 40px;
    }
}

/* ===== Custom Button Variants ===== */
/* SHIA Blue Outline Button - Maps to brand blue with accessible hover states */
.btn-outline-shia-blue {
    --bs-btn-color: var(--shia-blue-primary);
    --bs-btn-border-color: var(--shia-blue-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--shia-blue-primary);
    --bs-btn-hover-border-color: var(--shia-blue-primary);
    --bs-btn-focus-shadow-rgb: 69, 123, 157;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3a6685;
    --bs-btn-active-border-color: #3a6685;
}

/* SHIA Red Solid Button - Maps to brand red with darker hover for feedback */
.btn-shia-red {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--shia-red);
    --bs-btn-border-color: var(--shia-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d32f3d;
    --bs-btn-hover-border-color: #d32f3d;
    --bs-btn-focus-shadow-rgb: 230, 57, 70;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c1242f;
    --bs-btn-active-border-color: #c1242f;
}

/* Override Bootstrap's .btn-lg font size to 1rem across all breakpoints */
.btn-lg {
    --bs-btn-font-size: 1rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 1rem;
    --bs-border-radius-lg: 0.38rem;
    --bs-btn-line-height: 1.5;
}

/* ===== Angebote Page ===== */
/* Section heading - Roboto Medium 40px/48px */
.angebote-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--shia-blue-primary);
}

/* Angebote Cards */
.bg-mitmachen{ background-color: #DBF1F2;}
.angebote-card {
    background-color: var(--shia-blue-primary);
    border-radius: 6px;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    padding: 4rem 3.25rem 2rem;
    text-align: center;
    min-height: 568px;
}

.angebote-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 237px;
}

.angebote-card-icon svg {
    max-width: 265px;
    max-height: 237px;
    width: 100%;
    height: auto;
}

.angebote-card-title-wrapper {
    margin-bottom: 1rem;
}

.angebote-card-line {
    border: 0;
    border-top: 2px solid white;
    margin: 0.625rem 0;
    opacity: 1;
}

.angebote-card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.2;
    color: white;
    margin: 0.625rem 0;
}

.angebote-card-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: white;
    text-decoration: none;
    margin-top: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.angebote-card-link:hover,
.angebote-card-link:focus {
    color: white;
    opacity: 0.8;
}

/* Responsive adjustments for Angebote page */
@media (max-width: 1410px){
    .angebote-card {
        min-height: unset!important;
        padding: 2rem;
    }
    .angebote-card-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 991.98px) {
    .angebote-card {
        padding: 3rem 2rem 1.5rem;
       /* min-height: 480px;*/
    }

    .angebote-card-icon {
        min-height: 180px;
    }

    .angebote-card-icon svg {
        max-width: 200px;
        max-height: 180px;
    }
}

@media (max-width: 767.98px) {
    .angebote-heading {
        font-size: 2rem;
    }

    .angebote-card {
        padding: 2rem 1.5rem 1.5rem;
        min-height: 420px;
    }

    .angebote-card-icon {
        min-height: 150px;
        margin-bottom: 1.5rem;
    }

    .angebote-card-icon svg {
        max-width: 160px;
        max-height: 150px;
    }

    .angebote-card-title {
        font-size: 1.75rem;
    }

    .angebote-card-link {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .angebote-heading {
        font-size: 1.75rem;
    }

    .angebote-card {
        padding: 1.5rem 1rem 1.5rem;
        min-height: 380px;
    }

    .angebote-card-icon {
        min-height: 120px;
    }

    .angebote-card-icon svg {
        max-width: 140px;
        max-height: 120px;
    }

    .angebote-card-title {
        font-size: 1.5rem;
    }
}

/* ===== Über uns Page ===== */
/* Background color for Über uns page - light teal/blue */
.bg-ueber-uns {
    background-color: #EEF8F8 !important;
}

/* ===== Veranstaltungen Page ===== */
/* Background color for Veranstaltungen page - light blue */
.bg-veranstaltungen {
    background-color: #D6EAF8 !important;
}

/* Filter Section */
.veranstaltungen-filter {
    max-width: 1320px;
}

.filter-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

/* Filter Tags */
.filter-tag {
    background-color: white;
    border: 1.5px solid var(--shia-blue-primary);
    color: var(--shia-blue-primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-tag:hover,
.filter-tag:focus,
.filter-tag[aria-pressed="true"] {
    background-color: var(--shia-blue-primary);
    color: white;
}
a.filter-tag {text-decoration: none;}
/* Search Inputs */
.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.search-input {
    padding-left: 2.5rem;
    border: none;
    background-color: white;
    box-shadow: inset 1.5px 1.5px 3px rgba(0, 0, 0, 0.15);
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    line-height: 2rem;
    color: var(--shia-blue-primary);
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.search-input::placeholder {
    color: var(--shia-blue-primary);
    opacity: 0.7;
}

.search-input:focus {
    box-shadow: inset 1.5px 1.5px 3px rgba(0, 0, 0, 0.15);
    border-color: var(--shia-blue-primary);
}

/* Focus / active */
.veranstaltungen-filter select:focus,
.veranstaltungen-filter input[type="search"]:focus,
.veranstaltungen-filter input[type="text"]:focus
{
    background-color: #EEF8F8;      /* light highlight */
    border-color: #f0ad4e;           /* SHIA-friendly accent */
    box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.25);
    outline: none;
    color: #333;
}
.aktuelles-filter select:focus,
.aktuelles-filter input[type="search"]:focus,
.aktuelles-filter input[type="text"]:focus
{
    background-color: #DBF1F2;
    border-color: #f0ad4e;           /* SHIA-friendly accent */
    box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.25);
    outline: none;
    color: #333;
}
.veranstaltungen-list .accordion-body {
    background-color: white!important;
}
.btn-filter {font-size: 1rem; line-height: 1.7rem;}

/* SHIA Blue Solid Button */
.btn-shia-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--shia-blue-primary);
    --bs-btn-border-color: var(--shia-blue-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3a6685;
    --bs-btn-hover-border-color: #3a6685;
    --bs-btn-focus-shadow-rgb: 69, 123, 157;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2d5570;
    --bs-btn-active-border-color: #2d5570;
}

/* Month Navigation */
.veranstaltungen-nav {
    max-width: 1320px;
}

.month-nav-btn {
    text-decoration: none;
}

.month-nav-btn:hover svg path,
.month-nav-btn:focus svg path {
    stroke: var(--shia-red);
}

.month-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
}

/* Event Accordion */
.veranstaltungen-list {
    max-width: 1320px;
}

/* Accordion item styling */
.event-accordion-item {
    border-radius: 0.38rem;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    overflow: hidden;
   border:none !important;
}

.event-accordion-item:nth-child(even) {
    border-left-color: var(--shia-blue-primary);
}

/* Accordion button - remove default Bootstrap styling */
.event-accordion-btn {
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
}

.event-accordion-btn:not(.collapsed) {
    background-color: white;
    box-shadow: none;
}

.event-accordion-btn:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Remove default Bootstrap accordion arrow */
.event-accordion-btn::after {
    display: none;
}

/* Accordion body styling
.event-accordion-item .accordion-body {
    background-color: #f8f9fa;
    border-top: 1px solid var(--shia-blue-primary);
    padding: 1.5rem 2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
}
*/
.veranstaltungen-list .accordion-body {
    padding: 0;
}
/* Accordion horizontal dividers */
.accordion-divider {
    border: 0;
    border-top: 1px solid var(--shia-red);
    margin: 1rem 0;
    opacity: 1;
}

.event-list-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-list-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Date Column */
.event-day-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
}

.event-date-large {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    border-bottom: 2px solid var(--shia-blue-primary);
    border-top: 2px solid var(--shia-blue-primary);
}

.event-time-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
}

/* Date separator horizontal lines */
.event-date-separator {
    width: 100%;
    height: 0;
    border-bottom: 2px solid var(--shia-red);
    margin: 0.75rem 0;
}

.event-accordion-item:nth-child(even) .event-date-separator {
    border-bottom-color: var(--shia-blue-primary);
}

/* Content Column */
.event-category {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.03125rem;
}

.event-list-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    margin: 0;
}

/* Donation Badge */
.donation-badge {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    border: 1.5px solid var(--shia-blue-primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Rotate accordion arrow when open */
.event-accordion-btn img {
    transition: transform 0.25s ease;
    transform: rotate(0deg);
}
/* Bootstrap removes .collapsed (and sets aria-expanded="true") when open */
.event-accordion-btn:not(.collapsed) img,
.event-accordion-btn[aria-expanded="true"] img {
    transform: rotate(180deg);
}

select#bezirk:has(option:checked:disabled) {
    color: rgba(69, 123, 157, 0.6); /* muted SHIA blue */
}

/* Real selections */
select#bezirk:not(:has(option:checked:disabled)) {
    color: var(--shia-blue-primary);
}
#eventRegistrationForm input.form-control.border-primary-blue, #eventRegistrationForm input.form-control:-webkit-autofill {
    color: var(--shia-blue-primary)!important;
}
#eventRegistrationForm input.form-control:-webkit-autofill,
#eventRegistrationForm input.form-control:-webkit-autofill:hover,
#eventRegistrationForm input.form-control:-webkit-autofill:focus,
#eventRegistrationForm textarea.form-control:-webkit-autofill,
#eventRegistrationForm textarea.form-control:-webkit-autofill:hover,
#eventRegistrationForm textarea.form-control:-webkit-autofill:focus,
#eventRegistrationForm select.form-select:-webkit-autofill,
#eventRegistrationForm select.form-select:-webkit-autofill:hover,
#eventRegistrationForm select.form-select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--shia-blue-primary) !important; /* actual text color */
    caret-color: var(--shia-blue-primary) !important;

    /* optional: keep your white background instead of Chrome yellow */
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;

    transition: background-color 9999s ease-in-out 0s; /* reduces autofill flash */
}

/* Responsive adjustments for Veranstaltungen page */

@media (max-width: 1300px ) {
    .btn.btn-lg.va-btn{
        font-size: 0.8rem;
        padding: 0.6rem .8rem;
    }
}

@media (max-width: 1200px) {
    .event-date-large {
        font-size: 1.75rem;
    }
    .event-list-title {
        font-size: 1.5rem;
    }
    .donation-badge {
        width: 70px;
        height: 70px;
        font-size: 0.625rem;
    }
    .btn.btn-lg.va-btn{
        font-size: 0.75rem;
        padding: 0.4rem .6rem;
    }
}

@media (max-width : 991.98px) {
    .event-date-large {
        font-size: 1.5rem;
    }
    .veranstaltungen-list .accordion-body p{font-size: 1.2rem!important;}
    .event-date-col {
        display: flex;
        align-items: baseline;   /* or center */
        justify-content: start;
        gap: 2rem;
        flex-wrap: nowrap;
        text-align: center;
    }

    /* spacers break horizontal layout → disable them */
    .event-date-col .spacer {
        display: none !important;
    }

    /* remove vertical padding used for stacked layout */
    .event-date-large-wrapper,
    .event-date-large {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important ;
        border-top: none !important ;
    }

    .event-day-label,
    .event-time-label,
    .event-date-large-wrapper {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .event-list-card {
        border-left-width: 4px;
    }


    .event-date-large {
        font-size: 1.5rem;
    }

    .event-list-icon {
        width: 60px;
        height: 60px;
    }

    .search-input {
        font-size: 1rem;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .event-date-large {
        font-size: 1.25rem;
    }

    .event-list-title {
        font-size: 1.5rem;
    }

    .donation-badge {
        width: 60px;
        height: 60px;
        font-size: 0.5rem;
    }
    .event-date-col {
        display: block;
        text-align: start;
    }
}

/* ===== Aktuelles Page ===== */
/* Highlight Badge - Circular red bordered badge */
.highlight-badge {
    display: inline-block;
}

.highlight-badge-inner {
    border: 2px solid var(--shia-red);
    border-radius: 50%;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
}

.highlight-badge-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--shia-red);
    text-transform: uppercase;
}

/* Filter section for Aktuelles page */
.aktuelles-filter {
    max-width: 1320px;
}

/* News list section */
.aktuelles-list {
    max-width: 1320px;
}

/* Responsive adjustments for highlight badge */
@media (max-width: 767.98px) {
    .highlight-badge-inner {
        width: 90px;
        height: 90px;
    }

    .highlight-badge-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .highlight-badge-inner {
        width: 80px;
        height: 80px;
    }

    .highlight-badge-text {
        font-size: 0.75rem;
    }
}

/* ===== Projekte Page ===== */
/* Introduction section */
.projekte-intro {
    max-width: 1320px;
}


/* Project card image */
.projekt-image img {
    border-radius: 6px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    aspect-ratio: 560 / 387;
    object-fit: cover;
}

/* Project title - Roboto Black 32px/40px */
.projekt-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1.25;
    color: var(--shia-blue-primary);
    margin-bottom: 0;
}

/* Responsive adjustments for Projekte page */
@media (max-width: 991.98px) {
    .projekt-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .projekt-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .projekt-title {
        font-size: 1.25rem;
    }
}

/* ===== Beratungen – Figma Modal (Beraterin Bio) ===== */
/* Circular blue background modal matching Figma design */

.modal-dialog {
    max-width: 1180px!important;}

.beraterin-modal-content {
    background-color: var(--shia-blue-primary);
    border-radius: 50%;
    border: none;
    color: white;
    padding: 5rem;
    aspect-ratio: 1 / 1;
    max-width: 1200px;
    margin: 0 auto;
}

.beraterin-modal-header {
    padding-bottom: 0.75rem;
}

.beraterin-modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.3;
    color: white;
    border-bottom: 2px solid white;
    padding-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.beraterin-modal-body {
    padding: 2rem 2.5rem;
    text-align: center;
}

.beraterin-bio-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.6;
    color: white;
}

.beraterin-modal-footer {
    padding-top: 0;
    padding-bottom: 1.5rem;
}

.beraterin-modal-footer .btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.125rem;
    border-width: 1px;
    padding: 0.5rem 2rem;
}
/* Rotate accordion arrow when open */
.beratungen-accordion-btn img{
    transition: transform 0.25s ease;
    transform: rotate(0deg);
}
/* Bootstrap removes .collapsed (and sets aria-expanded="true") when open */
.beratungen-accordion-btn:not(.collapsed) img,
.beratungen-accordion-btn[aria-expanded="true"] img {
    transform: rotate(180deg);
}
#registration-feedback {
    scroll-margin-top: 100px;
}

/* Responsive adjustments for modal */
@media (max-width: 1199px) {
    .beraterin-modal-content.veranstaltungen-modal-content {
        border-radius: 6px;
        max-width: 90vw;
        aspect-ratio: auto !important;   /* <- CRITICAL: remove 1:1 height limit */
        height: auto !important;
    }

    .beraterin-modal-content {
        padding: 1rem;
        border-radius: 6px;
        aspect-ratio: auto !important;
        max-width: 90vw!important;
        height: auto !important;
    }
}
@media (max-width: 991.98px) {


    .beraterin-modal-title {
        font-size: 2rem;
    }

    .beraterin-bio-text {
        font-size: 1.2rem;
    }

    .beraterin-modal-body {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .beraterin-modal-content {
        max-width: 90vw;
        padding: 0;
    }

    .beraterin-modal-title {
        font-size: 1.5rem;
    }

    .beraterin-bio-text {
        font-size: 1rem!important;
    }

    .beraterin-modal-body {
        padding: 1.25rem 1.5rem;
    }

    .beraterin-modal-footer .btn {
        font-size: 0.75rem;
        padding: 0.375rem 1.5rem;
    }
}

/* ===== Mobile Navigation Overlay ===== */
header.sticky-top {
    z-index: 1050; /* keep header above other content */
}
#mobileMenu.mobile-menu-overlay {
    position: fixed;
    /* adjust this top value to your header height */
    top: 126px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background-color: #A8DADC;
    /* layout inside the panel */
    /*  padding: 5rem 1.5rem 2rem; /* pushes links down a bit from top; tweak as needed */
}
#mobileMenu.mobile-menu-overlay.show {overflow-y: auto;}

.icon-hamburger{width: 43px; height: auto;}
/* Toggle via aria-expanded (Bootstrap sets this automatically) */
.navbar-toggler[aria-expanded="true"] .icon-hamburger {
    display: none;
}
.navbar-toggler[aria-expanded="true"] .icon-close {
    display: inline-block;
}
/*.mobile-nav-sublink.mobile-nav-sub-sublink {border-bottom: 1px solid var(--shia-blue-primary);}*/

.mobile-nav-link, .mobile-nav-sublink {
    text-decoration: none;
    display: inline-block;
}
.mobile-nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--shia-blue-primary);
    border-bottom: 1px solid var(--shia-blue-primary);
    padding-bottom: 0.25rem;
    transition: opacity 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--shia-blue-primary);
    opacity: 0.7;
}
.mobile-nav-item-first{
    border-top: 1px solid var(--shia-blue-primary);
}
.mobile-nav-sublist{
    border-bottom: 1px solid var(--shia-blue-primary);
}
.mobile-nav-sublink {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--shia-blue-primary);
    transition: opacity 0.2s ease;
}
.mobile-nav-sublink:hover,
.mobile-nav-sublink:focus {
    color: var(--shia-blue-primary);
    opacity: 0.7;
}
/* Hamburger / Close Icon Toggle */
.mobile-nav-icon {
    display: inline-block;
}
/* Close (X) icon base */
.icon-close {
    display: none;
    position: relative;
    width: 38px;
    height: auto;
}
/* Toggle via aria-expanded (Bootstrap sets this automatically) */
.navbar-toggler[aria-expanded="true"] .icon-hamburger {
    display: none;
}
.navbar-toggler[aria-expanded="true"] .icon-close {
    display: inline-block;
}

/* Responsive adjustments for mobile nav */
@media(max-width: 991.98px) {
    #mobileMenu.mobile-menu-overlay {
        top: 88px;
    }

    .mobile-nav-sublink {
        font-size: 1.125rem;
    }

    .mobile-nav-meta-link {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .mobile-nav-link {
        font-size: 1.25rem;
    }

    .mobile-nav-sublink {
        font-size: 1rem;
    }

    .mobile-nav-meta-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {

    .mobile-nav-link {
        font-size: 1.125rem;
    }

    .mobile-nav-sublink {
        font-size: 0.9375rem;
    }
    .logo-shia {max-width: 150px!important;}
    .icon-hamburger{max-width: 30px!important;}
    .icon-close{max-width: 26px!important;}
    #mobileMenu.mobile-menu-overlay {top: 50px;}
}

/* Swiper */
.events-swiper-wrapper {
    position: relative;
    width: 100%;
}

.btn-swiper-veranstaltungen {border:none!important;}

/* Swiper cards hover: prevent top clipping when card lifts */
.events-swiper {
    padding-top: 10px;   /* >= hover translateY distance */
    padding-bottom: 10px; /* also helps bottom shadow */
}
/* Optional: give each slide a bit of breathing room too */
.events-swiper .swiper-slide {
    padding-top: 5px;
    padding-bottom: 5px;
}


/* ===== Spenden Page ===== */

.bg-spenden {
   background-color: #EEF8F8; !important;
}
/* Border utility for SHIA blue - used in form fields */
.border-primary-blue {
    border-color: var(--shia-blue-primary) !important;
}

/* Ensure form controls maintain proper styling */
.form-control.border-primary-blue::placeholder {
    color: var(--shia-blue-primary);
    opacity: 0.5;
}

.form-control.border-primary-blue:focus {
    border-color: var(--shia-blue-primary);
    box-shadow: 0 0 0 0.2rem rgba(69, 123, 157, 0.25);
}

/* Custom radio and checkbox styling for Spenden page */
.form-check-input:checked {
    background-color: var(--shia-blue-primary);
    border-color: var(--shia-blue-primary);
}

.form-check-input:focus {
    border-color: var(--shia-blue-primary);
    box-shadow: 0 0 0 0.2rem rgba(69, 123, 157, 0.25);
}
.form-control#donation_amount_custom{ background-color: #EEF8F8; !important; }

.form-check-input#receiptNo,
.form-check-input#receiptYes,
.form-check-input#sepaAgree,
.form-check-input#fee5,
.form-check-input#fee2,
.form-check-input#halfyearly,
.form-check-input#yearly,
.form-check-input#privatperson,
.form-check-input#unternehmen,
.form-check-input#membershipAgree,
.form-check-input#quarterly,
    .form-check-input#kinderbetreuung_ja,
.form-check-input#kinderbetreuung_nein,
.form-check-input#bezahlung_paypal,
.form-check-input#bezahlung_ueberweisung,
.form-check-input#bezahlung_vor_ort
{
    border-color: var(--shia-blue-primary) !important; background-color: white; !important;
}
.form-check-input#receiptNo:checked,
.form-check-input#receiptYes:checked,
.form-check-input#sepaAgree:checked,
.form-check-input#fee5:checked,
.form-check-input#fee2:checked,
.form-check-input#halfyearly:checked,
.form-check-input#yearly:checked,
.form-check-input#privatperson:checked,
.form-check-input#unternehmen:checked,
.form-check-input#membershipAgree:checked,
.form-check-input#quarterly:checked,
.form-check-input#kinderbetreuung_ja:checked,
.form-check-input#kinderbetreuung_nein:checked,
.form-check-input#bezahlung_paypal:checked,
.form-check-input#bezahlung_ueberweisung:checked,
.form-check-input#bezahlung_vor_ort:checked
{
    background-color: var(--shia-blue-primary);
    border-color: var(--shia-blue-primary);
}

/* Prevent Bootstrap from turning valid checkboxes green */
.was-validated .form-check-input:valid ~ .form-check-label {
    color: var(--shia-blue-primary) !important;
}
.was-validated .form-check-input:valid {
    border-color: var(--shia-blue-primary);
    box-shadow: none;
}
#company_name:disabled {
    background-color: #f8f9fa;
    opacity: 0.4;
}
.modal-header-event-registration{border-bottom: 2px solid var(--shia-blue-primary);}
.btn-modal-close{background: none; border: none;}

.page-template-page-spenden .event-day-label{
    white-space: normal;
}

@media (max-width: 991px) {
    .fs-4 {
        font-size: 1.5rem!important;
    }
    .page-template-page-spenden .fs-2{
        font-size: 1.5rem!important;
    }
}
@media (max-width: 767px) {
    .page-template-page-spenden .fs-4 {
        font-size: 1.25rem!important;
    }
    .page-template-page-spenden .fs-2{
        font-size: 1.25rem!important;
    }
}
/* ===== Team Page Styles ===== */
/* Background color for Team page */
.bg-team {
    background-color: #EEF8F8 !important;
}

/* Team section heading - H1 Black: Roboto Black 40px/48px */
.team-section-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(173.273deg, #457B9D 0%, #346685 100.96%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.team-member-card-clickable {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.team-member-card-clickable:focus {
    outline: 2px solid var(--shia-blue-primary);
    outline-offset: 4px;
}
/* Team member card */
.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none!important;
}

/* Team member image wrapper */
.team-member-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;

    position: relative;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team member circular image */
.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team member info section */
.team-member-info {
    width: 100%;
    max-width: 370px;
}

/* Team member divider lines */
.team-member-divider {
    width: 100%;
    height: 2px;
    background-color: #457B9D;
}

/* Team member content (name and role) */
.team-member-content {
    padding: 1.75rem 0;
}

/* Team member name - H4: Roboto Regular 24px/36px with blue color */
.team-member-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #457B9D;
    margin-bottom: 0.25rem;
}

/* Team member role - H4: Roboto Regular 24px/36px */
.team-member-role {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #333333;
}
/* ===== Image-only overlay + scale ===== */

/* Ensure image can scale smoothly */
.team-member-image-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Overlay */
.team-member-image-wrapper::before{
    content: "";
    position: absolute;
    inset: 0;
    background: var(--shia-blue-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

/* Optional overlay label (remove if you don't want text) */
.team-member-image-wrapper::after{
    content: "Mehr erfahren";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    color: #fff;
    font-weight: 400;
    font-size: 1.5rem;
    padding-bottom: 20%;
    letter-spacing: 0.04em;
    /*text-transform: uppercase;*/
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
    pointer-events: none;
}

/* Trigger overlay/scale when hovering or keyboard-focusing the whole card */
.team-member-card-clickable:hover .team-member-image-wrapper::before,
.team-member-card-clickable:focus-visible .team-member-image-wrapper::before{
    opacity: 0.50;
}

.team-member-card-clickable:hover .team-member-image-wrapper::after,
.team-member-card-clickable:focus-visible .team-member-image-wrapper::after{
    opacity: 1;
}

.team-member-card-clickable:hover .team-member-image-wrapper img,
.team-member-card-clickable:focus-visible .team-member-image-wrapper img{
    transform: scale(1.05);
}
/* Responsive adjustments for Team page */
@media (max-width: 991.98px) {
    .team-section-heading {
        font-size: 2rem;
        line-height: 1.2;
    }

    .team-member-name {
        font-size: 1.25rem;
    }

    .team-member-role {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .team-section-heading {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .team-member-name {
        font-size: 1.125rem;
    }

    .team-member-role {
        font-size: 1.125rem;
    }

    .team-member-content {
        padding: 1.25rem 0;
    }
}

@media (max-width: 575.98px) {
    .team-section-heading {
        font-size: 1.5rem;
    }

    .team-member-name {
        font-size: 1rem;
    }

    .team-member-role {
        font-size: 1rem;
    }

    .team-member-content {
        padding: 1rem 0;
    }
}

/* ===== Jahresberichte – PDF preview ===== */
/* PDF preview wrapper - responsive container for PDF.js canvas */
.pdf-preview-wrapper {
    position: relative;
    width: 100%;
    background-color: #D9D9D9;
    border-radius: 6px;
    overflow: hidden;
    min-height: 400px;
}

/* PDF preview canvas - responsive scaling */
.pdf-preview-canvas {
   /* display: none; /* Hidden until rendered */
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Loading text styling */
.pdf-loading-text {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
.jahresbericht:last-child{padding-bottom: 0!important;margin-bottom: 0!important;}

/* Responsive adjustments for Jahresberichte page */
@media (max-width: 767.98px) {
    .pdf-preview-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .pdf-preview-wrapper {
        min-height: 250px;
    }
}

/* Jahresberichte – PDF viewer modal */
/* Full PDF.js viewer iframe inside modal */
#jahresberichtViewerModal .modal-content{background-color: unset!important;}

.jahresberichte-viewer-frame {
    min-height: 85vh;
    border: 0;
}

/* Tile button styling - clickable whole tile */
.jahresbericht-tile-btn {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jahresbericht-tile-btn:hover {
    transform: translateY(-2px);
}

.jahresbericht-tile-btn:hover .pdf-preview-wrapper {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jahresbericht-tile-btn:focus-visible {
    outline: 2px solid var(--shia-blue-primary);
    outline-offset: 4px;
}

/* Preview image styling */
.jahresbericht-preview {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jahresbericht-tile-btn:hover .jahresbericht-preview {
    transform: scale(1.02);
}

/* Responsive adjustments for modal viewer */
@media (max-width: 767.98px) {
    .jahresberichte-viewer-frame {
        min-height: 60vh;
    }
}

@media (max-width: 575.98px) {
    .jahresberichte-viewer-frame {
        min-height: 50vh;
    }
}

/* ===== Projekte Page ===== */
/* Project tile link wrapper */
.projekt-tile-link {
    transition: transform 0.3s ease;
}

.projekt-tile-link:hover,
.projekt-tile-link:focus {
    transform: translateY(-4px);
}

.projekt-tile-link:focus {
    outline: 2px solid var(--shia-blue-primary);
    outline-offset: 4px;
}

/* Project image wrapper with hover overlay */
.projekt-tile-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    aspect-ratio: 560 / 387;
}

.projekt-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

/* Hover overlay effect using pseudo-element */
.projekt-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--shia-red);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 6px;
}

/* Apply overlay on hover and focus */
.projekt-tile-link:hover .projekt-tile-overlay,
.projekt-tile-link:focus-visible .projekt-tile-overlay {
    opacity: 0.4;
}

/* Subtle zoom effect on image hover */
.projekt-tile-link:hover .projekt-tile-img,
.projekt-tile-link:focus-visible .projekt-tile-img {
    transform: scale(1.03);
}

/* Project caption - H3 Black: Roboto Black 32px/40px */
.projekt-tile-caption {
    font-family: 'Roboto', sans-serif;
   /* font-weight: 900;*/
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.25;
    color: var(--shia-blue-primary);
    text-align: center;
}

/* Responsive adjustments for Projekte page */
@media (max-width: 1199.92px) {
    .projekt-tile-caption {
        font-size: 1.5rem;
        line-height: 1.25;
    }
}

@media (max-width: 991.98px) {
    .projekt-tile-caption {
        font-size: 1.5rem;
        line-height: 1.25;
    }
}

@media (max-width: 767.98px) {
    .projekt-tile-caption {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .projekt-tile-image-wrapper {
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 575.98px) {
    .projekt-tile-caption {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .projekt-tile-image-wrapper {
        aspect-ratio: 4 / 3;
    }
}

/* ===== Projekt Detail Page (Figma) ===== */
/* Project title - Hero 1: Roboto Serif ExtraBold 64px/72px */
.projekt-title {
    font-family: 'Roboto Serif', serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.125;
    color: var(--shia-red);
}

/* Project subtitle - H3: Roboto Regular 32px/44px */
.projekt-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.375;
    color: var(--shia-blue-primary);
}

/* Project info card container */
.projekt-info-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Info card divider - 2px light green */
.projekt-info-divider {
    height: 2px;
    background-color: #457B9D;
    width: 100%;
}

/* Info card item */
.projekt-info-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Info label - Paragraph black: Roboto Black 20px/32px 0.5px tracking */
.projekt-info-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-red);
    margin-bottom: 0;
}

/* Info text - Paragraph: Roboto Regular 20px/32px */
.projekt-info-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 0;
}

/* Project image wrapper */
.projekt-image-wrapper {
    width: 100%;
}

.projekt-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* Content block headings - Same as info labels */
.projekt-content-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-red);
    margin-bottom: 0.5rem;
}

/* Content block text - Same as info text */
.projekt-content-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 1.5rem;
}
.projekt-content-block p{margin-bottom: 0!important;}

/* Responsive adjustments for Projekt detail page */
@media (max-width: 991.98px) {
    .projekt-title {
        font-size: 3.5rem;
        line-height: 1.15;
    }

    .projekt-subtitle {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    .projekt-info-divider-first{
        height: 0;
    }
}

@media (max-width: 767.98px) {
    .projekt-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .projekt-subtitle {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .projekt-info-label,
    .projekt-content-heading {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .projekt-info-text,
    .projekt-content-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 575.98px) {
    .projekt-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .projekt-subtitle {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .projekt-info-label,
    .projekt-content-heading {
        font-size: 1rem;
        line-height: 1.6;
    }

    .projekt-info-text,
    .projekt-content-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* ===== Leitbild page (Figma) ===== */
/* Heading divider - 2px solid line */
.leitbild-heading-divider {
    width: 3.1875rem;
    height: 0.125rem;
    background-color: #F1FAEE;
}

/* Hero heading - Hero 1: Roboto Serif ExtraBold 64px/72px */
.leitbild-hero-heading {
    font-family: 'Roboto Serif', serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.125;
}

/* Intro text - H3: Roboto Regular 32px/44px */
.leitbild-intro-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.375;
}

/* Body text - Paragraph: Roboto Regular 20px/32px */
.leitbild-body-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
}
.leitbild-body-text p:last-child{margin-bottom: 0!important;}
/* Networks section heading - H3: Roboto Regular 32px/44px */
.leitbild-networks-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.375;
}

/* Section subheading - Paragraph black: Roboto Black 20px/32px with 0.5px tracking */
.leitbild-section-subheading {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: #666666;
}

/* List styling - Paragraph: Roboto Regular 20px/32px */
.leitbild-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.leitbild-list li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 0.5rem;
}

/* Link styling */
.leitbild-link {
    color: #666666;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.leitbild-link:hover,
.leitbild-link:focus {
    color: var(--shia-blue-primary);
}

/* Logo placeholder button - Button: Roboto Medium 16px/24px */
.btn-logo-placeholder {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.125rem;
    padding: 1rem;
    border-width: 1.5px;
    border-radius: 0.375rem;
}

/* Responsive adjustments for Leitbild page */
@media (max-width: 991.98px) {
    .leitbild-hero-heading {
        font-size: 3.5rem;
        line-height: 1.15;
    }

    .leitbild-intro-text {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .leitbild-networks-heading {
        font-size: 1.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 767.98px) {
    .leitbild-hero-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .leitbild-intro-text {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .leitbild-body-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .leitbild-networks-heading {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .leitbild-section-subheading {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .leitbild-list li {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn-logo-placeholder {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .leitbild-hero-heading {
        font-size: 2rem;
        line-height: 1.25;
    }

    .leitbild-intro-text {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .leitbild-networks-heading {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .leitbild-section-subheading {
        font-size: 1rem;
        line-height: 1.6;
    }

    .leitbild-list li {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .btn-logo-placeholder {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* ===== Kontakt page ===== */
/* Main section headings - H2: Roboto Regular 32px/44px */
.kontakt-main-heading {
    font-family: 'Roboto Serif', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.375;
}

/* Contact info title - H3: Roboto Regular 24px/32px */
.kontakt-info-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.333;
}

/* Contact info details - Paragraph: Roboto Regular 20px/32px */
.kontakt-info-details {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.75rem;
}

/* Contact link styling */
.kontakt-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.kontakt-link:hover,
.kontakt-link:focus {
    opacity: 0.8;
}

/* Form input styling */
.kontakt-input,
.kontakt-textarea {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.kontakt-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Privacy text styling */
.kontakt-privacy-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Divider styling */
.kontakt-divider {
    border: 0;
    border-top: 2px solid var(--shia-blue-primary);
    margin: 0;
}

/* Newsletter image styling */
.kontakt-newsletter-image {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Responsive adjustments for Kontakt page */
@media (max-width: 991.98px) {
    .kontakt-main-heading {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .kontakt-info-title {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    .kontakt-info-details {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

@media (max-width: 767.98px) {
    .kontakt-main-heading {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .kontakt-info-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .kontakt-info-details {
        font-size: 1rem;
        line-height: 1.6;
    }

    .kontakt-input,
    .kontakt-textarea {
        font-size: 0.9375rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .kontakt-main-heading {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .kontakt-info-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .kontakt-info-details {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .kontakt-privacy-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}

/* ===== Satzung page ===== */
/* Section headings - Roboto Black 20px/32px with 0.5px tracking */
.satzung-section-heading {
    letter-spacing: 0.03125rem;
}

/* Numbered list styling - Paragraph: Roboto Regular 20px/32px */
.satzung-list {
    list-style-type: decimal;
    padding-left: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666666;
}

.satzung-list li {
    margin-bottom: 1rem;
}

/* Date styling at bottom - Roboto Black 20px/32px */
.satzung-date {
    letter-spacing: 0.03125rem;
}

/* Responsive adjustments for Satzung page */
@media (max-width: 767.98px) {
    .satzung-list {
        font-size: 1rem;
        line-height: 1.6;
    }
    .satzung-list li {
        margin-bottom: 0.31rem;
    }
}

@media (max-width: 575.98px) {
    .satzung-list {
        font-size: 0.9375rem;
        line-height: 1.6;
        padding-left: 1.25rem;
    }
}

.zivilgestaltung-content{
    font-size: 1.25rem; line-height: 1.6; color: #666666;
}
.zivilgestaltung-content p{margin:0!important;}
.zivilgestaltung-content ol {
    list-style-type: decimal; padding-left: 1.5rem;
    margin-bottom: 0;
}
.zivilgestaltung-content ol li{
    margin-bottom: 1rem;
}
.zivilgestaltung-content ol li:last-child{
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .zivilgestaltung-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    .zivilgestaltung-content ol li {
        margin-bottom: 0.31rem;
    }
}

@media (max-width: 575.98px) {
    .zivilgestaltung-content {
        font-size: 0.9375rem;
        line-height: 1.6;
        padding-left: 1.25rem;
    }
}

.btn.btn-lg.btn-outline-primary{
    --bs-btn-color: #E63946;
    --bs-btn-border-color: #E63946;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E63946;
    --bs-btn-hover-border-color: #E63946;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #E63946;
    --bs-btn-active-border-color: #E63946;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #E63946;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E63946;
    --bs-gradient: none;
}
.pagination,
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 0.5rem;          /* spacing between items */
    flex-wrap: nowrap;    /* force one row */
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    text-decoration: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.03125rem;
    color: var(--shia-red);
}
.page-numbers.current {color: var(--shia-blue-primary);}

.was-validated .form-control:valid, .form-control.is-valid {
    border-color: inherit !important;
    background-image: none !important;
    padding-right: inherit !important;
}
