/* ==========================================================================
   zentrum.jugendhilfe - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #1e3a7f;
    --color-primary-dark: #162c60;
    --color-accent: #e02e0f;
    --color-accent-hover: #c42810;
    --color-secondary: #54b09f;
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-gray: #6c757d;
    --color-text: #1a1a1a;
    --color-link: #c0392b;
    --color-border: #dee2e6;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin-top: 15px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

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

/* Brand Text */
.brand-zentrum {
    color: var(--color-primary);
    font-weight: 700;
}

.brand-dot-inline {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    margin: 0 2px 0 0;
    position: relative;
    bottom: 0;
}

.brand-jugendhilfe {
    color: var(--color-accent);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all var(--transition-normal);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Sticky Sidebar
   -------------------------------------------------------------------------- */
.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding: 15px 10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.sidebar-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    width: 85px;
}

.sidebar-btn i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sidebar-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#mainNav {
    background-color: var(--color-primary);
    padding: 15px 0;
    transition: all var(--transition-normal);
}

#mainNav.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand .brand-zentrum {
    color: #ffffff;
    font-weight: 700;
}

.navbar-brand .brand-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    margin: 0 2px 0 0;
    font-size: 0;
    position: relative;
    bottom: 5px;
}

.navbar-brand .brand-jugendhilfe {
    color: var(--color-accent);
    font-weight: 700;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.hero-logo-img {
    max-width: 350px;
}

.footer-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.spenden-signet {
    max-width: 150px;
    margin-bottom: 15px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-white) !important;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent) !important;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Hero Section - Bubble Layout (wie Bilddatei1.jpg)
   -------------------------------------------------------------------------- */
.hero-section {
    background: var(--color-white);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Hero Video Hintergrund */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

/* Wenn Video läuft, das statische Hintergrundbild im Hero ausblenden */
#hero.bg-vignette::before {
    opacity: 0;
}

/* Gebäude-Hintergrund mit Vignette-Effekt */
.bg-vignette {
    position: relative;
    overflow: hidden;
}

.bg-vignette::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}

.bg-vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 65% 60% at 50% 50%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 0.8) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.bg-vignette > .container {
    position: relative;
    z-index: 2;
}

/* Unterschiedliche Hintergrundbilder pro Section */
#hero.bg-vignette::before {
    background-image: url('../images/gebaeude.jpg');
}

#ueber-zentrum.bg-vignette::before {
    background-image: url('../images/wohngruppen/Eingang.jpeg');
}

#wir-leisten.bg-vignette::before {
    background-image: url('../images/wohngruppen/WohnzimmerEK.jpg');
}

#spenden.bg-vignette::before {
    background-image: url('../images/wohngruppen/EsszimmerEK.jpg');
}

#kontakt.bg-vignette::before {
    background-image: url('../images/wohngruppen/Wohnzimmer.jpeg');
}

.hero-section .row {
    min-height: calc(100vh - 180px);
}


/* Links: Logo Bereich */
.hero-left {
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-logo-img {
    max-width: 450px;
    width: 100%;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--color-gray);
    font-weight: 400;
    margin-top: 25px;
    line-height: 1.6;
    max-width: 400px;
}

.btn-hero {
    width: 100%;
    max-width: 400px;
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Rechts: Bubble/Counter Wrapper */
.countdown-wrapper {
    position: relative;
    height: 730px;
    width: 300px;
    margin: 0 auto;
}

/* Einzelne Bubbles */
.bubble {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(235, 235, 235, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.bubble:hover {
    transform: scale(1.05);
}

.bubble-prefix {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: 2px;
}

.bubble-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #d63031;
    line-height: 1;
}

.bubble-text {
    font-size: 0.8rem;
    color: var(--color-gray);
    line-height: 1.3;
    margin-top: 5px;
}

/* Positionierung der Bubbles - versetzt und gleichmäßig überlappend */
.bubble-1 {
    top: 0;
    left: 0;
    z-index: 1;
}

.bubble-2 {
    top: 120px;
    left: 110px;
    z-index: 2;
}

.bubble-3 {
    top: 240px;
    left: 0;
    z-index: 3;
}

.bubble-4 {
    top: 350px;
    left: 110px;
    z-index: 4;
}

.bubble-5 {
    top: 460px;
    left: 0;
    z-index: 5;
}

.bubble-6 {
    top: 590px;
    left: 130px;
    width: 150px;
    height: 150px;
    z-index: 6;
    padding: 0;
    overflow: hidden;
}

.bubble-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   News Section
   -------------------------------------------------------------------------- */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center 30%;
    background-color: var(--color-light);
}

.news-image.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-light) 0%, #e0e0e0 100%);
}

