/**
 * Occasio GmbH - Custom Styles
 * Design System: #E4F3EE (bg), #2CAA7B (primary), #707972 (text), #238765 (hover)
 */

/* CSS Variables */
:root {
    --bg-primary: #E4F3EE;
    --color-primary: #2CAA7B;
    --color-primary-hover: #238765;
    --color-text: #707972;
    --color-white: #FFFFFF;
    --border-color: #E0E0E0;
    --bg-hover: rgba(44, 170, 123, 0.05);
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

p {
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Special Heading Classes */
.jw-heading-100 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.jw-heading-85 {
    font-size: 1.7rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Background */
.occasio-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-primary);
}

/* Body Container */
.occasio-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    margin: 0 auto;
}

/* Mobile Menu - Dunkle Bar passend zu index.html */
.occasio-mobile-menu {
    display: none;
    background: #333333;
    color: #ffffff;
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.occasio-mobile-header-content {
    display: block;
}

.occasio-mobile-text {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.occasio-mobile-text span:first-child {
    font-size: 120%;
    font-weight: 700;
    color: #f0f0f0;
}

.occasio-mobile-text span:last-child {
    color: #f0f0f0;
    opacity: 0.85;
}

.occasio-mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0.5rem;
}

.occasio-icon-burger {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Desktop Header - Dunkle Top-Bar wie index.html */
.header-wrap,
.occasio-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Dunkle Branding-Bar oben */
.header,
.occasio-header {
    background: #333333;
    padding: 1.25rem 2rem;
}

.jw-header-logo,
.occasio-header-logo {
    text-align: center;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.jw-header-title-container,
.occasio-header-title-container {
    display: inline-block;
}

.jw-header-title,
.occasio-header-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    color: #f0f0f0;
    margin: 0;
    display: inline;
    line-height: 1.5;
    text-transform: uppercase;
}

.jw-header-title span,
.occasio-header-title span {
    color: #f0f0f0;
}

.jw-header-title span:last-child,
.occasio-header-title span:last-child {
    font-size: 70%;
    opacity: 0.85;
}

/* Navigation-Bar unterhalb der dunklen Branding-Bar */
.menu.jw-menu-copy,
.occasio-menu-copy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
    background: var(--color-white);
}

/* Helle Navigations-Leiste */
.occasio-nav-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
}

