/* CSS Variables */
:root {
    --wilfloor-primary: #1a317a;
    --wilfloor-secondary: #2d3748;
    --wilfloor-accent: #a24a08;
    --wilfloor-wood: #7d4f09;
    --wilfloor-stone: #5a6570;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --white: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a317a;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a317a;
}

.section-title {
    font-size: 2.5rem;
    color: var(--wilfloor-primary);
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.text-content {
    font-size: 1.125rem;
    color: #1a317a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Layout */
.container {
    max-width: 87.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.bg-gray {
    background-color: var(--gray-50);
}

.bg-white {
    background-color: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 4rem;
}

/* Utility classes to match Tailwind */
.fixed {
    position: fixed;
}

.w-full {
    width: 100%;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

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

.h-16 {
    height: 4rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-wilfloor-primary {
    color: #1a317a;
}

.hidden {
    display: none;
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2rem;
}

.text-gray-700 {
    color: #1a317a;
}

.hover\:text-wilfloor-primary:hover {
    color: var(--wilfloor-primary);
}

.transition {
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobile Menu */
.border-t {
    border-top: 1px solid #e5e7eb;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}

.block {
    display: block;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    color: #1a317a;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--wilfloor-primary);
}

nav h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a317a;
    margin: 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1a317a 0%, #3f4755 100%);
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2053&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 2rem);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--wilfloor-accent);
    color: white;
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.3);
}

.btn-primary:hover {
    background-color: rgba(180, 83, 9, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(180, 83, 9, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 3px solid white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--wilfloor-primary);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--wilfloor-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background-color: var(--wilfloor-secondary);
    color: white;
}

.full-width {
    width: 100%;
}

/* About Section */
.about-section .section-title {
    text-align: left;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    color: var(--gray-700);
    font-weight: 500;
}

.image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--wilfloor-accent);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.badge-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    color: #1a317a;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 5rem;
    height: 5rem;
    background-color: #1a317a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    color: #1a317a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.step-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.step-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a317a;
    margin-bottom: 0.5rem;
}

.trust-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Project Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    group: hover;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

/* Filter für authentisches Aussehen - Bilder 1 und 4 (Wohnzimmer und Badezimmer) */
.project-item:nth-child(1) img,
.project-item:nth-child(4) img {
    filter: saturate(0.85) contrast(1.15) brightness(0.92) sepia(0.08) hue-rotate(8deg) blur(0.3px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-item:nth-child(1):hover img,
.project-item:nth-child(4):hover img {
    filter: saturate(0.95) contrast(1.05) brightness(0.98) sepia(0.04) hue-rotate(4deg) blur(0px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 49, 122, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    margin-bottom: 1.5rem;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--wilfloor-primary);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.testimonial-text {
    color: #1a317a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
}

/* Contact Section */
.contact-section .section-title {
    text-align: left;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #1a317a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0;
}

.business-hours {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.business-hours h3 {
    color: #1a317a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item span:first-child {
    color: var(--gray-600);
}

.hours-item span:last-child {
    font-weight: 600;
    color: #1a317a;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    color: #1a317a;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wilfloor-primary);
}

/* Legal Pages */
.legal-page {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-content h1 {
    color: #1a317a;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: #1a317a;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1a317a;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #1a317a;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: #1a317a;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #a24a08;
}

/* Footer */
.footer {
    background-color: var(--wilfloor-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 16px 20px;
    border-radius: 50px 0 0 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: -4px 0 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: whatsapp-slide 3s ease-in-out infinite;
    min-width: 60px;
}

.whatsapp-button a:hover {
    background: #20b858;
    transform: translateX(-10px);
    box-shadow: -8px 0 30px rgba(37, 211, 102, 0.6);
    padding-right: 30px;
}

.whatsapp-button a:hover span {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-button span {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

@keyframes whatsapp-slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* Mobile responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-button {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .whatsapp-button a {
        padding: 12px;
        border-radius: 50%;
        min-width: auto;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
    
    .whatsapp-button span {
        display: none !important;
    }
    
    .whatsapp-button a:hover {
        transform: scale(1.1);
        padding: 12px;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cookie-icon {
    font-size: 1.5rem;
    color: #1a317a;
}

.cookie-text p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
}

.cookie-text p:first-child {
    margin-bottom: 0.25rem;
}

.cookie-link {
    color: #1a317a;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-reject {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    color: #374151;
    background: #f9fafb;
}

.btn-accept {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: white;
    background: #1a317a;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accept:hover {
    background: #2d4a99;
}

.btn-close {
    padding: 0.25rem;
    font-size: 1.125rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: #374151;
}

@media (max-width: 640px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-buttons {
        align-self: stretch;
        justify-content: space-between;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-badge {
        bottom: 1rem;
        right: 1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .features {
        flex-direction: row;
        gap: 1rem;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials {
        grid-template-columns: repeat(3, 1fr);
    }
}