/*
Theme Name: Deutsche Erden
Description: Minimalistisches Premium-Keramik Theme mit Elementor Pro Kompatibilität
Version: 1.2
Author: Deutsche Erden Team
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 8.5
Elementor tested up to: 3.20
Text Domain: deutsche-erden
*/

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

:root {
    /* Colors - Minimalistic Palette */
    --primary: #000000;
    --secondary: #FFFFFF;
    --accent: #F5F5F5;
    --text: #1A1A1A;
    --border: #E0E0E0;
    --grey-90: #1A1A1A;
    --grey-70: #4A4A4A;
    --grey-50: #808080;
    --grey-20: #CCCCCC;
    --grey-10: #E5E5E5;
    --grey-05: #F5F5F5;
    
    /* Typography */
    --font-primary: -apple-system, 'Helvetica Neue', 'Inter', Arial, sans-serif;
    --font-mono: 'Courier New', monospace;
    --font-serif: 'Crimson Text', Georgia, serif;
    
    /* Fluid Font Sizes - prevents line breaks */
    --fs-xxl: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
    --fs-xl: clamp(1.25rem, 3vw + 0.25rem, 1.714rem);
    --fs-lg: clamp(1.1rem, 2.5vw + 0.1rem, 1.428rem);
    --fs-md: clamp(1rem, 2vw + 0.1rem, 1.142rem);
    --fs-base: clamp(0.875rem, 1.5vw + 0.125rem, 1rem);
    --fs-sm: clamp(0.8rem, 1.2vw + 0.1rem, 0.857rem);
    --fs-xs: clamp(0.7rem, 1vw + 0.1rem, 0.75rem);
    
    /* Spacing - Fibonacci Sequence */
    --space-xs: 8px;
    --space-sm: 13px;
    --space-md: 21px;
    --space-lg: 34px;
    --space-xl: 55px;
    --space-xxl: 89px;
    
    /* Layout */
    --container-width: 1200px;
    --container-wide: 1400px;
    --header-height: 80px;
}

html {
    font-size: clamp(13px, 1.2vw, 14px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--secondary);
    /* Prevent unwanted word breaks */
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

/* Global mobile safety: prevent horizontal scroll and rubber-band overscroll */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;           /* Prevent scroll chaining and pull-to-refresh where supported */
    overscroll-behavior-y: none;
}

/* Smooth animations */
@keyframes highlight-pulse {
    0% { background-color: var(--grey-05); }
    50% { background-color: var(--grey-10); }
    100% { background-color: var(--grey-05); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Highlight animation for errors and important elements */
.highlight {
    animation: highlight-pulse 1s ease-in-out 2;
}

.mini-cart-upsells.highlight {
    animation: highlight-pulse 1.5s ease-in-out 1;
}

/* Make media responsive by default */
img, picture, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Prevent layout shift: use intrinsic ratio via CSS where applicable, not attr() */
}

/* Fluid image container */
.image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Responsive image sizes */
.responsive-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* Header Inline Styles moved from header.php */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-md); flex-direction: column; gap: 4px; }
.menu-toggle-line { width: 20px; height: 2px; background: var(--primary); transition: all 0.2s; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cart-link { font-size: var(--fs-sm); font-weight: 500; letter-spacing: clamp(0.5px, 0.1vw, 1px); text-transform: uppercase; margin-left: var(--space-lg); transition: opacity .15s ease; white-space: nowrap; }
.cart-link:hover { opacity: .8; }
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation { position: relative; z-index: 1001; }
  /* Clean mobile header layout */
  .header-content { 
    display: flex; 
    align-items: center;
    height: 100%;
  }
  .main-navigation { 
    margin-left: auto; 
    display: flex; 
    align-items: center; 
    gap: var(--space-sm); /* Reduced gap to prevent overlap */
  }
  /* Hide language switcher on mobile - will be in hamburger menu */
  .main-navigation .language-switcher { display: none !important; }
  .main-navigation .header-cart { order: 1; }
  .main-navigation .menu-toggle { order: 2; margin-left: var(--space-sm); }
  /* Ensure menu is hidden by default on mobile; only visible when toggled */
  .main-navigation ul { 
    display: none !important; 
    position: fixed; 
    top: var(--header-height); 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: var(--secondary); 
    border-top: 1px solid var(--primary); 
    flex-direction: column; 
    padding: var(--space-lg); 
    gap: var(--space-md); 
    overflow-y: auto;
    overscroll-behavior: contain;        /* Avoid page bounce while scrolling the menu */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    z-index: 9999; /* Ensure menu is above everything */
  }
  .main-navigation.toggled ul { display: flex !important; }
  .main-navigation a { display: block; padding: 12px 0; font-size: 1rem; }
  body.menu-open { overflow: hidden; position: fixed; width: 100%; }
  .cart-link { margin-left: 0; padding: 8px 0; }
  .site-logo { font-size: 0.928rem; }
  /* Hide search and cart inside mobile panel to reduce clutter (keep language switcher visible) */
  .main-navigation.toggled .site-search,
  .main-navigation.toggled .header-cart { display: none; }
  .main-navigation.toggled .mobile-search-item { display: block; }
  .main-navigation .mobile-search-item { padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); margin-bottom: var(--space-md); }
  .main-navigation .mobile-search-item .site-search.mobile { display: block; }
  .main-navigation .mobile-search-item .search-field { width: 100%; padding: 10px 12px; border: 1px solid var(--border); }
  /* Mobile header: compact layout */
  .header-content { gap: var(--space-md); padding-right: var(--space-md); }
  /* Hide the header search form below 768px (ensure override) */
  .main-navigation > .site-search { display: none !important; }
  /* Avoid overlap with WP admin bar on mobile */
  .admin-bar .main-navigation ul { top: calc(var(--header-height) + 46px); } /* Mobile admin bar is 46px */
}

