/* Page header removed */

.page-header {
    display: none;
}

:root {
    --primary-blue: #1e5a95;
    /* Updated deeper blue */
    --secondary-blue: #00a3e0;
    /* Updated bright light blue */
    --active-blue: #0066cc;
    /* Specific blue for active state */
    --hover-bg: #cedde9;
    /* Light blue-grey background */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f9;
    --bg-white: #ffffff;
    --accent-green: #25d366;
    --accent-blue-light: #e6f0f9;
    --transition-standard: all 0.3s ease;
    --container-width: 1300px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 4rem;
    /* Increased margin */
    text-align: center;
    font-weight: 800;
    /* Bolder */
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* Global Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
    text-transform: uppercase;
}

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

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

.btn-whatsapp {
    background-color: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* Sections */
section {
    padding: 100px 0 !important;
}

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

/* Page Header for Subpages */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0 !important;
    text-align: center;
}

.page-header h1 {
    color: white;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Leistungen Detail */
.leistungen-detail {
    display: grid;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.leistung-item {
    display: flex;
    gap: 30px;
    align-items: start;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leistung-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leistung-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.leistung-content {
    flex: 1;
}

.leistung-list {
    list-style: none;
    padding: 0;
}

.leistung-list li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.leistung-list li i,
.leistung-list li em {
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* Team Cards */
.team-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

/* Job Cards */
.job-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    margin-left: 20px;
}

/* Header & Nav */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    /* Ensure header is below overlay when menu is open */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 140px;
    /* Significantly larger logo */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    /* Increased nav spacing */
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition-standard);
}

.nav-links a.active {
    color: var(--secondary-blue) !important;
}

.nav-links a:hover {
    background-color: var(--hover-bg);
    color: white !important;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.menu-close {
    display: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropbtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    top: 100%;
    left: 0;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem !important;
    transition: background-color 0.2s;
    font-weight: 500 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-blue) !important;
}

@media (max-width: 1024px) {
    .dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 8px 0;
        font-size: 1.05rem !important;
        color: var(--text-dark) !important;
    }

    .dropdown-content a:before {
        content: '\f105' !important;
        /* FontAwesome angle right */
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        margin-right: 8px;
    }
}

/* Slider */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Hide non-active slides */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    /* Active slide on top */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-standard);
}

.dot.active {
    background: #777;
}

.hero-content {
    max-width: 1000px;
    padding: 60px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: black;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #333;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-list li::before {
    content: "• ";
    color: var(--primary-blue);
}

.service-more {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.service-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 80px 0 40px;
    color: var(--text-dark);
    position: relative;
    border-top: 5px solid var(--primary-blue);
    /* Added 5px blue bar */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 20px;
}

.footer-col h4 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Advantages Section Specifics */
.vorteile-list {
    margin-top: 20px;
}

.vorteile-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.vorteile-box {
    background: #e9f2f8;
    padding: 40px;
    border-radius: 12px;
}

.vorteile-box h3 {
    text-align: left;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Map Section */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: #eee url('https://via.placeholder.com/1200x400?text=Google+Maps+Placeholder') center/cover;
    position: relative;
}

.map-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/AdobeStock_176859349_Preview.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .btn {
    min-width: 200px;
}

@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: var(--transition-standard);
}

