/* ================================
   CSS Variables & Reset
   ================================ */

:root {
    --navy: #1A2B3C;
    --navy-light: #2d4356;
    --navy-dark: #0f1922;
    --yellow: #FFCC00;
    --yellow-dark: #E6B800;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-medium: #8B95A5;
    --gray-dark: #4A5568;
    --medical-blue: #4A90E2;

    --font-display: 'Barlow Semi Condensed', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 2px 8px rgba(26, 43, 60, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 43, 60, 0.12);
    --shadow-lg: 0 12px 40px rgba(26, 43, 60, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ================================
   Typography
   ================================ */

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    padding: 8px 16px;
    background: rgba(255, 204, 0, 0.1);
    border-left: 3px solid var(--yellow);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-dark);
    line-height: 1.7;
    max-width: 600px;
}

/* ================================
   Header & Navigation
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(26, 43, 60, 0);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    gap: 6px;
}

.logo-text {
    color: var(--navy);
}

.logo-highlight {
    color: var(--yellow);
    position: relative;
}

.logo-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
    transform-origin: left;
}

.logo:hover .logo-highlight::after {
    transform: scaleX(1);
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-smooth);
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link-accent {
    color: var(--navy);
    padding: 10px 20px;
    background: var(--yellow);
    border-radius: 6px;
    font-weight: 700;
    transition: all var(--transition-smooth);
}

.nav-link-accent::after {
    display: none;
}

.nav-link-accent:hover {
    background: var(--yellow-dark);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 85px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('Gemini_Generated_Image_2jszl62jszl62jsz.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.85) 0%, rgba(26, 43, 60, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: heroFadeIn 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: titleSlideIn 1s ease-out 0.2s both;
}

.hero-badge svg {
    stroke: var(--yellow);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 110px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -3px;
    line-height: 0.9;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    animation: titleSlideIn 1s ease-out 0.3s both;
}

.hero-title-sub {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.3;
    animation: titleSlideIn 1s ease-out 0.4s both;
}

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

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-top: 24px;
    animation: titleSlideIn 1s ease-out 0.5s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: titleSlideIn 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.cta-button-primary {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.3);
}

.cta-button-primary:hover,
.cta-button-primary:active {
    background: var(--yellow-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 204, 0, 0.5);
}

@media (hover: none) {
    .cta-button-primary:active {
        transform: scale(0.98);
    }
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.cta-arrow {
    transition: transform var(--transition-smooth);
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Touch feedback for CTA buttons */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.96);
    }

    .cta-button-secondary:active {
        transform: scale(0.96);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: titleSlideIn 1s ease-out 0.8s both;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 15px;
    }
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--yellow), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ================================
   Services Section
   ================================ */

.services {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.featured-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.service-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(26, 43, 60, 0.15);
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card[data-delay="0"] {
    animation-delay: 0.1s;
}

.service-card[data-delay="1"] {
    animation-delay: 0.2s;
}

.service-card[data-delay="2"] {
    animation-delay: 0.3s;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover,
.service-card:active {
    transform: translateY(-12px);
    box-shadow: 0 20px 56px rgba(26, 43, 60, 0.25);
    border-color: var(--yellow);
}

.service-card:hover::before,
.service-card:active::before {
    transform: scaleX(1);
}

/* Touch feedback for mobile */
@media (hover: none) {
    .service-card:active {
        transform: scale(0.96) translateY(-4px);
        box-shadow: 0 8px 32px rgba(26, 43, 60, 0.2);
    }
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-color: var(--yellow);
}

.service-card-highlight::before {
    transform: scaleX(1);
}

.service-card-highlight .service-icon svg {
    stroke: var(--yellow);
}

.service-card-highlight .service-badge {
    background: rgba(255, 204, 0, 0.2);
    color: var(--yellow);
}

.service-card-highlight .service-title,
.service-card-highlight .service-description,
.service-card-highlight .service-features li {
    color: var(--white);
}

.service-card-medical .service-icon svg {
    stroke: var(--medical-blue);
}

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 204, 0, 0.15);
}

@media (hover: none) {
    .service-card:active .service-icon {
        transform: scale(1.15) rotate(-8deg);
        background: rgba(255, 204, 0, 0.2);
    }
}

.service-icon svg {
    stroke: var(--navy);
}

.service-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 204, 0, 0.15);
    color: var(--yellow-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.service-description {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    font-size: 15px;
    color: var(--navy);
    padding-left: 28px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 700;
    font-size: 18px;
}

/* Additional Services */

.additional-services {
    margin-top: 80px;
}

.additional-services-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    margin-bottom: 48px;
}

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