/* Mobile menu close button styling */
/* Hide close button by default (desktop) */
.menu-close-item { display: none !important; }
/* Hide mobile search by default (desktop) */
.mobile-search-item { display: none !important; }
/* Hide mobile language by default (desktop) */
.mobile-language-item { display: none !important; }

@media (max-width: 768px) {
  /* Show close button only when menu is toggled on mobile */
  .main-navigation.toggled .menu-close-item { 
    display: block !important; 
    list-style: none; 
    margin-bottom: var(--space-md); 
  }
  .menu-close-button { 
    width: 100%; 
    padding: 10px 12px; 
    border: 2px solid var(--primary); 
    background: var(--primary); 
    color: var(--secondary); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: .9rem; 
    cursor: pointer;
  }
  .menu-close-button:active { transform: scale(0.98); }
  
  /* Language switcher in mobile menu */
  .main-navigation.toggled .mobile-language-item { 
    display: block !important; 
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
  }
  .mobile-language-item .language-switcher {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
  }
  .mobile-language-item .language-option {
    font-size: 0.857rem;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .mobile-language-item .language-option.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
  }
  .mobile-language-item .language-separator {
    display: none;
  }
}

/* Medium devices */
@media (max-width: 1024px) {
  .container { max-width: 92vw; }
  .container-wide { max-width: 96vw; }
  /* Also hide header search on tablets for consistency */
  .main-navigation > .site-search { display: none !important; }
}

/* Footer Inline Styles moved from footer.php */
.site-footer { background: var(--secondary); border-top: 1px solid var(--primary); padding: var(--space-xxl) 0 var(--space-lg); margin-top: var(--space-xxl); }
.footer-content { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-lg); align-items: start; text-align: center; }
.footer-logo { font-size: var(--fs-md); font-weight: 700; letter-spacing: clamp(0.5px, 0.1vw, 1px); text-transform: uppercase; margin-bottom: var(--space-sm); white-space: nowrap; }
.footer-tagline { font-size: var(--fs-sm); opacity: 0.7; text-transform: uppercase; letter-spacing: clamp(0.3px, 0.05vw, 0.5px); }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-navigation a { font-size: var(--fs-sm); font-weight: 500; text-transform: uppercase; letter-spacing: clamp(0.5px, 0.1vw, 1px); opacity: 0.8; white-space: nowrap; }
.footer-navigation a:hover { opacity: 1; }
.footer-meta { text-align: right; }
.footer-meta p { font-size: var(--fs-xs); margin: 0; line-height: 1.8; text-transform: uppercase; letter-spacing: clamp(0.3px, 0.05vw, 0.5px); opacity: 0.6; }
.made-in { font-weight: 700; opacity: 0.8 !important; }
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: var(--space-lg); }
  .footer-meta { text-align: center; }
  .footer-navigation ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
}
/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: clamp(0.5px, 0.1vw, 2px);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    /* Improved text wrapping */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-sm); }

p {
    margin-bottom: var(--space-md);
    /* Better text flow */
    text-wrap: pretty;
    orphans: 3;
    widows: 3;
}