.scroll-top.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1250px) {
    :root {
        --container-width: 95%;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        padding: 8px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    header .navbar {
        padding: 10px 0;
    }

    .logo img {
        height: 120px;
        /* Increased from 70px */
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
        margin-right: 10px;
    }

    .menu-close {
        display: block;
        align-self: flex-end;
        font-size: 1.8rem;
        color: var(--primary-blue);
        cursor: pointer;
        margin-bottom: 20px;
    }

    .menu-overlay {
        display: none !important;
        /* Overlay deaktiviert - kein grauer Hintergrund beim Mobile-MenÃ¼ */
    }

    .nav-links {
        display: flex;
        /* Always flex but hidden by position */
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 40px 20px 20px;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 2001;
        gap: 20px;
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 1.2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-slider {
        height: auto;
        min-height: 700px;
        /* Increased from 500px */
    }

    .hero-content {
        padding: 120px 20px 90px;
        /* Adjusted padding for better spacing */
    }

    .vorteile-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }

    h1,
    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 2rem;
    }

    .top-bar {
        font-size: 0.8rem;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-links {
        display: block;
        margin-top: 5px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .vorteile-grid {
        flex-direction: column;
        gap: 30px;
    }

    .leistungen-detail {
        gap: 20px;
        padding: 0;
    }

    .leistung-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
        width: 100% !important;
        margin-bottom: 15px;
    }

    .leistung-icon {
        width: 100%;
        margin-bottom: 10px;
        font-size: 2.5rem;
    }

    .page-header {
        padding: 60px 0 !important;
    }

    .page-header h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0 !important;
    }

    .hero-content {
        padding: 130px 15px 90px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-slider {
        min-height: 700px;
        /* Increased from 450px */
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Support for JS forced mobile mode */
body.force-mobile .menu-toggle {
    display: block !important;
}

body.force-mobile .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 280px !important;
    height: 100vh !important;
    background: white !important;
    flex-direction: column !important;
    padding: 40px 20px 20px !important;
    box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 2001 !important;
    gap: 20px !important;
    transition: right 0.3s ease-in-out !important;
}

body.force-mobile .nav-links.active {
    right: 0 !important;
}

body.force-mobile .menu-overlay {
    display: none !important;
    /* Overlay deaktiviert */
}

body.force-mobile .menu-close {
    display: block !important;
    align-self: flex-end !important;
    font-size: 1.8rem !important;
    color: var(--primary-blue) !important;
    cursor: pointer !important;
    margin-bottom: 20px !important;
}

body.force-mobile .nav-links a {
    width: 100% !important;
    text-align: left !important;
    padding: 15px 20px !important;
    font-size: 1.2rem !important;
    background: transparent !important;
    color: var(--primary-blue) !important;
}


/* ========================================
   JOOMLA OVERRIDE CSS - Delfin Pflegedienst
   ULTRA-HIGH SPECIFICITY VERSION
   Diese Datei MUSS nach allen anderen CSS-Dateien geladen werden!
   ======================================== */

/* WICHTIG: Hamburger Menu Toggle - Maximum Specificity */
html body header .navbar .menu-toggle,
html body .navbar .menu-toggle,
body header .navbar .menu-toggle,
body .menu-toggle,
.menu-toggle {
    display: none !important;
    font-size: 1.8rem !important;
    color: #1e5a95 !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 10px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Mobile: Hamburger MUSS sichtbar sein */
@media (max-width: 1024px) {

    html body header .navbar .menu-toggle,
    html body .navbar .menu-toggle,
    body header .navbar .menu-toggle,
    body .menu-toggle,
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
              right: 20px;
    }
}

/* Force-Mobile Mode */
html body.force-mobile .menu-toggle,
body.force-mobile .menu-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hamburger Icon selbst */
html body .menu-toggle i,
html body .menu-toggle em,
body .menu-toggle i,
body .menu-toggle em,
.menu-toggle i,
.menu-toggle em,
.menu-toggle .fa,
.menu-toggle .fas,
.menu-toggle .fa-bars,
.menu-toggle em.fa,
.menu-toggle em.fas,
.menu-toggle em.fa-bars {
    display: block !important;
    font-size: 1.8rem !important;
    color: #1e5a95 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Container Fixes - Maximum Specificity */
html body .container,
body .container,
.container,
html body main .container,
body main .container,
main .container {
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

/* Joomla Component Wrapper entfernen */
html body #sp-main-body,
body #sp-main-body,
#sp-main-body,
html body .sp-component,
body .sp-component,
.sp-component {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Navigation - Maximum Specificity */
html body header,
body header,
header {
    position: relative !important;
    z-index: 1000 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

html body .navbar,
body .navbar,
.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    position: relative !important;
    z-index: 1001 !important;
}

/* Logo */
html body .logo img,
body .logo img,
.logo img {
    height: 140px !important;
    width: auto !important;
}

@media (max-width: 1024px) {

    html body .logo img,
    body .logo img,
    .logo img {
        height: 120px !important;
    }
}

/* Desktop Navigation */
@media (min-width: 1025px) {

    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 40px !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        font-weight: 600 !important;
        color: #1e5a95 !important;
        text-transform: none !important;
        font-size: 1.1rem !important;
        padding: 10px 20px !important;
        border-radius: 4px !important;
    }

    html body .menu-close,
    body .menu-close,
    .menu-close {
        display: none !important;
    }
}

/* Mobile Navigation */
@media (max-width: 1024px) {

    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        width: 280px !important;
        height: 100% !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        background: white !important;
        flex-direction: column !important;
        padding: 60px 20px 40px !important;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 2001 !important;
        gap: 5px !important;
        transition: right 0.3s ease-in-out !important;
    }

    html body .nav-links.active,
    body .nav-links.active,
    .nav-links.active {
        right: 0 !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        font-size: 1.2rem !important;
    }

    html body .menu-close,
    body .menu-close,
    .menu-close {
        display: block !important;
        align-self: flex-end !important;
        font-size: 1.8rem !important;
        color: #1e5a95 !important;
        cursor: pointer !important;
        margin-bottom: 20px !important;
    }
}

/* Volle Breite Sections */
html body section,
body section,
section {
    width: 100% !important;
    max-width: 100% !important;
}

html body .hero-slider,
body .hero-slider,
.hero-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

html body .section-bg-alt,
body .section-bg-alt,
.section-bg-alt {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-color: #f4f7f9 !important;
}

html body .final-cta,
body .final-cta,
.final-cta {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

html body footer,
body footer,
footer {
    width: 100% !important;
    max-width: 100% !important;
}

/* Top Bar */
html body .top-bar,
body .top-bar,
.top-bar {
    background-color: #1e5a95 !important;
    color: white !important;
    padding: 10px 0 !important;
    font-size: 0.9rem !important;
    width: 100% !important;
}

/* Font Awesome Fix */
html body .fa,
html body .fas,
html body .fab,
html body .far,
html body .fa-solid,
html body .fa-regular,
html body .fa-brands,
html body em.fa,
html body em.fas,
html body em.fab,
html body em.far,
html body em.fa-solid,
html body em.fa-regular,
html body em.fa-brands,
body .fa,
body .fas,
body .fab,
body .far,
body .fa-solid,
body .fa-regular,
body .fa-brands,
body em.fa,
body em.fas,
body em.fab,
body em.far,
body em.fa-solid,
body em.fa-regular,
body em.fa-brands,
.fa,
.fas,
.fab,
.far,
.fa-solid,
.fa-regular,
.fa-brands,
em.fa,
em.fas,
em.fab,
em.far,
em.fa-solid,
em.fa-regular,
em.fa-brands {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

html body .fab,
html body .fa-brands,
html body em.fab,
html body em.fa-brands,
body .fab,
body .fa-brands,
body em.fab,
body em.fa-brands,
.fab,
.fa-brands,
em.fab,
em.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

/* Overlay deaktiviert */
html body .menu-overlay,
body .menu-overlay,
.menu-overlay {
    display: none !important;
}

/* Joomla Row/Col Fixes */
html body #sp-main-body>.row,
body #sp-main-body>.row,
#sp-main-body>.row {
    margin: 0 !important;
}

html body #sp-main-body>.row>.col-sm-12,
body #sp-main-body>.row>.col-sm-12,
#sp-main-body>.row>.col-sm-12 {
    padding: 0 !important;
}

/* Item Page */
html body .item-page,
html body .blog,
html body .category-list,
body .item-page,
body .blog,
body .category-list,
.item-page,
.blog,
.category-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* Component */
html body .com-content,
html body .com-content-article,
body .com-content,
body .com-content-article,
.com-content,
.com-content-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive Container */
@media (max-width: 768px) {

    html body .container,
    body .container,
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}



/* ========================================
   JOOMLA COMPLETE OVERRIDE CSS - Delfin Pflegedienst
   Kombiniert: Joomla-Override + Icon-Fallback
   Diese Datei nach style.css laden!
   ======================================== */

/* ==========================================
   TEIL 1: JOOMLA OVERRIDES
   ========================================== */

/* Container Fixes */
html body .container,
body .container,
.container,
html body main .container,
body main .container,
main .container {
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

/* Joomla Component Wrapper entfernen */
html body #sp-main-body,
body #sp-main-body,
#sp-main-body,
html body .sp-component,
body .sp-component,
.sp-component {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Navigation - Maximum Specificity */
html body header,
body header,
header {
    position: relative !important;
    z-index: 1000 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

html body .navbar,
body .navbar,
.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    position: relative !important;
    z-index: 1001 !important;
}

/* Logo */
html body .logo img,
body .logo img,
.logo img {
    height: 140px !important;
    width: auto !important;
}

@media (max-width: 1024px) {

    html body .logo img,
    body .logo img,
    .logo img {
        height: 120px !important;
    }
}

/* Desktop Navigation */
@media (min-width: 1025px) {

    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 40px !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        font-weight: 600 !important;
        color: #1e5a95 !important;
        text-transform: none !important;
        font-size: 1.1rem !important;
        padding: 10px 20px !important;
        border-radius: 4px !important;
    }

    html body .menu-close,
    body .menu-close,
    .menu-close {
        display: none !important;
    }

    html body .menu-toggle,
    body .menu-toggle,
    .menu-toggle {
        display: none !important;
    }
}

/* Mobile Navigation */
@media (max-width: 1024px) {

    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 40px 20px 20px !important;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 2001 !important;
        gap: 20px !important;
        transition: right 0.3s ease-in-out !important;
    }

    html body .nav-links.active,
    body .nav-links.active,
    .nav-links.active {
        right: 0 !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        font-size: 1.2rem !important;
    }
}

/* Volle Breite Sections */
html body section,
body section,
section {
    width: 100% !important;
    max-width: 100% !important;
}

html body .hero-slider,
body .hero-slider,
.hero-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

html body .section-bg-alt,
body .section-bg-alt,
.section-bg-alt {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-color: #f4f7f9 !important;
}

html body .final-cta,
body .final-cta,
.final-cta {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

html body footer,
body footer,
footer {
    width: 100% !important;
    max-width: 100% !important;
}

/* Top Bar */
html body .top-bar,
body .top-bar,
.top-bar {
    background-color: #1e5a95 !important;
    color: white !important;
    padding: 10px 0 !important;
    font-size: 0.9rem !important;
    width: 100% !important;
}

/* Overlay deaktiviert */
html body .menu-overlay,
body .menu-overlay,
.menu-overlay {
    display: none !important;
}

/* Joomla Row/Col Fixes */
html body #sp-main-body>.row,
body #sp-main-body>.row,
#sp-main-body>.row {
    margin: 0 !important;
}

html body #sp-main-body>.row>.col-sm-12,
body #sp-main-body>.row>.col-sm-12,
#sp-main-body>.row>.col-sm-12 {
    padding: 0 !important;
}

/* Item Page */
html body .item-page,
html body .blog,
html body .category-list,
body .item-page,
body .blog,
body .category-list,
.item-page,
.blog,
.category-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* Component */
html body .com-content,
html body .com-content-article,
body .com-content,
body .com-content-article,
.com-content,
.com-content-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive Container */
@media (max-width: 768px) {

    html body .container,
    body .container,
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* ==========================================
   TEIL 2: CSS ICON FALLBACK
   ========================================== */

/* Hamburger Menu Icon - CSS Fallback */
.menu-toggle {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    display: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    z-index: 9999 !important;
    margin-right: 15px !important;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Hamburger Icon mit CSS (3 Striche) */
.menu-toggle::before {
    content: '' !important;
    position: absolute !important;
    width: 28px !important;
    height: 3px !important;
    background: #1e5a95 !important;
    box-shadow:
        0 -8px 0 0 #1e5a95,
        0 8px 0 0 #1e5a95 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Verstecke Hamburger wenn MenÃ¼ offen ist */
.nav-links.active~.menu-toggle,
body .nav-links.active~.menu-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Verstecke das Font Awesome Icon wenn es nicht lÃ¤dt */
.menu-toggle i,
.menu-toggle em {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* Close Button (X) - CSS Fallback */
.menu-close {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: none !important;
}

@media (max-width: 1024px) {
    .nav-links .menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: flex-end !important;
        margin-bottom: 20px !important;
    }
}

/* X Icon mit CSS */
.menu-close::before,
.menu-close::after {
    content: '' !important;
    position: absolute !important;
    width: 28px !important;
    height: 3px !important;
    background: #1e5a95 !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
}

.menu-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.menu-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Verstecke das Font Awesome Icon im Close Button */
.menu-close i,
.menu-close em {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* Hover Effekt fÃ¼r Hamburger */
.menu-toggle:hover::before {
    background: #00a3e0 !important;
    box-shadow:
        0 -8px 0 0 #00a3e0,
        0 8px 0 0 #00a3e0 !important;
}

/* Hover Effekt fÃ¼r Close Button */
.menu-close:hover::before,
.menu-close:hover::after {
    background: #00a3e0 !important;
}

/* Force Mobile Mode */
body.force-mobile .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.force-mobile .menu-toggle::before {
    content: '' !important;
    display: block !important;
}

/* Verstecke Hamburger auch im force-mobile wenn MenÃ¼ offen */
body.force-mobile .nav-links.active~.menu-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}


/* ========================================
   FONT AWESOME FALLBACK - Delfin Pflegedienst
   CSS-basierte Icons falls Font Awesome nicht lÃ¤dt
   ======================================== */

/* Hamburger Menu Icon - CSS Fallback */
.menu-toggle {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    display: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    z-index: 9999 !important;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Hamburger Icon mit CSS (3 Striche) */
.menu-toggle::before {
    content: '' !important;
    position: absolute !important;
    width: 28px !important;
    height: 3px !important;
    background: #1e5a95 !important;
    box-shadow:
        0 -8px 0 0 #1e5a95,
        0 8px 0 0 #1e5a95 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Verstecke das Font Awesome Icon wenn es nicht lÃ¤dt */
.menu-toggle i,
.menu-toggle em {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* Close Button (X) - CSS Fallback */
.menu-close {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: none !important;
}

@media (max-width: 1024px) {
    .nav-links .menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: flex-end !important;
        margin-bottom: 20px !important;
    }
}

/* X Icon mit CSS */
.menu-close::before,
.menu-close::after {
    content: '' !important;
    position: absolute !important;
    width: 28px !important;
    height: 3px !important;
    background: #1e5a95 !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
}

.menu-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.menu-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Verstecke das Font Awesome Icon im Close Button */
.menu-close i,
.menu-close em {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* Hover Effekt fÃ¼r Hamburger */
.menu-toggle:hover::before {
    background: #00a3e0 !important;
    box-shadow:
        0 -8px 0 0 #00a3e0,
        0 8px 0 0 #00a3e0 !important;
}

/* Hover Effekt fÃ¼r Close Button */
.menu-close:hover::before,
.menu-close:hover::after {
    background: #00a3e0 !important;
}

/* Force Mobile Mode */
body.force-mobile .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.force-mobile .menu-toggle::before {
    content: '' !important;
    display: block !important;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group input[type="number"] {
    color: #ff6b35;
    font-weight: 600;
}

.result-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.result-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 30px;
}

.details-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.details-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.info-box {
    background: #e6f0f9;
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.required-asterisk {
    color: #ff6b35;
    margin-left: 3px;
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 30px 20px;
    }

    .result-amount {
        font-size: 2.5rem;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    display: block;
    /* Force block for scrolling */
}

@media (max-width: 600px) {
    .price-col {
        min-width: 80px !important;
    }

    .price-table td,
    .price-table th {
        padding: 8px !important;
        font-size: 0.85rem !important;
    }
}

#menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

#menu-overlay.active {
    display: block;
}

.nav-links {
    z-index: 999;
}
#menu-overlay {
    pointer-events: auto;
}

@media (max-width: 768px) {

    /* =========================
       HERO
    ========================= */
    .hero-content h2 {
        font-size: 2rem !important;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-slider {
        min-height: 55vh;
    }

    /* =========================
       PAGE HEADER (unter Hero)
    ========================= */
    .page-header {
        padding: 40px 0 !important;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
        text-align: center;
    }

    .page-header p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    /* =========================
       LEISTUNGEN LISTE
    ========================= */
    .leistungen-detail {
        gap: 2.5rem;
    }

    .leistung-item {
        flex-direction: column;
        text-align: left;
    }

    .leistung-icon {
        margin-bottom: 1rem;
        font-size: 2.2rem;
    }

    .leistung-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }

    .leistung-list li {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* =========================
       BUTTONS
    ========================= */
    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    /* =========================
       SECTIONS SPACING
    ========================= */
    section.container {
        padding: 50px 0 !important;
    }

    .section-bg-alt {
        padding: 60px 0 !important;
    }

    /* =========================
       FOOTER CTA
    ========================= */
    .section-bg-alt h2 {
        font-size: 2rem;
    }

    .section-bg-alt p {
        font-size: 1rem;
        padding: 0 1rem;
    }

}

/* ============================================================
   NAV OVERFLOW FIX â€” Breakpoint 1200px
   Ãœberschreibt alle vorherigen Nav-Regeln.
   Hamburger-MenÃ¼ ab 1200px, Desktop-Nav ab 1201px.
   ============================================================ */

@media (max-width: 1200px) {

    /* Hamburger sichtbar */
    html body header .navbar .menu-toggle,
    html body .navbar .menu-toggle,
    body header .navbar .menu-toggle,
    body .menu-toggle,
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 9999 !important;
        margin-right: 10px !important;
    }

    /* Nav als ausfahrendes SeitenmenÃ¼ */
    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        width: 280px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        background: white !important;
        flex-direction: column !important;
        padding: 20px 20px 40px !important;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 2001 !important;
        gap: 5px !important;
        transition: right 0.3s ease-in-out !important;
    }

    html body .nav-links.active,
    body .nav-links.active,
    .nav-links.active {
        right: 0 !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        color: #1e5a95 !important;
    }

    /* Close-Button im MenÃ¼ */
    html body .nav-links .menu-close,
    body .nav-links .menu-close,
    .nav-links .menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: flex-end !important;
        margin-bottom: 10px !important;
        width: 40px !important;
        height: 40px !important;
        cursor: pointer !important;
    }

    /* Dropdown im mobilen MenÃ¼ */
    html body .dropdown,
    body .dropdown,
    .dropdown {
        display: block !important;
        width: 100% !important;
        position: static !important;
    }

    html body .dropdown-content,
    body .dropdown-content,
    .dropdown-content {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        background: transparent !important;
        min-width: 0 !important;
    }

    html body .dropdown:hover .dropdown-content,
    body .dropdown:hover .dropdown-content,
    .dropdown:hover .dropdown-content,
    html body .dropdown:focus-within .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block !important;
    }
}

@media (min-width: 1201px) {

    /* Hamburger versteckt */
    html body header .navbar .menu-toggle,
    html body .navbar .menu-toggle,
    body header .navbar .menu-toggle,
    body .menu-toggle,
    .menu-toggle {
        display: none !important;
    }

    /* Desktop-Nav inline */
    html body .nav-links,
    body .nav-links,
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 15px !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        overflow-y: visible !important;
        transition: none !important;
    }

    html body .nav-links a,
    body .nav-links a,
    .nav-links a {
        font-size: 1rem !important;
        padding: 8px 14px !important;
        white-space: nowrap !important;
    }

    /* Close-Button weg */
    html body .nav-links .menu-close,
    body .nav-links .menu-close,
    .nav-links .menu-close {
        display: none !important;
    }

    /* Dropdown Desktop */
    html body .dropdown,
    body .dropdown,
    .dropdown {
        display: flex !important;
        position: relative !important;
    }

    html body .dropdown-content,
    body .dropdown-content,
    .dropdown-content {
        position: absolute !important;
        display: none !important;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1) !important;
        padding: 10px 0 !important;
        min-width: 250px !important;
    }

    html body .dropdown:hover .dropdown-content,
    body .dropdown:hover .dropdown-content,
    .dropdown:hover .dropdown-content {
        display: block !important;
    }
}

@media (min-width: 1201px) and (max-width: 1250px) {

    /* Nav-Gap bei knappem Platz verkleinern */
    html body .nav-links,
    body .nav-links,
    .nav-links {
        gap: 6px !important;
    }
}

/* ============================================================
   RECHNER: Detail-Row â€” responsive & overflow-safe
   ============================================================ */

/* Allgemein: Umbruch erlauben, Baseline-Ausrichtung */
.detail-row {
    align-items: baseline;
    gap: 6px 12px;
    flex-wrap: wrap;
}

.detail-label {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-value {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile â‰¤ 520px: Label und Wert stapeln */
@media (max-width: 520px) {
    .detail-row {
        flex-direction: column;
        gap: 3px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .detail-label {
        flex: none;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--text-muted);
    }

    .detail-value {
        text-align: left;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-dark);
        padding-left: 0;
    }

    .calculator-container {
        padding: 25px 16px !important;
        border-radius: 8px;
    }

    .result-amount {
        font-size: 2.4rem !important;
    }

    .result-label {
        font-size: 0.95rem;
    }

    .details-title {
        font-size: 0.75rem;
    }
}

.nui.select>.dropdown.icon {
    position: absolute !important;
    display: flex !important;
    width: auto !important;
}

.chronocredits {
    display: none;
}

.nui.form>.nui.button {
    align-self: flex-end !important;
}




        .price-table {
            width: 100%;
            border-collapse: collapse;
            margin: 40px 0;
            background: white;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            overflow: hidden;
        }

        .price-table th,
        .price-table td {
            padding: 15px 20px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .price-table th {
            background-color: var(--primary-blue);
            color: white;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .price-table tr:hover {
            background-color: #f9f9f9;
        }

        .price-table tr:last-child td {
            border-bottom: none;
        }

        .price-col {
            font-weight: 600;
            color: var(--primary-blue);
            min-width: 100px;
        }

        .unit-col {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {

            .price-table th,
            .price-table td {
                padding: 10px;
                font-size: 0.9rem;
            }
        }







.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
}

.table-responsive {
  overflow-x: auto;
}






.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.partner-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
}

.partner-logo {
    display: block;
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        min-height: 180px;
    }

    .partner-logo {
        max-height: 90px;
    }
}

/* ========================================
   QS-FIXES 2026-04
   K4  Hero-Slider Überlappung verhindern
   K5  H2-Scroll-Streifen / overflow-y Bug
   H10 WhatsApp-Grün vereinheitlichen
   H11 Mobile-Dropdown mit Chevron
   M4  Hyphenation in Service-Cards abschalten
   M5  Behandlungspflege Umbruch-Fix
   ======================================== */

/* K4/K5: Hero-Slider sauber aus-/einblenden, keine Überlappung */
html body .hero-slider .slide,
body .hero-slider .slide,
.hero-slider .slide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s !important;
}

html body .hero-slider .slide.active,
body .hero-slider .slide.active,
.hero-slider .slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.8s ease-in-out, visibility 0s !important;
    z-index: 2 !important;
}

/* K5: Scroll-Streifen an Überschriften entfernen */
html body h1,
html body h2,
html body h3,
html body .hero-content h2,
html body .hero-slider h2,
body h1,
body h2,
body h3,
body .hero-content h2,
body .hero-slider h2,
.hero-content h2,
.hero-slider h2 {
    overflow: visible !important;
    max-height: none !important;
}

/* Sicherheitsnetz: Mobile-Drawer rendert keinen Scrollbar, wenn nicht geöffnet */
@media (max-width: 1024px) {
    html body .nav-links,
    body .nav-links,
    .nav-links {
        overflow-y: hidden !important;
    }
    html body .nav-links.active,
    body .nav-links.active,
    .nav-links.active {
        overflow-y: auto !important;
    }
}
html body.force-mobile .nav-links,
body.force-mobile .nav-links {
    overflow-y: hidden !important;
}
html body.force-mobile .nav-links.active,
body.force-mobile .nav-links.active {
    overflow-y: auto !important;
}

/* H10: WhatsApp-Grün einheitlich über CSS-Variable */
html body .btn-whatsapp,
body .btn-whatsapp,
.btn-whatsapp {
    background-color: var(--accent-green) !important;
}
html body .btn-whatsapp:hover,
body .btn-whatsapp:hover,
.btn-whatsapp:hover {
    background-color: #1ebe57 !important;
}

/* M4: Service-Cards – saubere Silbentrennung für lange Komposita,
   KEINE Änderung von Schriftgröße, letter-spacing oder line-height.
   Nur max-width aufgehoben, damit hyphens:auto den ganzen Kartenraum nutzen kann. */
html body .services-grid .service-card h3,
body .services-grid .service-card h3,
.services-grid .service-card h3 {
    max-width: none !important;
    text-wrap: balance;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 8 4 4;
    hyphenate-limit-lines: 1;
}

html body .services-grid .service-card p,
html body .services-grid .service-card li,
body .services-grid .service-card p,
body .services-grid .service-card li,
.services-grid .service-card p,
.services-grid .service-card li {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 8 4 4;
}

/* M5: Behandlungspflege – Aufzählung ohne erzwungene Inline-Nowrap-Fragmente */
.services-grid .service-card .service-list .nowrap {
    white-space: normal;
}

/* H11: Dropdown-Chevron + sauberes Touch-Verhalten für Untermenü Leistungen */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px 10px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    line-height: 1;
}

