:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(17, 12, 46, 0.15);
    --gradient-start: #2563eb;
    --gradient-end: #4f46e5;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f6f7ff 0%, #e9f0ff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Updated */
.main-header {
    margin: 1rem 2rem;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2000;
}

.top-bar {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
}

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

.contact-info {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.contact-info i {
    font-size: 1.2rem;
}

.emergency-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.emergency-info i {
    color: #ffd700;
}

/* Main Navigation - Fixed */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2000;
    padding: 1rem 0;
}

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

.logo {
    padding: 0.5rem 0;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
    opacity: 0.8;
}

.nav-links > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links > li > a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-links .dropdown > a::after {
    bottom: 0.75rem;
}

.appointment-btn::after {
    display: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a {
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.dropdown-content a:hover::before {
    width: 1rem;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 280px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    z-index: 2001;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown-content a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    border-radius: 8px;
    margin: 0.25rem 0;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.appointment-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white) !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start)) !important;
    color: var(--white) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Navigation Improvements */
@media (max-width: 1024px) {
    .main-header,
    .hero-slider {
        margin: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        margin: 0;
        border-radius: 0;
    }

    .top-bar {
        border-radius: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        margin-top: 0.5rem;
        padding: 0;
    }

    .dropdown-content::before {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .appointment-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    /* Improved mobile menu button */
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        position: relative;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.1);
    }

    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
        background: var(--primary-color);
        position: absolute;
        left: 10px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span:nth-child(1) { top: 14px; }
    .mobile-menu-btn span:nth-child(2) { top: 19px; }
    .mobile-menu-btn span:nth-child(3) { top: 24px; }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
        top: 19px;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
        top: 19px;
    }
}

/* Mobile-specific content adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-slider {
        height: 50vh;
        margin: 0;
        border-radius: 0;
    }

    .slide-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .slide-content h2 {
        font-size: 1.75rem;
    }

    .feature-grid,
    .services-grid,
    .angebote-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info a {
        width: 100%;
        justify-content: center;
    }

    .emergency-info {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* Hero Slider - Updated */
.hero-slider {
    position: relative;
    z-index: 1;
    height: 65vh;
    border-radius: 24px;
    margin: 2rem;
    margin-top: -1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.swiper-slide::before {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 2rem;
    text-align: center;
    color: white;
    animation: slideUp 0.8s ease forwards;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Swiper Navigation - Updated */
.swiper-button-prev,
.swiper-button-next {
    color: white;
    background: rgba(37, 99, 235, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(37, 99, 235, 0.5);
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

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

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Update the feature cards animation */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Service cards animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(rgba(245, 247, 250, 0.9), rgba(235, 240, 255, 0.95)), url('2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--gradient-start), 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Services Preview */
.services-preview {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.read-more,
.angebot-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.read-more::before,
.angebot-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.read-more span,
.read-more i,
.angebot-button span,
.angebot-button i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.read-more:hover,
.angebot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
    color: var(--white);
}

.read-more:hover::before,
.angebot-button:hover::before {
    opacity: 1;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 6rem 0;
    border-radius: 24px 24px 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-grid h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-grid a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-grid a:hover {
    opacity: 1;
}

/* Angebote Cards Section */
.angebote-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, rgba(245, 247, 250, 0.9), rgba(235, 240, 255, 0.95));
}

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.angebot-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--gradient-start), 0.1);
}

.angebot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.angebot-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.angebot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.angebot-card:hover .angebot-image img {
    transform: scale(1.1);
}

.angebot-content {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.angebot-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.angebot-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.angebot-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.angebot-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

/* Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
    z-index: 2;
}

/* Sticky Navigation Container */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: transparent;
} 