/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fafafa;
}

/* Design System Variables */
:root {
    --primary: #046b67;
    --primary-glow: #058a85;
    --primary-dark: #035a56;
    --primary-foreground: #ffffff;
    
    --background: #fafafa;
    --foreground: #2c3e50;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    
    --shadow-elegant: 0 10px 30px -10px rgba(4, 107, 103, 0.2);
    --shadow-soft: 0 4px 20px -4px rgba(44, 62, 80, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
    
    --radius: 12px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.transition-smooth {
    transition: var(--transition-smooth);
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.text-glow {
    color: var(--primary-glow);
}

.hero-gradient {
    background: var(--gradient-hero);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) skewX(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) skewX(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    color: var(--primary-foreground);
    box-shadow: 0 8px 25px rgba(30, 142, 140, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 142, 140, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-modern {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-modern:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-foreground);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(30, 142, 140, 0.1);
    border-bottom: 1px solid rgba(30, 142, 140, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(30, 142, 140, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 50%, var(--primary-dark) 100%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 800;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(30, 142, 140, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo-icon:hover::before {
    left: 100%;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 35px rgba(30, 142, 140, 0.4);
}

.logo-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-desktop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-desktop a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 142, 140, 0.3);
}

.nav-desktop a:hover::before {
    opacity: 1;
}

.cta-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
}

.phone-info {
    text-align: right;
}

.phone-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.phone-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-mobile a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(30, 142, 140, 0.9) 0%, 
        rgba(45, 181, 178, 0.8) 30%, 
        rgba(22, 112, 110, 0.95) 100%);
    opacity: 0.9;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 64rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.trust-item i {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.trust-item span {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--background), transparent);
}

/* Sections */
.services, .about, .contact {
    padding: 5rem 0;
}

.services {
    background: var(--background);
}

.about {
    background: var(--background);
}

.contact {
    background: rgba(30, 142, 140, 0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Service Cards */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(30, 142, 140, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow), var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 142, 140, 0.2);
    border-color: rgba(30, 142, 140, 0.3);
}

.service-content {
    padding: 2rem;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(30, 142, 140, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(30, 142, 140, 0.4);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-title-area h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.service-title-area p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

.service-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature i {
    color: var(--primary);
    width: 1.25rem;
}

.feature span {
    color: var(--foreground);
}

/* Additional Features */
.additional-features {
    background: rgba(30, 142, 140, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    display: grid;
    gap: 2rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    background: var(--gradient-hero);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--muted-foreground);
}

/* About Section */
.about-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.about-header i {
    color: var(--primary);
    width: 2rem;
    height: 2rem;
}

.about-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.about-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(30, 142, 140, 0.05);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.quality-features {
    margin-bottom: 2rem;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.quality-icon {
    background: var(--gradient-hero);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    flex-shrink: 0;
}

.quality-item span {
    color: var(--foreground);
}

.quote-box {
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    position: relative;
}

.quote-box i {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.quote-box p {
    color: var(--foreground);
    font-style: italic;
    margin: 0;
}

.about-cta {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    gap: 3rem;
    max-width: 96rem;
    margin: 0 auto;
}

.contact-card, .form-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.company-desc {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    background: var(--gradient-hero);
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-sub {
    color: var(--muted-foreground);
    margin: 0;
}

.contact-text p {
    margin: 0;
}

.contact-text .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Form */
.form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-header i {
    color: var(--primary);
    width: 1.75rem;
    height: 1.75rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 142, 140, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin: 0;
}

/* Emergency Contact */
.emergency-contact {
    margin-top: 4rem;
    text-align: center;
}

.emergency-card {
    background: rgba(30, 142, 140, 0.1);
    border: 2px solid rgba(30, 142, 140, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    padding: 2rem;
    max-width: 32rem;
    margin: 0 auto;
}

.emergency-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.emergency-card p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--foreground);
    color: var(--background);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
}

.footer .logo-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.footer .logo-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .phone {
    color: white;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: white;
}

/* Enhanced button states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Ripple effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects for cards */
.service-card:hover,
.about-card:hover,
.testimonial-card:hover,
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elegant);
}

/* Enhanced card shadows and borders */
.service-card,
.about-card,
.contact-card,
.form-card {
    border: 1px solid rgba(30, 142, 140, 0.1);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover,
.about-card:hover,
.contact-card:hover,
.form-card:hover {
    border-color: rgba(30, 142, 140, 0.3);
    box-shadow: 0 15px 35px rgba(30, 142, 140, 0.15);
}

/* Enhanced section headers */
.section-header h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    border-radius: 2px;
}

/* Enhanced form inputs */
.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 142, 140, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* Enhanced phone number styling */
.phone-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(30, 142, 140, 0.2);
}

/* Maintenance Container */
.maintenance-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background Image */
.maintenance-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 142, 140, 0.8) 0%, rgba(45, 181, 178, 0.8) 100%);
    backdrop-filter: blur(2px);
}

.maintenance-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 142, 140, 0.1);
    position: relative;
    z-index: 10;
}

