:root {
    --primary-color: #4a6da7; 
    --secondary-color: #54b395; 
    --accent-color: #f39c12; 
    
    --dark-bg: #2c3e50; 
    --light-bg: #f8f9fa; 
    --alt-light-bg: #eef5f9; 
    
    --text-color: #333; 
    --light-text: #fff; 
    --footer-text: #c0c5ca; 
    --link-color: #3e8474; 
    
    --success-color: #28a745; 
    --info-color: #17a2b8; 
    --warning-color: #ffc107; 
    --danger-color: #dc3545; 
    
    --footer-bg: #1a2a3a; 
    --footer-lighter-bg: #20344b; 
    --tooltip-bg: rgba(42, 62, 80, 0.95); 
    --tooltip-text: #ffffff; 
    --tooltip-max-width: 300px; 
    --tooltip-border-radius: 6px; 
    
    --card-shadow: rgba(0, 0, 0, 0.1); 
    --hover-shadow: rgba(0, 0, 0, 0.15); 
    --card-border: #e8eef2; 
    
    --transition-speed: 0.3s;
}

html {
    /* overflow-x: hidden; */ /* Prevent horizontal scrolling - Removed for sticky nav fix */
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    /* overflow-x: hidden; */ /* Prevent horizontal scrolling - Removed for sticky nav fix */
}

a {
    color: var(--link-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.navbar {
    padding: 0.8rem 1rem;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

@media (max-width: 991.98px) {
    .navbar.sticky-top {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1030;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 12px 16px !important; 
        margin: 4px 0; 
        border-radius: 6px; 
        transition: background-color 0.3s ease;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-item .nav-link:active {
        background-color: rgba(74, 109, 167, 0.1);
    }
    
    /* Visual indicator for active page */
    .navbar-nav .nav-item .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(74, 109, 167, 0.1);
        border-left: 4px solid var(--primary-color); 
        padding-left: 12px !important; 
    }
    
    /* Animation for page indicator */
    .navbar-nav .nav-link {
        position: relative;
        transition: all var(--transition-speed) ease;
    }
    
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--primary-color);
    }
    
    /* Enhanced CTA visibility for mobile */
    .navbar-nav .nav-item:last-child {
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px !important;
        margin: 8px 0;
        font-weight: 500;
        font-size: 1.05rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }
    
    /* Menu item organization and grouping */
    .navbar-nav {
        padding: 10px 0;
    }
    
    /* Group site navigation links */
    .navbar-nav .nav-item:nth-child(1),
    .navbar-nav .nav-item:nth-child(2),
    .navbar-nav .nav-item:nth-child(3),
    .navbar-nav .nav-item:nth-child(4),
    .navbar-nav .nav-item:nth-child(5) {
        background-color: rgba(255, 255, 255, 0.02);
    }
    
    /* Add subtle separator after the main navigation group */
    .navbar-nav .nav-item:nth-child(4)::after {
        content: '';
        display: block;
        height: 1px;
        background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.15), rgba(0,0,0,0.05));
        margin: 10px 0;
    }
    
   
    /* Add slide-in animation for mobile menu */
    .navbar-collapse {
        transform: translateY(-10px);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.logo-scrolled .st1 { 
    animation: rotateCounterClockwise 30s linear infinite; 
    transform-origin: 51.6px 50px;
    will-change: transform; 
}
.logo-scrolled .st2 { 
    animation: rotateClockwise 20s linear infinite;
    transform-origin: 51.6px 50px;
    will-change: transform; 
}
.logo-scrolled .st3 { 
    animation: rotateCounterClockwise 10s linear infinite;
    transform-origin: 51.6px 50px;
    will-change: transform; 
}

.logo-scrolled .st1,
.logo-scrolled .st2,
.logo-scrolled .st3,
.header-background-svg .hbg-shape {
    will-change: transform;
    transform-style: preserve-3d; 
    z-index: 0; 
    pointer-events: none; 
}

.logo-scrolled .st5 {
    opacity: 0;
    pointer-events: none; 
}

.st5 {
   opacity: 1;
   transition: opacity var(--transition-speed) ease;
   will-change: opacity; 
}


.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-speed) ease;
    color: var(--text-color) !important;
}

