/* ==========================================================================
   Design System & Variable Tokens
   ========================================================================== */
:root {
    /* Color Palette - Warm Scandi-Boho (Extracted from real photos & logo) */
    --bg-main: #fbf9f5;         /* Soft warm white / cream paper tone */
    --bg-secondary: #f5efe6;    /* Soft warm sand / light beige */
    
    --text-main: #3c3530;       /* Natural warm charcoal / dark bark brown */
    --text-muted: #706358;      /* Muted earthy brown */
    
    /* Accents ("Rosa Blau Aquar") */
    --accent-rose: #d69e96;     /* Warm, muted pastel rose */
    --accent-aquar: #9db3b5;    /* Soft, calming aquamarine / blue-grey */
    --accent-wood: #cda080;     /* Natural cedar wood tone */
    
    --accent-rose-hover: #c48b83;
    --accent-aquar-hover: #889e9f;
    
    /* Spacing & Borders */
    --border-radius: 16px;      /* Softer corners for warm Scandi feel */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 10px 30px rgba(60, 53, 48, 0.04);
    --shadow-medium: 0 15px 40px rgba(60, 53, 48, 0.08);
}

/* ==========================================================================
   Core Reset & Sticky Footer Layout
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sticky Footer Key Rules */
.main-content-area {
    flex: 1 0 auto;
    width: 100%;
    margin-top: 150px; /* Offset for the sticky navbar with large logo */
}

footer {
    flex-shrink: 0;
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }

.script-font {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==========================================================================
   Interactive Elements & Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-rose);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(214, 158, 150, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 158, 150, 0.45);
}

.btn-secondary {
    background-color: var(--accent-aquar);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(157, 179, 181, 0.35);
}

.btn-secondary:hover {
    background-color: var(--accent-aquar-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 179, 181, 0.45);
}

/* ==========================================================================
   Header & Navbar (Clean Logo, No Multiply)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: rgba(251, 249, 245, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(112, 99, 88, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo Image rules - Clean transparency, no blend mode, proper bounds */
.logo-image {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-image-link {
    display: block;
}

.logo-text-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Navigation Links */
.nav-links,
.nav {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li,
.nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a,
.nav li a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #3c3530;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav li a:hover,
.nav-links li.nav-current a,
.nav li.nav-current a {
    color: var(--accent-rose);
}

.nav-links li a::after,
.nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-rose);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1010;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 1.5rem;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(251, 249, 245, 0.4) 0%, rgba(245, 239, 230, 0.8) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: 5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Great Vibes', cursive;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */
.section {
    padding: 6rem 8%;
    position: relative;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem;
}

.section-subtitle-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-aquar);
    margin-bottom: 0.75rem;
}