a { color: var(--primary); text-decoration: none; text-underline-offset: 2px; transition: color .15s ease, text-decoration-color .15s ease, opacity .15s ease; }
a:hover { text-decoration: underline; }

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Full width utility for blocks/sections */
.full-width,
.alignwide,
.alignfull { width: 100%; }
.alignfull { margin-left: auto; margin-right: auto; }
.wp-block-image.alignfull img,
.wp-block-cover.alignfull,
.wp-block-gallery.alignfull { width: 100%; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    box-sizing: border-box;
    padding: 0; /* equal spacing handled by vertical centering within fixed height */
    background: var(--secondary);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    z-index: 1000;
}
@media (max-width: 768px) { 
    .site-header { 
        border-top-width: 2px; 
        border-bottom-width: 2px; 
        padding: 0; /* avoid changing effective header height on mobile */
    } 
}

/* Ensure header is visible when WordPress admin bar is present */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Desktop navigation link vertical padding for balanced header spacing */
@media (min-width: 769px) {
  .main-navigation { height: 100%; }
  .main-navigation ul { height: 100%; }
  .main-navigation li { height: 100%; display: flex; align-items: center; }
  .main-navigation a {
    line-height: normal;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 0; /* no extra vertical padding */
  }
  .main-navigation a::after { bottom: 6px; }
}

/* Announcement bar */
.announcement-bar { background: var(--secondary); border-bottom: 1px solid var(--primary); }
.announcement-bar .announcement-inner { display: flex; justify-content: center; align-items: center; padding: 6px 0; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: clamp(0.5px, 0.1vw, 1px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* On homepage, remove any divider under header so hero can flush to top */
.home .site-header { border-top: none; border-bottom: none; }
.home .announcement-bar { border-bottom: none; }

/* Ensure header content vertically fills header and centers */
.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.site-logo {
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
    text-transform: uppercase;
    white-space: nowrap;
}

.main-navigation ul {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a { font-size: var(--fs-sm); font-weight: 500; letter-spacing: clamp(0.5px, 0.1vw, 1px); text-transform: uppercase; position: relative; white-space: nowrap; }
.main-navigation a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; opacity: 0; transform: scaleX(.5); transition: opacity .2s ease, transform .2s ease; }
.main-navigation a:hover::after, .main-navigation a:focus-visible::after { opacity: .35; transform: scaleX(1); }
.main-navigation a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Main Content */
.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}
/* Product pages manage their own offset via breadcrumb/product container */
.single-product .site-main { margin-top: 0; }
/* tighten top whitespace on single product just below fixed header */
.single-product .site-main .breadcrumb-section { margin-top: 0; }

#primary-content { outline: none; }

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.857rem;
    font-weight: 500;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
    text-align: center;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
}

.btn:hover {
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

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

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xxl) 0;
}
/* Fix grid overflow by removing unintended borders/gaps on items */
.product-card, .product-grid-item { border: 1px solid var(--border); background: var(--secondary); }

/* If first section on homepage uses a section class from widgets, remove top divider */
.home .deutsche-erden-widget:first-child,
.home .de-section:first-child,
.home .de-split:first-child,
.home .de-marquee:first-child {
    border-top: none;
}

