/* =====================================================
   Soßna Malereibetrieb GmbH — Modern Precision
   Design System & Styles
   ===================================================== */

:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: rgba(30, 41, 59, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #818cf8);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 20px;
    border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

section {
    padding: 100px 0;
}

/* =====================================================
   Navigation
   ===================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-top: 4px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-vibrant, #f3f4f6);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--primary);
}

.accent-text {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 10vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* =====================================================
   Services
   ===================================================== */
.services {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
}

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

.service-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-card.highlight {
    background: var(--primary);
    color: var(--white);
}

.service-card.highlight h3, .service-card.highlight p {
    color: var(--white);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.highlight .service-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.reviews-header-main h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: 700;
}

/* =====================================================
   Google Reviews
   ===================================================== */
.reviews-section {
    padding: 80px 0;
}

.reviews-header.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.reviews-header-main .section-subtitle {
    margin-bottom: 12px;
}

.google-trust-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    max-width: 520px;
    width: 100%;
    gap: 20px;
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.google-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 15px;
    border-right: 1px solid var(--border);
}

.google-info img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}

.rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.rating-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.rating-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rating-stars {
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.trust-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.trust-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.trust-action:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.reviews-container {
    position: relative;
    overflow-x: auto;
    padding: 20px 0 40px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.reviews-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.reviews-slider {
    display: flex;
    gap: 30px;
}

.review-card-modern {
    background: var(--white);
    min-width: 350px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card-more {
    background: var(--bg-alt);
    min-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 16px;
    border: 2px dashed var(--border);
    transition: var(--transition);
    text-align: center;
}

.review-card-more:hover {
    border-color: var(--accent);
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.more-content i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.more-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
}

.more-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.review-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.initial-box {
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.auth-name h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--primary);
}

.auth-stars {
    color: #f59e0b;
    font-size: 0.8rem;
}

.review-modern-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =====================================================
   Smart Inquiry Form
   ===================================================== */
.inquiry-section {
    background: var(--primary);
    color: var(--white);
}

.inquiry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.inquiry-info h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.method span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

.method strong {
    font-size: 1.2rem;
}

.inquiry-form-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.project-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.type-option input {
    display: none;
}

.type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--bg-alt);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.85rem;
}

.type-option input:checked + .type-box {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.m2-control {
    display: flex;
    align-items: center;
}

.m2-control input {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    outline: none;
}

.m2-control .unit {
    background: var(--bg-alt);
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

.file-upload-area {
    border: 2px dashed var(--border);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--accent);
    background: var(--bg-alt);
}

.file-upload-area i {
    display: block;
    margin: 0 auto 10px;
    color: var(--accent);
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: visible;
    transition: var(--transition);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.preview-item:hover .remove-btn {
    opacity: 1;
    transform: scale(1);
}

.remove-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.remove-btn i {
    width: 14px;
    height: 14px;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    padding: 80px 0 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

footer h4 {
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-branding a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.footer-branding a:hover {
    filter: brightness(1.2);
}

/* =====================================================
   WhatsApp Float
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Pre-Footer Section */
.pre-footer {
    background: var(--bg-alt);
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: flex-start;
}

.footer-contact-form h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

#footer-contact .form-group {
    margin-bottom: 20px;
}

#footer-contact input, #footer-contact textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

#footer-contact input:focus, #footer-contact textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

#footer-contact textarea {
    height: 120px;
    resize: none;
}

.location-card-wrapper h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.location-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: #e5e7eb;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    font-weight: 500;
}

.detail-item i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    align-self: flex-start;
}
.tooltip {
    position: absolute;
    right: 80px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(-10px);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 150px;
    }
    
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 50vh;
        clip-path: none;
    }
    
    .hero-content {
        padding: 60px 24px;
        max-width: 100%;
    }
    
    .inquiry-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
    }

    .pre-footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .project-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .google-trust-card {
        flex-direction: column;
        border-radius: 24px;
        padding: 24px;
        gap: 15px;
        max-width: 340px;
        margin: 0 auto;
    }

    .google-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .rating-wrap {
        align-items: center;
    }

    .trust-text {
        width: 100%;
        text-align: center;
    }

    .trust-action {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Helpers */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.fade-up-delay { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s 0.2s forwards; }
.fade-up-delay-2 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s 0.4s forwards; }
.fade-in { opacity: 0; animation: fadeInOnly 1s forwards; }

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

@keyframes fadeInOnly {
    to { opacity: 1; }
}