.nav-links .dropdown-toggle .chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

.nav-links .dropdown.open > .dropdown-toggle .chevron {
    transform: rotate(-135deg);
}

/* Desktop: Chevron bleibt ausgeblendet, Hover öffnet weiterhin */
@media (min-width: 1025px) {
    .nav-links .dropdown-toggle {
        display: none !important;
    }
}

/* Mobile/Drawer: Eltern-Link & Chevron getrennt bedienbar */
@media (max-width: 1024px) {
    .nav-links .dropdown {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .nav-links .dropdown > .dropbtn {
        flex: 1 1 auto;
    }

    .nav-links .dropdown-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        position: absolute;
        right: 12px;
        top: 6px;
    }

    .nav-links .dropdown {
        position: relative;
    }

    .nav-links .dropdown > .dropbtn {
        padding-right: 60px !important;
    }

    .nav-links .dropdown .dropdown-content {
        display: none;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 0 0 12px !important;
        width: 100% !important;
    }

    .nav-links .dropdown.open .dropdown-content {
        display: block !important;
    }
}

body.force-mobile .nav-links .dropdown {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative;
}
body.force-mobile .nav-links .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    position: absolute;
    right: 12px;
    top: 6px;
}
body.force-mobile .nav-links .dropdown > .dropbtn {
    padding-right: 60px !important;
}
body.force-mobile .nav-links .dropdown .dropdown-content {
    display: none;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 0 0 12px !important;
    width: 100% !important;
}
body.force-mobile .nav-links .dropdown.open .dropdown-content {
    display: block !important;
}