.news-image.placeholder-image::after {
    content: 'Bild';
    color: var(--color-gray);
    font-size: 0.9rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h5 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 0;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   About Zentrum Section
   -------------------------------------------------------------------------- */
#ueber-zentrum .lead {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 500;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--color-accent);
    padding: 20px;
    background: var(--color-light);
    border-left: 4px solid var(--color-accent);
    margin: 20px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.gebaeude-image img {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Ueber uns Section (Wohngruppen & Team)
   -------------------------------------------------------------------------- */
.wohngruppe-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition-normal);
}

.wohngruppe-card:hover {
    box-shadow: var(--shadow-md);
}

.wohngruppe-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.wohngruppe-card h4 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.wohngruppe-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.wohngruppe-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.wohngruppe-list li:last-child {
    border-bottom: none;
}

/* Wohngruppen Carousel */
.wohngruppen-carousel {
    margin-bottom: 20px;
}

.wohngruppen-carousel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.wohngruppen-carousel .carousel-control-prev-icon,
.wohngruppen-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 20px;
}

/* Team Section */
.team-section {
    padding-top: 40px;
}

.team-icon-circle {
    width: 90px;
    height: 90px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-icon-circle i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.team-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Team Tabs Navigation */
.team-tabs-wrapper {
    margin-bottom: 10px;
}

.team-tabs {
    gap: 8px;
    padding: 0;
    list-style: none;
}

.team-tab {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.team-tab i {
    font-size: 1rem;
    color: var(--color-accent);
}

.team-tab:hover {
    border-color: var(--color-primary);
    background: var(--color-light);
}

.team-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.team-tab.active i {
    color: var(--color-white);
}

.team-contact-line {
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.team-contact-line i {
    color: var(--color-primary);
}

.team-abd-card {
    text-align: center;
}

.team-abd-photo-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.team-abd-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: rgba(30, 58, 127, 0.08);
    border-radius: 50%;
    border: 3px solid rgba(30, 58, 127, 0.15);
}

.team-abd-photo {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 15px auto;
    z-index: 1;
}

.team-abd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-abd-info {
    background: var(--color-primary);
    padding: 20px 15px;
    border-radius: var(--radius-md);
    margin-top: -30px;
    padding-top: 40px;
    min-height: 120px;
}

.team-abd-info h5 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 5px;
}

.team-abd-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.team-abd-quali {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Wir leisten Section (Services)
   -------------------------------------------------------------------------- */
/* Service Icons Row */
.service-icons-row {
    margin-bottom: 50px;
}

.service-icon-card {
    text-align: center;
    padding: 20px 10px;
}

.service-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--color-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all var(--transition-normal);
}

.service-icon-circle i {
    font-size: 2rem;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.service-icon-card:hover .service-icon-circle {
    background: var(--color-accent);
    transform: scale(1.1);
}

.service-icon-card:hover .service-icon-circle i {
    color: var(--color-white);
}

.service-icon-card span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Services Accordion */
.services-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.services-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    background-color: var(--color-white);
    padding: 20px 25px;
}

.services-accordion .accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.services-accordion .accordion-button:focus {
    box-shadow: none;
}

.services-accordion .accordion-button::after {
    background-size: 1rem;
}

.services-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.service-icon {
    font-size: 1.3rem;
    margin-right: 15px;
    color: var(--color-accent);
}

.accordion-button:not(.collapsed) .service-icon {
    color: var(--color-white);
}

.services-accordion .accordion-body {
    padding: 25px;
}

.details-box {
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.details-box h5 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.details-box ul {
    margin: 0;
    padding-left: 20px;
}

.details-box li {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Aufnahme Section
   -------------------------------------------------------------------------- */
.criteria-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition-normal);
}

.criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.criteria-icon {
    width: 80px;
    height: 80px;
    background: var(--color-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition-normal);
}

.criteria-icon i {
    font-size: 2rem;
    color: var(--color-gray);
}

.criteria-card:hover .criteria-icon {
    background: var(--color-accent);
}

.criteria-card:hover .criteria-icon i {
    color: var(--color-white);
}

.criteria-card h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.criteria-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 0;
}

