/* ===================================
   Components - Buttons, Cards, Navigation
   Based on zahnarzt-wernitz.de design
   =================================== */

/* ==================
   NAVIGATION
   ================== */

.nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 39, 72, 0.08);
    z-index: 1000;
    padding: var(--space-3) 0;
    transition: all var(--transition-base);
}

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

.logo {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--primary-900);
    text-decoration: none;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-900);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.nav-links {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    padding: var(--space-3);
    font-weight: 600;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: var(--primary-900);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--secondary-500);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
    color: var(--primary-800);
    background-color: var(--primary-100);
}

.nav-links a.active {
    color: var(--primary-900);
    background-color: var(--primary-100);
}

/* Language Selector Modern Style */
.language-selector {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.lang-btn.active {
    background: var(--primary-900);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 39, 72, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        padding: var(--space-2) 0;
    }

    .nav-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 24px 30px;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1001;
    }

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

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        list-style: none;
    }

    .nav-links.active li {
        animation: slideIn 0.3s ease forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }

    .nav-links a {
        display: block;
        width: 100%;
        color: var(--white);
        padding: 14px 18px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .language-selector {
        width: calc(100% - 8px);
        margin: var(--space-6) 4px var(--space-2);
        background: rgba(255, 255, 255, 0.15);
        padding: 8px;
        border-radius: var(--radius-lg);
        display: flex;
        justify-content: space-between;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .lang-btn {
        flex: 1;
        color: var(--white);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 10px 8px;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .lang-btn.active {
        background: var(--white);
        border-color: var(--white);
        color: var(--primary-900);
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu overlay */
@media (max-width: 768px) {
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: -1;
        backdrop-filter: blur(2px);
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* ==================
   BUTTONS
   ================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: clamp(0.875rem, 1vw, 1.125rem);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--secondary-500);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-900);
    color: var(--white);
    border-color: var(--primary-900);
}

.btn-primary:hover {
    background-color: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary-500);
    color: var(--primary-900);
    border-color: var(--secondary-500);
}

.btn-secondary:hover {
    background-color: var(--secondary-600);
    border-color: var(--secondary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Success Button */
.btn-success {
    background-color: var(--success-500);
    color: var(--white);
    border-color: var(--success-500);
}

.btn-success:hover {
    background-color: var(--success-600);
    border-color: var(--success-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--primary-900);
    border-color: var(--primary-900);
}

.btn-outline:hover {
    background-color: var(--primary-900);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline White Button */
.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.25rem;
}

/* ==================
   CARDS
   ================== */

.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-fancy-small);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-fancy-medium);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.card-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-900);
}

.card-body {
    padding: var(--space-6);
}

.card-body p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.card-footer {
    padding: var(--space-6);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.card-link {
    color: var(--primary-800);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-base);
}

.card-link:hover {
    color: var(--primary-900);
    text-decoration: underline;
}

/* Highlighted Card */
.card-highlight {
    border: 2px solid var(--secondary-500);
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-500) 100%);
}

.card-highlight .card-header {
    background-color: rgba(255, 255, 255, 0.9);
}

.card-highlight .card-footer {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ==================
   SECTIONS
   ================== */

.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-100);
    padding: var(--space-20) 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.hero-title {
    color: var(--primary-900);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gray-700);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: var(--space-20) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-900);
    margin-bottom: var(--space-12);
}

.section-title-white {
    text-align: center;
    color: var(--white);
    margin-bottom: var(--space-12);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-fancy-small);
    transition: all var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-fancy-medium);
    transform: translateY(-8px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-100);
    border-radius: var(--radius-full);
    color: var(--primary-900);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-4);
}

.feature-text {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Wavy Section */
.wavy-section {
    position: relative;
    padding: var(--space-24) 0;
    background-color: var(--primary-100);
}

.wavy-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.wave-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.wave-example-card {
    background-color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.wave-example-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-4);
}

/* Components Section */
.components-section {
    padding: var(--space-20) 0;
    background-color: var(--white);
}

.component-showcase {
    margin-bottom: var(--space-16);
}

.component-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 3px solid var(--secondary-500);
}

.component-examples {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

/* Color Palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.color-swatch {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.color-swatch:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.color-preview {
    height: 120px;
    width: 100%;
}

.color-info {
    padding: var(--space-4);
    text-align: center;
}

.color-name {
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-2);
}

.color-hex {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Contact Section */
.contact-section {
    position: relative;
    padding: var(--space-24) 0 var(--space-20);
    background-color: var(--primary-900);
    color: var(--white);
}

.contact-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

/* Footer */
.footer {
    background-color: var(--primary-950);
    color: var(--white);
    padding: var(--space-8) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* ==================
   UTILITY COMPONENTS
   ================== */

/* Badges */
.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    background-color: var(--primary-900);
    color: var(--white);
}

.badge-primary {
    background-color: var(--primary-900);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--secondary-500);
    color: var(--primary-900);
}

.badge-success {
    background-color: var(--success-500);
    color: var(--white);
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--space-8) 0;
}

.divider-thick {
    height: 3px;
    background-color: var(--secondary-500);
}

/* Container Variants */
.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1600px;
}

/* Aspect Ratio Boxes */
.aspect-box {
    position: relative;
    overflow: hidden;
}

.aspect-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--space-12) 0;
    }

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

    .btn {
        width: 100%;
    }

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

    .component-examples {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================
   REQUEST QUOTE SECTION
   ================== */

.request-quote-section {
    padding: var(--space-24) 0 var(--space-20);
    position: relative;
}

.request-quote-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.request-quote-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.request-quote-text {
    position: sticky;
    top: var(--space-8);
}

.request-quote-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 var(--space-8) 0;
    display: inline-block;
    text-align: left;
}

.request-quote-benefits li {
    padding: var(--space-2) 0;
    color: var(--gray-700);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.6;
}

.request-quote-button {
    margin-top: var(--space-8);
}

.request-quote-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
}

.google-form-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.google-form-container iframe {
    width: 100%;
    min-height: 1200px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .request-quote-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .request-quote-text {
        position: relative;
        top: 0;
    }

    .request-quote-cta-content {
        max-width: 100%;
        padding: 0 var(--space-4);
    }

    .google-form-container iframe {
        min-height: 1400px;
    }
}

@media (max-width: 640px) {
    .request-quote-section {
        padding: var(--space-16) 0;
    }

    .request-quote-form-wrapper {
        padding: var(--space-4);
    }

    .request-quote-cta-content {
        padding: 0 var(--space-2);
    }

    .request-quote-benefits {
        font-size: 0.9rem;
    }

    .google-form-container iframe {
        min-height: 1600px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .hero-buttons,
    .contact-section,
    .request-quote-section,
    .footer {
        display: none;
    }

    .wave-divider {
        display: none;
    }
}