/* Maintenance Page Specific Styles */

/* ===== ENHANCED WHITE FOREGROUND DESIGN ===== */

/* Remove background image */
.maintenance-background {
    display: none;
}

/* Enhanced white container styling */
.maintenance-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

/* Add subtle inner glow */
.maintenance-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
}

/* Enhanced logo styling */
.maintenance-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 50%, var(--primary-dark) 100%);
    width: 4rem;
    height: 4rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 
        0 12px 32px rgba(30, 142, 140, 0.3),
        0 4px 16px rgba(30, 142, 140, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Enhanced maintenance message */
.maintenance-message {
    text-align: center;
    margin-bottom: 2rem;
}

.maintenance-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-size: 2rem;
    box-shadow: 
        0 16px 32px rgba(30, 142, 140, 0.4),
        0 6px 20px rgba(30, 142, 140, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0 auto 1.5rem;
}

.maintenance-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--primary-glow), 
        var(--primary-dark), 
        var(--primary));
    background-size: 400% 400%;
    animation: borderRotate 4s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.maintenance-message h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.maintenance-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced maintenance info */
.maintenance-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-glow) 100%);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-item i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item span {
    color: var(--foreground);
    font-weight: 600;
    font-size: 1rem;
}

/* Enhanced contact section */
.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(30, 142, 140, 0.3) 50%, 
        transparent 100%);
}

.contact-section h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section p {
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Enhanced contact methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(30, 142, 140, 0.3);
}

.contact-details h4 {
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--muted-foreground);
    margin: 0.25rem 0;
    text-align: left;
}

.phone-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.125rem;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
}

/* Enhanced company info */
.company-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.company-info p {
    color: var(--muted-foreground);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Enhanced footer */
.maintenance-footer {
    background: linear-gradient(135deg, var(--foreground) 0%, #1a202c 100%);
    color: var(--background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.maintenance-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    position: relative;
    display: inline-block;
}

.footer-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-glow) 100%);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.maintenance-footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, 
        rgba(30, 142, 140, 0.1) 0%, 
        rgba(45, 181, 178, 0.05) 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .cta-desktop {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .trust-indicators {
        gap: 1rem;
    }
    
    .trust-item {
        font-size: 0.875rem;
    }
}

/* Logo image styling */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Update logo containers to accommodate images */
.maintenance-logo .logo-icon {
    background: none !important;
    width: 8rem;
    height: 8rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    margin-bottom: 1rem;
}

/* Base logo image styling - PERFECT SIZE */
.logo-image {
    width: 21vw !important;
    height: 21vh !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
    max-width: 21vw !important;
    max-height: 21vh !important;
    min-width: 21vw !important;
    min-height: 21vh !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative !important;
    margin: 0 auto !important;
    z-index: 1 !important;
}

/* ===== MAINTENANCE PAGE LOGO STYLES ===== */

/* Logo container - large but reasonable dimensions */
.maintenance-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible;
}

/* Logo icon container - full page dimensions */
.maintenance-logo .logo-icon {
    background: none !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: transparent !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    box-shadow: none !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== LEGAL PAGES LOGO STYLES ===== */

/* Legal pages logo container - perfect dimensions */
.logo-container .logo-icon {
    background: none !important;
    width: 21vw !important;
    height: 21vh !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
}

/* ===== LEGAL PAGES STYLES (Impressum & Datenschutz) ===== */

/* Legal page container */
.legal-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 1rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Legal header */
.legal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    color: var(--primary-foreground);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container .logo-icon {
    background: none !important;
    width: 8rem;
    height: 8rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: 800;
    font-size: 1.25rem;
    border: none;
    backdrop-filter: none;
    overflow: visible;
}

.logo-container .logo-text h1 {
    color: var(--primary-foreground);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.logo-container .logo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

.back-link {
    color: var(--primary-foreground);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.back-link i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Legal main content */
.legal-main {
    padding: 3rem 2rem;
}

.legal-main h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-glow) 100%);
}

.legal-section h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-section h4 {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section strong {
    color: var(--foreground);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--primary-glow);
    text-decoration: underline;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Special style for Impressum - single block */
.legal-section.impressum-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.legal-section.impressum-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-glow) 100%);
}

.legal-section.impressum-block h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 142, 140, 0.1);
}

.legal-section.impressum-block h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-section.impressum-block h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-section.impressum-block p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section.impressum-block p:last-child {
    margin-bottom: 0;
}

.legal-section.impressum-block strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Legal footer */
.legal-footer {
    background: linear-gradient(135deg, var(--foreground) 0%, #1a202c 100%);
    color: var(--background);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.legal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    position: relative;
    display: inline-block;
    border-radius: 8px;
}

.footer-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-glow) 100%);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.legal-footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive design for legal pages */
@media (max-width: 768px) {
    .legal-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .legal-main {
        padding: 2rem 1rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section.impressum-block {
        padding: 2rem;
    }
    
    .legal-main h2 {
        font-size: 2rem;
    }
    
    .back-link {
        width: 100%;
        justify-content: center;
    }
}