.nav-link:hover, .nav-link.active { 
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #48a185 !important; 
    border-color: #48a185 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all var(--transition-speed) ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

header.bg-primary { 
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(135deg, var(--primary-color), #3a5d8f) !important;
    position: relative;
    overflow: hidden;
}


.header-background-svg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; 
    max-width: 500px; 
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.header-background-svg {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center; 
}

.header-background-svg .hbg-circle {
    fill: var(--light-text); 
    stroke: none;
    opacity: 0.05; 
}

.header-background-svg .hbg-shape {
    fill: none;
    stroke: var(--light-text); 
    opacity: 0.05; 
    stroke-linecap: round;
    stroke-width: 4px; 
    transform-origin: 51.6px 50px; 
    will-change: transform; 
}

.header-background-svg .hbg-shape-1 { 
    animation: rotateClockwise 20s linear infinite;
}
.header-background-svg .hbg-shape-2 { 
    animation: rotateCounterClockwise 30s linear infinite;
    
}
.header-background-svg .hbg-shape-3 { 
    animation: rotateCounterClockwise 10s linear infinite;
    
}

body.header-animation-paused .header-background-svg .hbg-shape {
    animation: none;
}


header.header-background-page {
    padding-top: 6rem; 
    padding-bottom: 6rem; 
}

.text-primary {
    color: var(--primary-color) !important;
}

section {
    padding: 4rem 0;
}

section.bg-light {
    background-color: var(--alt-light-bg) !important;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.team-img-container {
    position: relative; 
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: var(--alt-light-bg); 
    overflow: hidden; 
    margin-bottom: 1rem; 
}

.team-img {
    display: block; 
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    transition: transform var(--transition-speed) ease; 
}

.team-img-container:hover .team-img {
    transform: scale(1.05); 
}

#team .card-body p {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

.pulsar-cycle-container {
    width: 100%;
    max-width: 280px; 
    aspect-ratio: 1 / 1;
    margin: auto;
    position: relative; 
    z-index: 2; 
}

.pulsar-cycle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--mdb-primary-lighter); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulsar-phase {
    position: absolute;
    width: 80px; 
    height: 80px; 
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid var(--mdb-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px; 
}

.pulsar-phase:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pulsar-phase.active {
    background-color: var(--mdb-primary);
    color: #fff;
    border-color: var(--mdb-primary-dark); 
    box-shadow: 0 5px 15px rgba(var(--mdb-primary-rgb), 0.4);
    transform: scale(1.08); 
}

.pulsar-phase .phase-number {
    font-size: 1.3rem; 
    font-weight: bold;
    line-height: 1;
}

.pulsar-phase .phase-name {
    font-size: 0.7rem; 
    margin-top: 3px;
    line-height: 1.1;
}

.pulsar-phase.phase-1 { 
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pulsar-phase.phase-1.active { transform: translate(-50%, -50%) scale(1.08); }

.pulsar-phase.phase-2 { 
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}
.pulsar-phase.phase-2.active { transform: translate(50%, -50%) scale(1.08); }

.pulsar-phase.phase-3 { 
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}
.pulsar-phase.phase-3.active { transform: translate(-50%, 50%) scale(1.08); }

.pulsar-phase.phase-4 { 
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}
.pulsar-phase.phase-4.active { transform: translate(-50%, -50%) scale(1.08); }


.pulsar-cycle-center {
    position: absolute;
    
    z-index: 3; 
}

.process-background-svg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    max-width: 350px; 
    height: auto;
    z-index: 1; 
    pointer-events: none; 
    opacity: 0.15; 
}

.process-background-svg {
    width: 100%;
    height: auto;
    display: block;
}

.process-background-svg .hbg-shape-1 { animation: rotateClockwise 20s linear infinite; }
.process-background-svg .hbg-shape-2 { animation: rotateCounterClockwise 30s linear infinite; }
.process-background-svg .hbg-shape-3 { animation: rotateCounterClockwise 10s linear infinite; }

.process-background-svg .hbg-circle {
    fill: var(--primary-color); 
    stroke: none;
    opacity: 0.5; 
}

.process-background-svg .hbg-shape {
    fill: none;
    stroke: var(--primary-color); 
    opacity: 1; 
    stroke-linecap: round;
    stroke-width: 4px;
    transform-origin: 51.6px 50px;
    will-change: transform;
}

#benefits .card-body .btn-link {
    color: var(--link-color);
    text-decoration: none; 
    font-weight: 500;
}
#benefits .card-body .btn-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


.pulsar-content-block {
    
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-in-out; 
}

.phase-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px; 
    font-weight: bold;
    font-size: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


@media (max-width: 991.98px) { 
    /* Styles for swipe functionality on mobile */
    #pulsar-content-container {
        overflow-x: hidden; /* Prevent scrollbars during swipe */
        touch-action: pan-y; /* Allow vertical scroll while capturing horizontal swipe */
        /* Add a little padding to avoid content touching edges if needed */
        /* padding-left: 5px; */
        /* padding-right: 5px; */
    }

    .pulsar-cycle-container {
        max-width: 240px; 
        margin-bottom: 2rem;
    }
     .process-background-svg-container {
        max-width: 300px; 
        opacity: 0.1; 
    }
    .pulsar-phase {
        width: 70px; 
        height: 70px;
    }
     .pulsar-phase .phase-number { font-size: 1.1rem; }
     .pulsar-phase .phase-name { font-size: 0.6rem; }
}

@media (max-width: 767.98px) { 
     .pulsar-cycle-container {
        max-width: 200px; 
    }
     .process-background-svg-container {
        max-width: 250px;
    }
     .pulsar-phase {
        width: 60px;
        height: 60px;
    }
     .pulsar-phase .phase-number { font-size: 1rem; }
     .pulsar-phase .phase-name { font-size: 0.55rem; }
}

.glossary-term.tooltip-ready {
    position: relative;
    display: inline-block; 
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px dotted var(--secondary-color);
    cursor: help;
    
    transition: background-color var(--transition-speed) ease;
}

.glossary-term[data-mdb-original-title*="§"],
.glossary-term[data-mdb-original-title*="SGB"],
.glossary-term[data-mdb-original-title*="Gesetz"] {
    color: var(--text-color); 
    font-weight: normal; 
}

.glossary-term.tooltip-ready::after {
    content: '\f059'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; 
    font-size: 0.75em;
    
    
    
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1; 
    vertical-align: middle; 
    margin-left: 0.3em; 
}

.glossary-term:hover {
    background-color: rgba(84, 179, 149, 0.08); 
}

.glossary-term:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.bg-primary .glossary-term.tooltip-ready,
#kontakt .glossary-term.tooltip-ready, 
.footer-main .glossary-term.tooltip-ready {
    color: var(--light-text); 
    border-bottom-color: rgba(255, 255, 255, 0.5); 
}

.bg-primary .glossary-term.tooltip-ready::after,
#kontakt .glossary-term.tooltip-ready::after,
.footer-main .glossary-term.tooltip-ready::after {
    color: rgba(255, 255, 255, 0.7); 
    
    font-weight: 900; 
}

.tooltip {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    max-width: var(--tooltip-max-width) !important;
    z-index: 1080;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: var(--tooltip-border-radius);
    pointer-events: none;
    will-change: opacity;
    transform: translateZ(0);  
}

.tooltip.show {
    opacity: 1;
}

.tooltip .tooltip-inner {
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 12px 18px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--tooltip-border-radius);
    max-width: var(--tooltip-max-width);
    border-left: 3px solid var(--secondary-color);
}