.jw-menu.jw-menu-horizontal,
.occasio-menu-horizontal {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.jw-menu-item,
.occasio-menu-item {
    position: relative;
}

.jw-menu-link,
.occasio-menu-link {
    display: block;
    padding: 0.4rem 0.6rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.jw-menu-link:hover,
.occasio-menu-link:hover {
    color: var(--color-primary);
    background: var(--bg-hover);
}

.jw-menu-is-active .jw-menu-link,
.jw-menu-is-active .occasio-menu-link,
.js-active-menu-item,
.occasio-menu-link-active {
    color: var(--color-primary);
    background: var(--bg-hover);
}

/* Mobile Menu Clone */
.occasio-menu-clone {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    padding: 1rem;
}

.occasio-menu-clone.active {
    display: block;
}

.occasio-menu-clone .occasio-menu-horizontal {
    flex-direction: column;
    align-items: stretch;
}

.occasio-menu-clone .occasio-menu-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Main Content */
.occasio-main {
    flex: 1;
    width: 100%;
}

/* Section Styles */
.jw-section {
    width: 100%;
}

.jw-strip {
    width: 100%;
}

.jw-strip--padding-both {
    padding: 3rem 0;
}

.jw-strip--color-shaded {
    background-color: rgba(255, 255, 255, 0.3);
}

.jw-strip--color-default {
    background-color: var(--color-white);
}

.jw-strip--primary {
    background-color: #f6fbf9;
}

.jw-strip__content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid Layout */
.jw-columns--mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Split Image Section */
.jw-strip--style-split-image {
    display: flex;
    min-height: 500px;
}

.jw-strip--split-image-position-left .jw-strip__image-container {
    order: 1;
}

.jw-strip--split-image-position-left .jw-strip__content-container {
    order: 2;
}

.jw-strip__image-container {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.jw-strip__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Styles */
.jw-image {
    width: 100%;
}

.jw-element-image {
    width: 100%;
    margin: 1rem 0;
}

.jw-element-image__image-wrapper {
    position: relative;
    display: block;
}

.jw-intrinsic {
    position: relative;
    padding-top: 66.67%;
}

.jw-intrinsic__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jw-element-image__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Text Styles */
.jw-image-text {
    margin: 1rem 0;
}

.jw-element-imagetext-text {
    max-width: 100%;
}

.jw-element-imagetext-text h2 {
    margin-bottom: 1rem;
}

/* Spacer */
.jw-spacer {
    clear: both;
}

.jw-element-spacer-container {
    display: block;
}

/* Footer - Dunkle Bar wie index.html */
.occasio-footer {
    background: #333333;
    border-top: none;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.occasio-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.occasio-footer-content p {
    color: #b1b0ac;
    font-size: 0.9rem;
    margin: 0;
}

.occasio-footer-links {
    margin-top: 0.5rem !important;
}

.occasio-footer-links a {
    color: #d0d0d0;
    text-decoration: none;
}

.occasio-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Block Content */
.block-content {
    width: 100%;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .jw-columns--mode-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jw-strip--style-split-image {
        flex-direction: column;
    }

    .jw-strip__image-container {
        flex: 0 0 300px;
    }

    .jw-strip--padding-both {
        padding: 2rem 0;
    }

    .jw-strip__content-container {
        padding: 0 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2, .jw-heading-100 { font-size: 1.5rem; }
    .jw-heading-85 { font-size: 1.3rem; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .occasio-mobile-menu {
        display: flex;
    }

    .header-wrap,
    .occasio-header-wrap {
        display: none;
    }

    .header-wrap.occasio-header-visible,
    .occasio-header-wrap.occasio-header-visible {
        display: block;
        position: static;
    }

    .occasio-menu-copy {
        display: none;
    }

    .occasio-menu-clone {
        position: static;
        border-bottom: 1px solid var(--border-color);
    }

    .jw-strip--padding-both {
        padding: 2rem 0;
    }

    .jw-strip__content-container {
        padding: 0 1rem;
    }

    .occasio-header {
        padding: 1rem;
    }

    h1 { font-size: 2rem; }
    h2, .jw-heading-100 { font-size: 1.5rem; }
    .jw-heading-85 { font-size: 1.3rem; }

    .jw-strip__image-container {
        flex: 0 0 250px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .occasio-header-title {
        font-size: 1.2rem;
    }

    .occasio-mobile-text span:first-child {
        font-size: 110%;
    }

    h1 { font-size: 1.75rem; }
    h2, .jw-heading-100 { font-size: 1.25rem; }
    .jw-heading-85 { font-size: 1.1rem; }
}

/* ============================================================
   FLOATING EMAIL BUTTON (aus index.html Webador-Export)
   ============================================================ */

.email-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(44, 170, 123, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.email-float-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 170, 123, 0.5);
}

.email-float-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@media (max-width: 768px) {
    .email-float-btn {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }

    .email-float-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
   NAVIGATION STYLES (from index.html)
   ============================================================ */

/* Main Menu Container */
.jw-menu {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-family: "Lato", "sans-serif";
    line-height: 1.5;
    text-transform: uppercase;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Items */
.jw-menu-item {
    list-style: none;
}

.jw-menu-link {
    color: #707972;
    background: transparent;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}

/* Hover State */
.jw-menu-link:hover,
.jw-menu-item:hover > .jw-menu-link {
    color: var(--color-primary);
    background: var(--bg-hover);
}

/* Active State */
.jw-menu-is-active > .jw-menu-link,
.js-active-menu-item {
    color: var(--color-primary);
    background: var(--bg-hover);
}

/* Horizontal Menu Layout */
.jw-menu-horizontal {
    flex-direction: row;
    justify-content: center;
}

.jw-menu-horizontal > .jw-menu-item {
    display: inline-flex;
}

/* Mobile Menu Clone (Overlay) */
.jw-menu-clone {
    position: absolute;
    z-index: 1009;
    min-height: calc(100vh - 50px);
    background: var(--color-white);
    box-shadow: 0 0 0 2000vh rgba(0, 0, 0, 0.2);
}