.section-title-elegant {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.section-title-elegant span {
    display: block;
    font-size: 4rem;
    font-weight: 400;
    color: var(--accent-rose);
    margin-top: -0.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Info Cards & Store Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(112, 99, 88, 0.03);
    display: flex;
    flex-direction: column;
}

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

.card-badge {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-meta-list {
    list-style: none;
    border-top: 1px solid rgba(112, 99, 88, 0.08);
    padding-top: 1.5rem;
}

.card-meta-list li {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}

.card-meta-list li strong {
    color: var(--text-main);
    width: 110px;
    flex-shrink: 0;
}

/* Handcraft showcase */
.about-box {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-box-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-box-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-box-content {
    flex: 1.2;
}

.about-bullets {
    margin-top: 2rem;
}

.bullet-item {
    margin-bottom: 1.75rem;
}

.bullet-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.bullet-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Post Feed & Galerie Grid
   ========================================================================== */
.post-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card-image-wrap {
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-aquar);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(112, 99, 88, 0.08);
    padding-top: 1rem;
}

/* ==========================================================================
   Page & Post Templates Layouts
   ========================================================================== */
.site-main-content {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.site-page-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.site-page-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.site-page-image-wrap {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 4rem;
}

.site-page-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Clean Dynamic Content Styles (Supports Editor Markup natively) */
.gh-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-main);
}

.gh-content p {
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.gh-content h1, 
.gh-content h2, 
.gh-content h3, 
.gh-content h4 {
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.gh-content h2 { font-size: 2rem; }
.gh-content h3 { font-size: 1.6rem; }

.gh-content ul, 
.gh-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.gh-content li {
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.gh-content blockquote {
    border-left: 3px solid var(--accent-rose);
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gh-content figure {
    margin: 3rem 0;
}

.gh-content figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

/* Ghost Native Card Styles */
.kg-card {
    margin: 3rem 0;
    width: 100%;
}

.kg-image-card img {
    margin: 0 auto;
}

.kg-width-wide .kg-image {
    max-width: 1080px;
    width: 100%;
}

.kg-width-full .kg-image {
    max-width: 100vw;
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 5rem 8% 2rem;
    border-top: 1px solid rgba(251, 249, 245, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--accent-rose);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: #bfaea0;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-contact h4,
.footer-social h4 {
    color: var(--bg-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.75rem;
}

.footer-contact p,
.footer-social p {
    color: #bfaea0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer-contact .opening-hours {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(251, 249, 245, 0.1);
}

.footer-social a {
    color: #bfaea0;
    border-bottom: 1px dashed rgba(191, 174, 160, 0.4);
}

.footer-social a:hover {
    color: var(--accent-rose);
    border-bottom-color: var(--accent-rose);
}

.footer-location-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent-rose);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(214, 158, 150, 0.2);
}

.footer-location-btn:hover {
    background-color: var(--accent-rose-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 158, 150, 0.35);
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 1.2rem;
    align-items: center;
}

.footer-social-icon {
    color: #fbf9f5;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-icon:hover {
    color: var(--accent-rose) !important;
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(251, 249, 245, 0.1);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    color: #8c7e73;
    margin: 0;
    font-weight: 300;
}

.footer-secondary-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-secondary-nav ul li a,
.footer-secondary-nav-fallback a {
    font-size: 0.85rem;
    color: #bfaea0;
    font-weight: 400;
}

.footer-secondary-nav ul li a:hover,
.footer-secondary-nav-fallback a:hover {
    color: var(--accent-rose);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Responsive Logo & Header heights on mobile */
    .logo-image,
    .site-nav-logo img {
        max-height: 80px !important;
    }
    
    .main-content-area {
        margin-top: 110px !important;
    }

    /* Header menu mobile */
    .nav-links {
        position: fixed;
        top: 96px;
        left: -100%;
        background-color: var(--bg-main);
        width: 100%;
        height: calc(100vh - 96px);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2.5rem;
        transition: var(--transition);
        border-top: 1px solid rgba(112, 99, 88, 0.05);
        box-shadow: 0 15px 30px rgba(60, 53, 48, 0.05);
    }
    
    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Sections */
    .section {
        padding: 4rem 5%;
    }
    .section-title-elegant {
        font-size: 2.25rem;
    }
    .section-title-elegant span {
        font-size: 3rem;
    }

    /* About box split */
    .about-box {
        flex-direction: column;
        gap: 3rem;
    }

    /* Footer mobile columns */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-secondary-nav ul {
        justify-content: center;
    }
}

/* ==========================================================================
   Standorte Page Layout Adjustments (Overrides Inline Editor Styles)
   ========================================================================== */
/* ==========================================================================
   Standorte Page Layout Adjustments (Overrides Inline Editor Styles)
   ========================================================================== */
/* Expand content width specifically for the Standorte page to 1200px */
.page-standorte .site-main-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.custom-location-container,
.location-card-hofladen,
.location-card-podologie {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;
    align-items: start !important;
    margin: 60px 0 !important;
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.custom-location-container > div,
.location-card-hofladen > div,
.location-card-podologie > div {
    flex: 1 !important;
    min-width: 0 !important; /* Force override inline editor min-width to prevent overlaps */
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Force word wrap on headings inside these containers to prevent long words from overflowing */
.custom-location-container h2,
.custom-location-container h3,
.location-card-hofladen h2,
.location-card-hofladen h3,
.location-card-podologie h2,
.location-card-podologie h3 {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.custom-location-container > div:last-child,
.location-card-hofladen > div:last-child,
.location-card-podologie > div:last-child {
    display: block !important;
}

.custom-location-container > div:last-child > div,
.location-card-hofladen > div:last-child > div,
.location-card-podologie > div:last-child > div {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    border: 1px solid #eee !important;
}

.custom-location-container iframe,
.location-card-hofladen iframe,
.location-card-podologie iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 480px !important; /* Height increased to 480px for a beautiful wide layout */
    border: 0 !important;
    display: block !important;
}

@media (max-width: 768px) {
    .custom-location-container,
    .location-card-hofladen,
    .location-card-podologie {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin: 40px 0 !important;
        padding: 0 !important;
    }
    
    .custom-location-container iframe,
    .location-card-hofladen iframe,
    .location-card-podologie iframe {
        height: 350px !important;
    }
}
