/* --- style.css --- */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --border-color: #d2d2d7;
    --card-radius: 28px;
    --nav-height: 54px;
    --max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2px;
}

.lang-btn {
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--accent-color);
    color: white;
}

.lang-btn.active {
    font-weight: 600;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--card-radius); }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.005em; }
.page-headline {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height, 60px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    z-index: 1001;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background: rgba(0, 113, 227, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

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

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: var(--nav-height, 60px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height, 60px));
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 0;
}

.mobile-nav-menu .nav-links a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-menu .nav-links a:hover,
.mobile-nav-menu .nav-links a:active {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    transform: translateX(8px);
}

/* Layout Helpers */
section { padding: 100px 20px; max-width: var(--max-width); margin: 0 auto; }
.bg-gray { background-color: var(--bg-secondary); width: 100%; max-width: 100%; }
.inner-container { max-width: var(--max-width); margin: 0 auto; padding: 100px 20px; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-block p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 20px; }

/* Hero for Subpages */
.page-hero {
    padding-top: 205px;
    padding-bottom: 60px;
    text-align: center;
}
.page-hero p { font-size: 1.25rem; color: var(--text-secondary); margin-top: 15px; }

/* Components */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 980px;
    font-size: 17px; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.btn-primary { background-color: var(--accent-color); color: white; }
.btn-primary:hover { background-color: var(--accent-hover); }

/* Newsletter Subscription */
.subscription-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subscription-option:hover {
    border-color: var(--accent-color);
    background: rgba(0, 113, 227, 0.02);
}

.subscription-option input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.subscription-option label {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.subscription-option p {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.btn-secondary { background-color: transparent; color: var(--accent-color); border: 1px solid var(--accent-color); }
.btn-secondary:hover { background-color: var(--accent-color); color: white; }

.card {
    background: white; padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

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

/* Contact */
.contact-wrapper {
    background: var(--bg-secondary); padding: 50px; border-radius: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.info-row { display: flex; gap: 15px; margin-bottom: 20px; }
.info-row i { color: var(--accent-color); margin-top: 5px; }

/* Footer */
footer {
    background: #f5f5f7; padding: 40px 20px; border-top: 1px solid var(--border-color);
    font-size: 12px; color: var(--text-secondary);
}
.footer-content { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { text-decoration: underline; }

/* Social Media Chat Widgets */
.whatsapp-float, .facebook-float {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float {
    right: 20px;
    background: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

.facebook-float {
    right: 90px;
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.whatsapp-float:hover, .facebook-float:hover {
    transform: scale(1.1);
}

.whatsapp-float:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.facebook-float:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

/* Social Media Tooltips */
.whatsapp-tooltip, .facebook-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip,
.facebook-float:hover .facebook-tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-tooltip::after, .facebook-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Responsive Social Media */
@media (max-width: 768px) {
    .whatsapp-float, .facebook-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
    }

    .whatsapp-float {
        right: 15px;
    }

    .facebook-float {
        right: 75px;
    }

    .whatsapp-float i, .facebook-float i {
        font-size: 24px;
    }

    .whatsapp-tooltip, .facebook-tooltip {
        display: none; /* Hide tooltips on mobile for cleaner look */
    }
}

/* Map Marker Animations */
@keyframes pulse-marker {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce-marker {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Reviews Section */
.reviews-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.reviews-grid {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    animation: scroll-reviews 60s linear infinite;
    width: max-content;
}

.reviews-grid:hover {
    animation-play-state: paused;
}

.review-card {
    flex: 0 0 350px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--accent-color);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.review-company {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-top: 5px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Star Rating Input */
.star-rating {
    display: inline-block;
    cursor: pointer;
}

.star-rating .star {
    color: #ddd;
    transition: color 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffd700;
}

/* Form Styling */
#review-form input:focus,
#review-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 231, 3, 0.1);
}

/* Mobile Navigation Breakpoints */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .split-layout, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Hide desktop navigation */
    .nav-links:not(.mobile-nav-menu .nav-links) {
        display: none !important;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }

    /* Adjust header for mobile */
    header {
        padding: 0 16px;
        height: var(--nav-height, 60px);
    }

    .nav-container {
        padding: 0;
    }

    /* Mobile navigation */
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: block;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    header {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        height: 32px;
    }

    .mobile-menu-btn {
        width: 28px;
        height: 28px;
    }

    .language-switcher {
        top: 16px;
        right: 16px;
        padding: 4px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .mobile-nav-menu {
        padding: 16px;
    }

    .mobile-nav-menu .nav-links a {
        padding: 14px 16px;
        font-size: 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .mobile-nav-menu .nav-links a,
    .lang-btn,
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-menu-btn {
        padding: 8px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    header {
        background: white;
        border-bottom: 2px solid black;
    }

    .nav-links a {
        border: 1px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        border-color: currentColor;
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-btn span,
    .mobile-nav-overlay,
    .mobile-nav-menu,
    .nav-links a,
    .lang-btn {
        transition: none;
    }

    .mobile-nav-menu {
        transform: none !important;
    }

    .mobile-nav-overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

    /* Mobile Hero Optimization */
    .page-headline {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Mobile Reviews */
    .reviews-container {
        margin-bottom: 30px;
    }

    .reviews-grid {
        gap: 15px;
        padding: 15px 10px;
        animation-duration: 45s; /* Schneller auf Mobile */
    }

    .review-card {
        flex: 0 0 280px;
        max-width: 280px;
        padding: 18px;
        margin: 0;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .review-avatar {
        margin: 0 auto;
    }

    /* Mobile Form */
    #review-form {
        margin: 0 15px;
    }

    #review-form input,
    #review-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile Buttons */
    .btn {
        font-size: 1rem;
        padding: 12px 20px;
        min-height: 44px; /* iOS touch target */
    }

    /* Mobile Social Widgets */
    .whatsapp-float, .facebook-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
    }

    .whatsapp-float {
        right: 15px;
    }

    .facebook-float {
        right: 75px;
    }

    .whatsapp-float i, .facebook-float i {
        font-size: 22px;
    }

    /* Mobile Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile Maps */
    iframe {
        height: 300px !important;
    }
}

/* Additional mobile breakpoints for hamburger menu */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .review-card:hover {
        transform: none;
    }

    .btn:hover {
        background-color: var(--accent-color);
    }
}