.service-item {
    background: var(--gray-light);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(26, 43, 60, 0.12);
    transition: all var(--transition-smooth);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-item[data-delay="0"] { animation-delay: 0.1s; }
.service-item[data-delay="1"] { animation-delay: 0.15s; }
.service-item[data-delay="2"] { animation-delay: 0.2s; }
.service-item[data-delay="3"] { animation-delay: 0.25s; }
.service-item[data-delay="4"] { animation-delay: 0.3s; }
.service-item[data-delay="5"] { animation-delay: 0.35s; }

.service-item:hover,
.service-item:active {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 14px 40px rgba(26, 43, 60, 0.2);
}

/* Touch feedback for mobile */
@media (hover: none) {
    .service-item:active {
        transform: scale(0.95) translateY(-2px);
        box-shadow: 0 8px 28px rgba(26, 43, 60, 0.18);
    }
}

.service-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    transition: all var(--transition-smooth);
}

.service-item:hover .service-item-icon,
.service-item:active .service-item-icon {
    transform: scale(1.2) rotate(8deg);
}

@media (hover: none) {
    .service-item:active .service-item-icon {
        transform: scale(1.25) rotate(10deg);
    }
}

.service-item-icon svg {
    stroke: var(--navy);
}

.service-item h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: var(--gray-medium);
}

/* ================================
   Contact & Testimonials Section
   ================================ */

.contact-section {
    padding: 120px 0;
    background: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-label {
    margin-bottom: 24px;
}

.contact-description {
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(26, 43, 60, 0.15);
    transition: all var(--transition-smooth);
}

.contact-item:hover .contact-icon,
.contact-item:active .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(26, 43, 60, 0.25);
}

@media (hover: none) {
    .contact-item:active .contact-icon {
        transform: scale(1.15) rotate(-8deg);
        box-shadow: 0 8px 28px rgba(26, 43, 60, 0.22);
    }
}

.contact-icon svg {
    stroke: var(--navy);
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--yellow-dark);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.contact-link:hover {
    color: var(--yellow);
}

.contact-note {
    font-size: 14px;
    color: var(--gray-medium);
    margin-top: 4px;
}

/* Testimonials */

.testimonials-container {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26, 43, 60, 0.15);
}

.testimonials-heading {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
}

.testimonials-slider {
    position: relative;
}

.testimonials-track {
    position: relative;
    min-height: 280px;
}

.testimonial-item {
    display: none;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.testimonial-item.active {
    display: block;
}

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

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 17px;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: var(--yellow);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--gray-medium);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
    transition: all var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--yellow);
    transform: scale(1.1);
}

@media (hover: none) {
    .slider-arrow:active {
        background: var(--yellow);
        transform: scale(1.15);
    }
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    padding: 0;
}

.dot.active {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--navy);
}

@media (hover: none) {
    .dot:active {
        transform: scale(1.4);
        background: var(--yellow);
        border-color: var(--yellow);
    }
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--yellow);
    opacity: 0.9;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-smooth);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-hours {
    opacity: 0.8;
}

.footer-legal {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

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

.footer-legal-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-services-list li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.footer-services-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
}

.footer-impressum {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-impressum p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-impressum a {
    color: var(--yellow);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.footer-impressum a:hover {
    color: var(--white);
}

.footer-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.footer-disclaimer summary {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: color var(--transition-smooth);
}

.footer-disclaimer summary:hover {
    color: var(--yellow);
}

.disclaimer-content {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disclaimer-content h5 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 8px;
}

.disclaimer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
}

/* Impressum Toggle Button */
.impressum-toggle-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3);
}

.impressum-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 204, 0, 0.4);
}

.impressum-toggle-button .toggle-icon {
    transition: transform var(--transition-smooth);
}

.impressum-toggle-button.active .toggle-icon {
    transform: rotate(180deg);
}

/* Impressum Container */
.footer-impressum-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.footer-impressum-container.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 40px;
}

.footer-impressum-content {
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 204, 0, 0.2);
}

.footer-impressum-content .footer-heading {
    margin-bottom: 24px;
}

.footer-impressum-content .footer-disclaimer {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.03);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================
   Responsive Design
   ================================ */

/* ================================
   Legal / Impressum Page
   ================================ */

.page-content {
    padding-top: 100px;
}

.legal-content {
    background: var(--white);
    padding: 32px 40px; /* seitlicher Innenabstand */
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin: 28px 0 14px;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 24px 0 10px;
}

.legal-content h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow-dark);
    margin: 18px 0 8px;
}

.legal-content p {
    margin: 10px 0 16px;
    color: var(--gray-dark);
    line-height: 1.75; /* bessere Lesbarkeit */
}

.legal-content ul {
    margin: 8px 0 18px 1.2rem; /* Abstand zwischen Themenblöcken */
}

.legal-content li {
    margin: 6px 0; /* Zeilenabstand in Listen */
}

.legal-content ul ul {
    margin-top: 6px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 24px; /* auf kleineren Screens enger, aber mit Rand */
        border-radius: 10px;
    }

    .legal-content h2 {
        font-size: 24px;
        margin: 22px 0 12px;
    }

    .legal-content h3 {
        font-size: 18px;
        margin: 18px 0 8px;
    }
}

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