.jugendamt-info {
    max-width: 800px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Spenden Section
   -------------------------------------------------------------------------- */
.spenden-info {
    background: var(--color-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.spenden-iban {
    font-family: var(--font-heading);
}

.spenden-iban .label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.spenden-iban .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
}


/* --------------------------------------------------------------------------
   Jobs Section
   -------------------------------------------------------------------------- */
.job-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.job-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   Kontakt Section
   -------------------------------------------------------------------------- */
.contact-card {
    text-align: center;
    padding: 30px;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    height: 100%;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.contact-card h5 {
    margin-bottom: 15px;
}

.contact-card p {
    margin: 0;
    color: var(--color-gray);
}

.contact-card a {
    color: var(--color-accent);
}

/* Ansprechpartner */
.ansprechpartner-card {
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-left: 4px solid var(--color-accent);
}

.ansprechpartner-card h5 {
    margin-bottom: 5px;
}

.ansprechpartner-card .role {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.ansprechpartner-card p {
    margin: 0;
    font-size: 0.9rem;
}

.ansprechpartner-card i {
    color: var(--color-accent);
    margin-right: 8px;
}

.ansprechpartner-card.with-photo {
    text-align: center;
    padding-top: 30px;
}

.ansprechpartner-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--color-light);
    transition: all var(--transition-normal);
}

.ansprechpartner-photo:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.ansprechpartner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ansprechpartner-card.with-photo .role {
    display: block;
    margin-bottom: 15px;
}

.ansprechpartner-card.with-photo p {
    text-align: left;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.footer h5 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 20px;
}

.footer-legal-link:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Legal Pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal-page {
    padding-top: 120px;
    min-height: calc(100vh - 200px);
}

.legal-content {
    margin-top: 30px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-light);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.info-block {
    margin-bottom: 25px;
}

.info-block h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.info-block p {
    color: var(--color-text);
    line-height: 1.7;
}

.info-block ul {
    padding-left: 20px;
    margin-top: 10px;
}

.info-block li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-header {
    background: var(--color-primary);
    color: var(--color-white);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--color-white);
}

.modal-body .form-label {
    font-weight: 600;
    color: var(--color-primary);
}

.modal-body .form-control {
    border-radius: var(--radius-md);
    border-color: var(--color-border);
    padding: 12px 15px;
}

.modal-body .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 108, 78, 0.1);
}

/* News Modal */
.news-modal .modal-header {
    background: var(--color-primary);
    padding: 20px 25px;
}

.news-modal .modal-title {
    color: var(--color-white);
    margin: 0;
}

.news-modal-date {
    display: block;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.news-modal .modal-body {
    padding: 0;
}

.news-modal-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.news-modal-content {
    padding: 30px;
}

.news-modal-content .lead {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.news-modal-content h6 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.news-modal-content p {
    color: var(--color-text);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero responsive - Tablet */
    .hero-section {
        padding-top: 100px;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
        align-items: center;
    }

    .hero-logo-img {
        max-width: 280px;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hero {
        max-width: 280px;
    }

    .countdown-wrapper {
        height: 640px;
        width: 240px;
        margin: 0 auto;
    }

    .bubble {
        width: 150px;
        height: 150px;
        padding: 15px;
    }

    .bubble-number {
        font-size: 2.2rem;
    }

    .bubble-text {
        font-size: 0.7rem;
    }

    .bubble-prefix {
        font-size: 0.7rem;
    }

    /* Bubble Positionen - überlappendes Zigzag wie Desktop */
    .bubble-1 { top: 0; left: 0; }
    .bubble-2 { top: 100px; left: 90px; }
    .bubble-3 { top: 200px; left: 0; }
    .bubble-4 { top: 300px; left: 90px; }
    .bubble-5 { top: 400px; left: 0; }
    .bubble-6 { top: 500px; left: 55px; width: 130px; height: 130px; }

    .navbar-collapse {
        background: var(--color-primary);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
    }

    .nav-link {
        padding: 12px 15px !important;
        margin: 5px 0;
    }

    .team-tabs {
        gap: 6px;
    }

    .team-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .team-tab span {
        display: none;
    }

    .team-tab i {
        margin: 0;
        font-size: 1.1rem;
    }

    .team-tab.active span {
        display: inline;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-left {
        text-align: center;
        margin-bottom: 40px;
        align-items: center;
    }

    .hero-logo-img {
        max-width: 220px;
    }

    .hero-tagline {
        font-size: 1rem;
        max-width: 320px;
    }

    .btn-hero {
        max-width: 240px;
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* Bubbles mobile - kleiner und kompakter, überlappendes Zigzag */
    .countdown-wrapper {
        height: 560px;
        width: 210px;
    }

    .bubble {
        width: 130px;
        height: 130px;
        padding: 12px;
    }

    .bubble-number {
        font-size: 1.8rem;
    }

    .bubble-text {
        font-size: 0.65rem;
    }

    .bubble-prefix {
        font-size: 0.6rem;
    }

    /* Bubble Positionen mobil - überlappendes Zigzag wie Desktop */
    .bubble-1 { top: 0; left: 0; }
    .bubble-2 { top: 85px; left: 80px; }
    .bubble-3 { top: 170px; left: 0; }
    .bubble-4 { top: 255px; left: 80px; }
    .bubble-5 { top: 340px; left: 0; }
    .bubble-6 { top: 435px; left: 50px; width: 110px; height: 110px; }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .job-card {
        padding: 25px;
    }

    .spenden-iban .value {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 50px 0;
    }

    .wohngruppe-card,
    .criteria-card,
    .contact-card,
    .ansprechpartner-card {
        padding: 20px;
    }

    .service-icon-circle {
        width: 60px;
        height: 60px;
    }

    .service-icon-circle i {
        font-size: 1.5rem;
    }

    .service-icon-card span {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}