.tooltip .tooltip-arrow {
    display: none; 
}

#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready  { 
    position: relative;
    display: inline-block; 
    border-bottom: 1px dotted var(--secondary-color); 
    cursor: help;
    text-decoration: none;
    
    transition: background-color var(--transition-speed) ease;
}

#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after  { 
    content: '\f059'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; 
    font-size: 0.75em;
    
    
    
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1; 
    vertical-align: middle; 
    margin-left: 0.3em; 
}

.bg-primary span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
#kontakt span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
.footer-main span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready {
    color: var(--light-text); 
    border-bottom-color: rgba(255, 255, 255, 0.5); 
}

.bg-primary span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
#kontakt span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
.footer-main span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after {
     color: rgba(255, 255, 255, 0.7); 
     font-weight: 900;
}

h3[data-mdb-toggle="tooltip"].tooltip-ready {
    
    
    position: relative; 
    display: inline-block;
}

h3[data-mdb-toggle="tooltip"].tooltip-ready::after {
    content: '\f059'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75em;
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.3em;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

[title]:not(.btn):not(.nav-link):not([class*="fa-"]):not(.navbar-brand):not(.accordion-button):hover {
    background-color: rgba(84, 179, 149, 0.08);
}

#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready:hover::after,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready:hover::after, 
h3[data-mdb-toggle="tooltip"].tooltip-ready:hover::after { 
    opacity: 1;
    transform: scale(1.1);
}

.accordion-item {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px !important;
} 

.accordion-item:hover { 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.accordion-header {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
    border-radius: 8px !important;
    background-color: #fff;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--secondary-color);
}

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

.accordion-button::after {
    transition: transform var(--transition-speed) ease;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.7;
}

.hover-shadow {
    transition: all var(--transition-speed) ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 16px var(--hover-shadow) !important;
    transform: translateY(-5px);
}

.hover-zoom {
    transition: transform var(--transition-speed) ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
}

.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

#kontakt {
    background: linear-gradient(135deg, var(--primary-color), #3a5d8f);
}

.shadow-1 {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12) !important;
}

.shadow-2 {
    box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .tooltip {
        max-width: 250px !important;
    }
    
    .footer-heading::after {
        margin: 0 auto;
        left: 0;
        right: 0;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links a {
        text-align: center;
        display: block;
    }
    
    /* Keep text left-aligned in specific footer columns */
    .col-6 .footer-links a,
    .col-12 .footer-links a {
        text-align: left;
        display: inline-block;
    }
    
    /* Keep headings left-aligned in the col-6 and col-12 columns */
    .col-6 .footer-heading,
    .col-12 .footer-heading {
        text-align: left;
    }
    
    .col-6 .footer-heading::after,
    .col-12 .footer-heading::after {
        margin: 0;
        left: 0;
        right: auto;
    }
    
    .footer-social-link {
        margin: 0 5px;
    }
}

/* Additional styles for very small screens */
@media (max-width: 575.98px) {
    .footer-links a {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .footer-heading {
        font-size: 1.1rem;
    }
    
    /* Adjust icon size for better appearance on small screens */
    .footer-links a i {
        font-size: 0.9rem;
    }
    
    /* Ensure partner logos section is left-aligned on small screens */
    .col-12 .d-flex.align-items-start {
        justify-content: flex-start;
    }
    
    .col-12 .text-footer-light {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .team-col {
        min-width: 200px; 
    }
}

.text-success {
    color: var(--success-color) !important;
}

.fa-fw {
    color: var(--secondary-color);
}

.process-step .bg-primary {
    background-color: var(--secondary-color) !important;
    background-image: none !important;
}

footer {
    color: var(--footer-text);
}

.footer-main {
    background-color: var(--footer-bg);
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(var(--footer-lighter-bg) 10%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.footer-bottom {
    background-color: var(--footer-lighter-bg); 
    font-size: 0.9rem;
    color: var(--footer-text);
}

.footer-brand h2 {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-footer-light {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links li {
    transition: all var(--transition-speed) ease;
    padding: 3px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text) !important;
    transition: all var(--transition-speed) ease;
}

.footer-social-link:hover {
    background-color: var(--secondary-color);
    color: var(--light-text) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-partner-logo {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

.footer-bottom .list-inline-item a {
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.footer-bottom .list-inline-item a:hover {
    color: var(--secondary-color);
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Enhanced Tooltip Styles */
/* Apply base styles only when tooltip is ready */
.glossary-term.tooltip-ready {
    position: relative;
    display: inline; /* Changed to inline to follow text flow */
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px dotted var(--secondary-color);
    cursor: help;
    transition: background-color var(--transition-speed) ease;
}

/* Selektoren für Gesetzesreferenzen, die bereits funktionieren */
.glossary-term[data-mdb-original-title*="§"], 
.glossary-term[data-mdb-original-title*="SGB"],
.glossary-term[data-mdb-original-title*="Gesetz"] {
    color: var(--text-color); /* Keep this rule for general law terms if needed, or remove if all glossary terms should inherit */
    font-weight: normal; /* Keep this rule for general law terms if needed, or remove if all glossary terms should inherit */
}

/* Apply icon only when tooltip is ready */
.glossary-term.tooltip-ready::after {
    content: '\f059'; /* Info-Circle-Icon aus Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* Use 900 for solid icons */
    font-size: 0.75em;
    /* position: absolute; Removed */
    /* right: 0.2em; Removed */
    /* top: 0.1em; Removed */
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1; /* Prevent icon from affecting line height */
    vertical-align: middle; /* Align icon vertically */
    margin-left: 0.3em; /* Add space between text and icon */
}

.glossary-term:hover {
    background-color: rgba(84, 179, 149, 0.08); /* Leichter Hintergrund bei Hover */
}

.glossary-term:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Make glossary terms white on dark backgrounds - only when ready */
.bg-primary .glossary-term.tooltip-ready,
#kontakt .glossary-term.tooltip-ready, /* Target specifically within the kontakt section */
.footer-main .glossary-term.tooltip-ready {
    color: var(--light-text); /* Use the light text variable */
    border-bottom-color: rgba(255, 255, 255, 0.5); /* Lighter dotted border */
}

.bg-primary .glossary-term.tooltip-ready::after,
#kontakt .glossary-term.tooltip-ready::after,
.footer-main .glossary-term.tooltip-ready::after {
    color: rgba(255, 255, 255, 0.7); /* Lighter icon */
    /* Vertical centering should be inherited, but ensure font-weight is consistent if needed */
    font-weight: 900; 
}

.tooltip {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    max-width: var(--tooltip-max-width) !important;
    z-index: 1080;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: var(--tooltip-border-radius);
    pointer-events: none;
    will-change: opacity;
    transform: translateZ(0);  /* Force GPU acceleration */
}

.tooltip.show {
    opacity: 1;
}

.tooltip .tooltip-inner {
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 12px 18px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--tooltip-border-radius);
    max-width: var(--tooltip-max-width);
    border-left: 3px solid var(--secondary-color);
}

.tooltip .tooltip-arrow {
    display: none; /* Cleaner look without arrow */
}

/* Style for generic SPAN elements with tooltips within specific sections - only when ready */
#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready /* Add other sections if needed */ { /* Increased specificity */
    position: relative;
    display: inline; /* Changed to inline to follow text flow */
    border-bottom: 1px dotted var(--secondary-color);
    cursor: help;
    transition: background-color var(--transition-speed) ease;
}

/* Apply icon to generic SPAN elements within specific sections only when tooltip is ready */
#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after /* Add other sections if needed */ { /* Increased specificity */
    content: '\f059'; /* Info-Circle-Icon aus Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* Use 900 for solid icons */
    font-size: 0.75em;
    /* position: absolute; Removed */
    /* right: 0.2em; Removed */
    /* top: 0.1em; Removed */
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1; /* Prevent icon from affecting line height */
    vertical-align: middle; /* Align icon vertically */
    margin-left: 0.3em; /* Add space between text and icon */
}

/* Add rules for generic SPAN [title] elements on dark backgrounds - only when ready */
/* Note: These likely don't need section IDs as .bg-primary/footer-main are specific enough */
.bg-primary span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
#kontakt span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready,
.footer-main span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready {
    color: var(--light-text); /* Use the light text variable */
    border-bottom-color: rgba(255, 255, 255, 0.5); /* Removed !important */
}

.bg-primary span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
#kontakt span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after,
.footer-main span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready::after {
     color: rgba(255, 255, 255, 0.7); /* Lighter icon */
     font-weight: 900;
}

/* Add specific rules for H3 tooltips if needed */
h3[data-mdb-toggle="tooltip"].tooltip-ready {
    /* Add border/cursor styles if desired for H3 */
    /* border-bottom: 1px dotted var(--secondary-color); */
    /* cursor: help; */
    position: relative; /* Needed for ::after positioning */
    display: inline-block;
}

h3[data-mdb-toggle="tooltip"].tooltip-ready::after {
    content: '\f059'; /* Info-Circle-Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75em;
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.3em;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* Hover effects should still apply even if tooltip isn't ready, but target the base element */
/* Keep generic hover for background color */
[title]:not(.btn):not(.nav-link):not([class*="fa-"]):not(.navbar-brand):not(.accordion-button):hover {
    background-color: rgba(84, 179, 149, 0.08);
}

/* Icon hover effect only applies when tooltip is ready - update selectors */
#benefits span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready:hover::after,
#process span[data-mdb-toggle="tooltip"]:not(.glossary-term).tooltip-ready:hover::after, /* Add other sections if needed */
h3[data-mdb-toggle="tooltip"].tooltip-ready:hover::after { /* Keep H3 hover general or make specific */
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced accordion styles */
.accordion-item {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px !important;
} /* Added missing closing brace */

/* Removed incomplete/duplicate accordion-button rule */

.accordion-item:hover { /* Moved this rule outside */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.accordion-header {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
    border-radius: 8px !important;
    background-color: #fff;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--secondary-color);
}

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

.accordion-button::after {
    transition: transform var(--transition-speed) ease;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.7;
}

/* Card hover effects */
.hover-shadow {
    transition: all var(--transition-speed) ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 16px var(--hover-shadow) !important;
    transform: translateY(-5px);
}

.hover-zoom {
    transition: transform var(--transition-speed) ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
}

/* Button ripple effect enhancement */
.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* CTA Section enhancement */
#kontakt {
    background: linear-gradient(135deg, var(--primary-color), #3a5d8f);
}

/* Material Design-inspired shadows */
.shadow-1 {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12) !important;
}

.shadow-2 {
    box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .tooltip {
        max-width: 250px !important;
    }
    
    .footer-heading::after {
        margin: 0 auto;
        left: 0;
        right: 0;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links a {
        text-align: center;
        display: block;
    }
    
    .footer-social-link {
        margin: 0 5px;
    }
}

/* Responsive adjustments for team column minimum width */
@media (min-width: 768px) {
    .team-col {
        min-width: 200px; /* Adjust this value as needed for desired minimum size */
    }
}


/* Apply light background color to the circular image in the contact section */
#kontakt img.rounded-circle {
    background-color: var(--alt-light-bg);
}

/* Sticky Nav Fix: Apply overflow only to index page content wrapper */
.home-page .page-content-wrapper {
    overflow-x: hidden; /* Prevent horizontal scrolling only on index page content */
}

/* Back to Top Button Styles */
.back-to-top-btn {
    display: none; /* Hidden by default on all screen sizes */
}

@media (min-width: 992px) {
    .back-to-top-btn {
        display: flex; /* Display as flex container only on desktop */
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px; /* Increased size slightly */
        height: 50px;
        background-color: rgba(var(--primary-color-rgb, 74, 109, 167), 0.8); /* Use primary color with opacity */
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity var(--transition-speed) ease, 
                    visibility var(--transition-speed) ease, 
                    transform var(--transition-speed) ease,
                    background-color var(--transition-speed) ease;
        will-change: opacity, visibility, transform;
    }

    .back-to-top-btn:hover {
        background-color: var(--primary-color); /* Solid color on hover */
    }

    .back-to-top-btn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .progress-ring {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg); /* Start progress from the top */
    }

    .progress-ring__bg,
    .progress-ring__progress {
        fill: none;
        stroke-width: 3; /* Adjusted stroke width */
    }

    .progress-ring__bg {
        stroke: var(--footer-lighter-bg); /* Lighter background for the ring */
        opacity: 0.5;
    }

    .progress-ring__progress {
        stroke: var(--secondary-color); /* Use secondary color for progress */
        stroke-linecap: round; /* Rounded ends for the progress line */
        transition: stroke-dashoffset 0.1s linear; /* Smooth progress update */
        will-change: stroke-dashoffset;
    }

    .back-to-top-icon {
        color: var(--light-text);
        font-size: 1.2rem; /* Adjusted icon size */
        position: relative; /* Ensure icon is above SVG */
        z-index: 1;
    }
}
