/* Maison23 Website - Gemeinsame Basis Styles */

/* Font Import - Wix-ähnliche Schriftarten */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Nunito+Sans:wght@200;300;400;500;600;700&display=swap');

/* CSS Variables für Konsistenz */
:root {
    --accent-blue: #4A90E2;
    --accent-blue-light: #E8F3FF;
    --accent-blue-shadow: rgba(74, 144, 226, 0.1);
    --accent-blue-hover: #3580D1;
    --text-primary: #1e1e1e;
    --text-secondary: #555;
    --text-light: #666;
    --background-light: #f9f9f9;
    --border-light: #e0e0e0;
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 25px rgba(74, 144, 226, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: auto;
}

body {
    font-family: "Nunito Sans", "Avenir", "Avenir Next", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary, #1e1e1e);
    background-color: #ffffff;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    text-align: center;
    padding: 15px 0;
    background: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #1e1e1e;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Navigation */
.navbar {
    margin-bottom: 0;
    padding: 10px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue, #4A90E2);
    background-color: var(--accent-blue-light, #E8F3FF);
    transform: translateY(-1px);
}

/* Page Content */
.page-content {
    margin-top: 120px;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    background: white;
}

/* Wix UI Typography */
.wixui-rich-text__text {
    font-family: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1e1e1e;
    line-height: 1.6;
}

/* Info Sections - General */
.info-sections {
    padding: 60px 0;
    background: #fafafa;
}

.info-block {
    margin-bottom: 50px;
    text-align: center;
}

.info-block h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-blue, #4A90E2);
    margin-bottom: 30px;
    text-align: center;
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 40px 0;
    color: #1e1e1e;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }
    
    .main-title {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-content {
        margin-top: 140px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 15px;
        font-size: 12px;
    }
    
    .main-title {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-content {
        margin-top: 130px;
    }
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Enhanced Navigation Transitions */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

/* Content Area Transitions */
main {
    animation: pageSlideIn 0.5s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Grid Items Staggered Animation */
.info-grid > *,
.hausinfos-grid > *,
.wissenswertes-grid > * {
    animation: fadeInStagger 0.6s ease-out backwards;
}

.info-grid > *:nth-child(1),
.hausinfos-grid > *:nth-child(1),
.wissenswertes-grid > *:nth-child(1) {
    animation-delay: 0.1s;
}

.info-grid > *:nth-child(2),
.hausinfos-grid > *:nth-child(2),
.wissenswertes-grid > *:nth-child(2) {
    animation-delay: 0.2s;
}

.info-grid > *:nth-child(3),
.hausinfos-grid > *:nth-child(3),
.wissenswertes-grid > *:nth-child(3) {
    animation-delay: 0.3s;
}

.info-grid > *:nth-child(4),
.hausinfos-grid > *:nth-child(4),
.wissenswertes-grid > *:nth-child(4) {
    animation-delay: 0.4s;
}

.info-grid > *:nth-child(5),
.hausinfos-grid > *:nth-child(5),
.wissenswertes-grid > *:nth-child(5) {
    animation-delay: 0.5s;
}

.info-grid > *:nth-child(6),
.hausinfos-grid > *:nth-child(6),
.wissenswertes-grid > *:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Smooth Hover Transitions for Cards */
.info-item,
.hausinfos-item,
.wissenswertes-item,
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover,
.hausinfos-item:hover,
.wissenswertes-item:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}