/* ========================================
   QS-FIXES 2026-04 — Nachtrag: deutsche Typografie
   Globale, robuste Umbruch- & Silbentrennungs-Regeln
   - Silbentrennung nach deutschen Regeln (lang="de")
   - Mindestens 4 Zeichen vor/nach Trennstrich → keine "…ge", "…ti-"
   - text-wrap: pretty/balance für ruhige Zeilen
   - responsive Schriftgrößen auf schmalen Viewports
   Wirkt nur, wenn <html lang> mit "de" beginnt – sonst unsichtbar.
   ======================================== */

/* Fließtext, Listen, Blockzitate: saubere deutsche Silbentrennung.
   KEINE Änderung an Schriftgröße, letter-spacing oder line-height. */
html[lang^="de"] body p,
html[lang^="de"] body li,
html[lang^="de"] body dd,
html[lang^="de"] body dt,
html[lang^="de"] body blockquote,
html[lang^="de"] body figcaption,
html[lang^="de"] body .hero-content p,
html[lang^="de"] body .vorteile-box p,
html[lang^="de"] body .vorteile-box li,
html[lang^="de"] body .vorteile-list li {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    /* min. 8 Zeichen im Wort, min. 4 vor, min. 4 nach dem Trennstrich */
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 8 4 4;
    /* max. 2 Trennstriche hintereinander */
    hyphenate-limit-lines: 2;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

/* Überschriften: ausgeglichene Zeilen, Silbentrennung als Fallback
   mit größerem Mindestabstand (5/5 Zeichen).
   KEINE Änderung an Schriftgröße, letter-spacing oder line-height. */
html[lang^="de"] body h1,
html[lang^="de"] body h2,
html[lang^="de"] body h3,
html[lang^="de"] body h4,
html[lang^="de"] body .page-header h1,
html[lang^="de"] body .page-header p,
html[lang^="de"] body .hero-content h2,
html[lang^="de"] body .hero-slider h2 {
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
    hyphenate-limit-chars: 10 5 5;
    hyphenate-limit-lines: 1;
}

/* Lange URLs / E-Mails / zusammengesetzte Wörter in Links & Buttons:
   dürfen im Notfall brechen, aber nie per Silbenwörterbuch getrennt werden. */
html[lang^="de"] body a[href],
html[lang^="de"] body .btn {
    hyphens: manual;
    -webkit-hyphens: manual;
    word-break: normal;
    overflow-wrap: anywhere;
}


.nui.checkbox>label {
  display:inline !important;
}