@media (max-width: 768px) {
    .header-content {
        height: 75px;
    }

    .nav {
        gap: 16px;
    }

    /* Hide Leistungen and Kontakt links on mobile */
    .nav-link:not(.nav-link-accent) {
        display: none;
    }

    .nav-link-accent {
        padding: 10px 24px;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        animation: buttonPulse 3s ease-in-out infinite;
    }

    .nav-link-accent svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        min-height: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        justify-content: center;
        animation: buttonBounce 2s ease-in-out infinite;
    }

    .featured-services {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }

    .footer-section {
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        gap: 16px;
    }

    .footer-section:first-child {
        background: transparent;
        border-radius: 0;
        text-align: center;
    }

    .footer-section:first-child .logo {
        justify-content: center;
    }

    .footer-heading {
        font-size: 16px;
        margin-bottom: 12px;
        color: var(--yellow);
    }

    .footer-nav {
        gap: 10px;
    }

    .footer-link {
        font-size: 14px;
        padding: 8px 0;
        display: inline-block;
        width: 100%;
        text-align: left;
    }

    .footer-contact-info {
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-bottom: 32px;
    }

    .footer-contact p {
        font-size: 13px;
    }

    .footer-legal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .impressum-toggle-button {
        width: 100%;
        justify-content: center;
    }

    .footer-impressum-content {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 70px;
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .nav {
        gap: 12px;
    }

    .nav-link-accent {
        padding: 8px 16px;
        font-size: 14px;
        gap: 6px;
    }

    .nav-link-accent svg {
        width: 16px;
        height: 16px;
    }

    /* Show only phone icon on very small screens */
    .nav-link-accent span {
        display: none;
    }

    .nav-link-accent svg {
        display: block;
        margin: 0;
    }

    .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
    }

    .hero-title-main {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .impressum-toggle-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .footer-impressum-content {
        padding: 20px 16px;
    }

    .testimonials-container {
        padding: 24px 20px;
    }
}

/* ================================
   WhatsApp Chat Widget
   ================================ */

.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-body);
}

/* Chat Window */
.whatsapp-chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 300px;
    background: #E5DDD5;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-chat-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-text h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.chat-header-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 2px 0 0 0;
}

.chat-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth);
}

.chat-close:hover {
    transform: scale(1.1);
}

/* Chat Body */
.chat-body {
    padding: 20px;
    min-height: 120px;
    background-image:
        linear-gradient(rgba(229, 221, 213, 0.9), rgba(229, 221, 213, 0.9)),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 20px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.typing-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.typing-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #667781;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-message {
    display: flex;
    justify-content: flex-start;
    animation: messageSlideIn 0.4s ease-out;
}

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

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.message-sender {
    font-size: 13px;
    font-weight: 600;
    color: #128C7E;
    margin: 0 0 6px 0;
}

.message-text {
    font-size: 14px;
    color: #303030;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #667781;
    float: right;
    margin-left: 8px;
}

/* Chat Footer */
.chat-footer {
    background: white;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-smooth);
}

.chat-cta-button:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.chat-cta-button:active {
    transform: translateY(0);
}

/* WhatsApp Button */
.whatsapp-button {
    position: relative;
    width: 64px;
    height: 64px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-smooth);
    animation: slideInRight 0.6s ease-out 1s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@media (hover: none) {
    .whatsapp-button:active {
        transform: scale(1.15);
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #DC3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    animation: badgePulse 2s ease-in-out infinite;
}

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

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(255, 204, 0, 0.5);
    }
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Tablet - Show button text */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-link-accent span {
        display: inline;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat-window {
        width: calc(100vw - 40px);
        max-width: 260px;
        bottom: 85px;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-header-text h4 {
        font-size: 14px;
    }

    .chat-header-text p {
        font-size: 12px;
    }

    .chat-body {
        padding: 16px;
        min-height: 100px;
    }

    .message-content {
        max-width: 85%;
    }

    .message-text {
        font-size: 14px;
    }

    .chat-footer {
        padding: 12px 16px;
    }

    .chat-cta-button {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-chat-window {
        width: calc(100vw - 32px);
        max-width: 240px;
        bottom: 80px;
    }

    .whatsapp-button {
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .chat-avatar {
        width: 36px;
        height: 36px;
    }

    .chat-header {
        padding: 10px 14px;
    }

    .chat-header-text h4 {
        font-size: 13px;
    }

    .chat-header-text p {
        font-size: 11px;
    }

    .chat-body {
        padding: 14px;
        min-height: 90px;
    }

    .message-content {
        max-width: 90%;
    }

    .message-text {
        font-size: 13px;
    }

    .message-time {
        font-size: 10px;
    }

    .chat-footer {
        padding: 10px 14px;
    }

    .chat-cta-button {
        padding: 9px 16px;
        font-size: 13px;
    }
}