.product-card {
    border: 1px solid transparent;
    background: var(--secondary);
    cursor: pointer;
    transition: border-color 0.2s, transform .15s ease;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.product-image {
    height: 300px;
    background: var(--grey-05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.product-card-image img, .product-image img {
    transition: filter .25s ease, transform .25s ease;
    filter: grayscale(100%);
}
.product-card:hover .product-card-image img,
.product-grid-item:hover .product-image img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.product-info {
    padding: var(--space-lg);
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.product-price {
    font-size: 1rem;
    opacity: 0.8;
}

/* Technical Specifications */
.tech-specs {
    background: var(--grey-05);
    padding: var(--space-lg);
    border-left: 2px solid var(--primary);
    margin: var(--space-lg) 0;
}

.tech-specs h3 {
    font-size: 0.857rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.spec-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.857rem;
    line-height: 2;
    color: var(--grey-70);
}

/* Poetry Section */
.poetry-section {
    padding: var(--space-lg);
    background: var(--grey-05);
    border-left: 2px solid var(--primary);
    margin: var(--space-lg) 0;
}

.poetry-text {
    font-family: var(--font-serif);
    font-size: 1.142rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.poet-name {
    font-size: 0.857rem;
    color: var(--grey-70);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hidden Elements */
.hidden-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden-content.revealed {
    display: block;
    opacity: 1;
}

.monogram-hint {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--primary);
    color: var(--secondary);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.714rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.monogram-hint.visible {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
    /* Better text flow */
    text-wrap: pretty;
    orphans: 3;
    widows: 3;
}

.form-label {
    display: block;
    font-size: 0.857rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    background: var(--secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Contact form layout tweaks */
.de-contact-form .button { width: 100%; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.857rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-mono { font-family: var(--font-mono); }
.text-serif { font-family: var(--font-serif); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-lg { padding-top: var(--space-lg); }
.pb-lg { padding-bottom: var(--space-lg); }

/* Variation swatches */
.de-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.de-swatch { border: 1px solid var(--border); background: var(--secondary); padding: 6px 10px; text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.de-swatch:hover { border-color: var(--primary); }
.de-swatch.active { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.single_add_to_cart_button.disabled{ opacity:.5; cursor:not-allowed; }

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-xs: 6px;
        --space-sm: 10px;
        --space-md: 16px;
        --space-lg: 24px;
        --space-xl: 40px;
        --space-xxl: 60px;
        --header-height: 56px;
    }
    
    .container,
    .container-wide {
        padding: 0 var(--space-md);
    }
    
    .main-navigation ul {
        gap: var(--space-md);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    h1 { font-size: 1.428rem; }
    h2 { font-size: 1.286rem; }
    .site-main { margin-top: var(--header-height); }
    /* Mobile: improve nav spacing */
    .main-navigation ul { padding: var(--space-md); gap: var(--space-md); }
    .cart-link { padding: 8px 0; }
}

/* No animations, no transitions for non-essential elements */
/* Only functional hover states */ 

/* =============================
   Header refinements (additions)
   ============================= */
.site-branding img.custom-logo { height: 40px; width: auto; }
.header-content { gap: var(--space-lg); }
.main-navigation { display: flex; align-items: center; }
.main-navigation .language-switcher { margin-left: var(--space-lg); }
.main-navigation .language-switcher .language-option { font-size: 0.857rem; opacity: .55; color: var(--text); transition: opacity .15s ease, color .15s ease, background .15s ease; padding: 6px 10px; border: 1px solid transparent; }
.main-navigation .language-switcher .language-option.active { opacity: 1; font-weight: 700; color: var(--secondary); background: var(--primary); border-color: var(--primary); }
.main-navigation .language-switcher .language-option:hover { opacity: .8; }
.main-navigation .language-switcher .language-separator { margin: 0 8px; opacity: .4; }

@media (max-width: 768px) {
  .site-header { height: 56px; }
  .site-branding img.custom-logo { height: 32px; }
}

/* Make nav items align by header height using line-height for perfect centering */
@media (min-width: 769px) {
  .main-navigation a {
    line-height: calc(var(--header-height));
  }
  .main-navigation a::after {
    bottom: 8px; /* keep underline slightly above the border */
  }
}

/* Language switcher adjustments to avoid overlap */
.main-navigation .language-switcher { display: flex; align-items: center; height: 100%; }
.main-navigation .language-switcher .language-option {
  padding: 0 10px;
  line-height: calc(var(--header-height));
  display: inline-block;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
}
.main-navigation .language-switcher .language-option.active {
  font-weight: 700;
  color: var(--secondary);
  background: var(--primary);
  line-height: calc(var(--header-height));
}
@media (max-width: 768px) {
  .main-navigation .language-switcher .language-option,
  .main-navigation .language-switcher .language-option.active {
    line-height: 44px;
  }
}

/* Remove swatch-specific styles (reverted) */

/* =============================
   Cookie banner
   ============================= */
.de-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--secondary); border-top: 1px solid var(--border); z-index: 99999; }
.de-cookie-banner .cookie-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-md); align-items: center; padding: var(--space-md) 0; }
.de-cookie-banner .cookie-text { margin: 0; font-size: .9rem; }
.de-cookie-banner .cookie-link { text-decoration: underline; }
.de-cookie-banner .cookie-actions { display: flex; gap: var(--space-sm); }
@media (max-width: 768px) {
  .de-cookie-banner .cookie-row { grid-template-columns: 1fr; }
  .de-cookie-banner .cookie-actions { justify-content: flex-start; }
}

/* =============================
   OpenMaps (Nominatim) suggestions
   ============================= */
.de-om-suggest { position: absolute; z-index: 9999; background: var(--secondary); border: 1px solid var(--border); width: 100%; max-height: 220px; overflow: auto; }
.de-om-suggest a { display: block; padding: 8px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.de-om-suggest a:hover { background: var(--grey-05); }

/* =============================
   Elementor full-width support
   ============================= */
/* Remove container padding limits on Elementor pages */
.elementor-page .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.elementor-page .entry-content { max-width: none; padding: 0; }

/* Allow Elementor root to break out of theme container to 100vw */
.elementor-page .entry-content > .elementor,
.elementor-page .entry-content > .elementor-section,
.elementor-page .entry-content > .elementor-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Respect Elementor's stretched sections */
.elementor-section.elementor-section-stretched {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}