/* Art Matters — Tour Conference Pages
 * Shared stylesheet for Hamburg, Cologne and Munich conference pages.
 * Extracted from Hamburg inline CSS (canonical).
 */

        @font-face {
            font-family: 'OptimaLTPro';
            src: url('../fonts/OptimaLTPro-Roman.otf') format('opentype');
        }

        @font-face {
            font-family: 'OptimaLTbold';
            src: url('../fonts/OptimaLTPro-Bold.otf') format('opentype');
        }

        @font-face {
            font-family: 'OptimaLTbolditalic';
            src: url('../fonts/OptimaLTPro-BoldItalic.otf') format('opentype');
        }

        body {
            margin: 0;
            font-family: 'OptimaLTPro', serif;
            /* Updated to use the new font */
            
            overflow-x: hidden;
            height: 100vh;
        }

        section {
            position: relative;
            height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            color: black;
            padding: 20px;
            background-color: white;
            margin: 0 auto;
            overflow: hidden;
            flex-direction: column;
            max-width: 100%;
            z-index: 1;
        }

        /* Left Container: Text on the left, Image on the right */
        /* This container displays text on the left and an image on the right */
        .content-container-L {
            display: grid;
            grid-template-columns: 470px 500px; /* Fixed widths ensure alignment */
            align-items: start;
            column-gap: 70px;
            max-width: 100%;
            height: auto;
            padding: 50px;
            box-sizing: border-box;
            border-bottom: 1px solid grey;
        }

        /* Right Container: Image on the left, Text on the right */
        /* This container displays an image on the left and text on the right */
        .content-container-R {
            display: grid;
            grid-template-columns: 500px 470px; /* Fixed widths ensure alignment */
            align-items: start;
            column-gap: 70px;
            max-width: 100%;
            height: auto;
            padding: 50px;
            box-sizing: border-box;
            border-bottom: 1px solid grey;
        }

        .text-left,
        .text-right {
            text-align: justify;
            line-height: 23px;
            margin: 0;
            padding: 0;
        }

        figure {
            margin: 0;
            padding: 0;
            display: block;
            /* Let figure behave as a block-level element */
        }

        .section-image-R {
            width: 500px;
            height: 337px;
            object-fit: cover;
            object-position: center;
            filter: contrast(100%) brightness(90%);
            margin: 0 0 0 30px; /* Added margin-left of 30px */
            padding: 0;
            display: block;
        }

        .section-image-L {
            width: 500px;
            height: 337px;
            object-fit: cover;
            object-position: center;
            filter: contrast(100%) brightness(90%);
            margin: 0 0 0 -30px; /* Added margin-left of 30px */
            padding: 0;
            display: block;
        }

        .image-caption-R {
            font-size: 0.75em;
            color: #666;
            margin-top: 5px;
            text-align: left;
            max-width: 500px;
            line-height: 1.2em;
            margin: 5px 0 0 -30px; /* Added margin-left of -30px */
        }

        .image-caption-L {
            font-size: 0.75em;
            color: #666;
            margin-top: 5px;
            text-align: left;
            max-width: 500px;
            line-height: 1.2em;
            margin: 5px 0 0 30px; /* Added margin-left of 30px */
        }

        .bg1 {
            background: transparent;
            background-size: cover;
            background-position: center;
            width: 100%;
            height: 100vh;
            scroll-snap-align: start;
            filter: brightness(100%);
        }

        .bg1 h1 {
            font-family: 'OptimaLTBold', serif;
        }

        .bg1 img {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 250px;
            height: auto;
            padding: 0;
            z-index: 20; /* ensure logo sits above header content */
        }

        .header-container {
            margin: 0 20px;
            margin-left: 300px; /* leave space for logo */
            width: calc(100% - 60px);
            position: relative;
            /* Reserve enough space so header content clears the absolute-positioned logo */
            padding-top: 80px; /* reduced from 120px */
            z-index: 5;
        }

        .language-toggle-container {
            position: absolute;
            top: 20px;
            right: 60px;
            z-index: 10;
            display: table-cell;
            vertical-align: middle;
            text-align: center;
        }

        .language-toggle {
            display: inline-block;
            margin: 0px;
            position: relative;
        }

        .language-toggle>input[type="checkbox"] {
            display: none;
        }

        .language-toggle>label.language-toggle-inner {
            outline: 0;
            display: block;
            width: 4em;
            height: 2em;
            position: relative;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            overflow: hidden;
            transform: skew(-0deg);
            backface-visibility: hidden;
            transition: all 0.2s ease;
            font-family: 'Playfair Display', serif;
            background: antiquewhite;
        }

        .language-toggle>label.language-toggle-inner:after,
        .language-toggle>label.language-toggle-inner:before {
            transform: skew(0deg);
            display: inline-block;
            transition: all 0.2s ease;
            width: 100%;
            text-align: center;
            position: absolute;
            line-height: 2em;
            color: black;
            text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
        }

        .language-toggle>label.language-toggle-inner:after {
            left: 100%;
            content: attr(data-on);
        }

        .language-toggle>label.language-toggle-inner:before {
            left: 0;
            content: attr(data-off);
        }

        .language-toggle>label.language-toggle-inner:active {
            background: #888;
        }

        .language-toggle>label.language-toggle-inner:active:before {
            left: -10%;
        }

        .language-toggle>input[type="checkbox"]:checked+label.language-toggle-inner {
            background: #86d993;
        }

        .language-toggle>input[type="checkbox"]:checked+label.language-toggle-inner:before {
            left: -100%;
        }

        .language-toggle>input[type="checkbox"]:checked+label.language-toggle-inner:after {
            left: 0;
        }

        .language-toggle>input[type="checkbox"]:checked+label.language-toggle-inner:active:after {
            left: 10%;
        }

        h1,
        .headerp {
            text-align: left;
            color: white;
        }

        h1 {
            font-size: 5em;
            text-shadow: 2px 2px 5px grey;
            font-family: 'OptimaLTPro-Bold', serif;
        }

        .headerp {
            font-size: 1.25em; /* slightly smaller default for long header content */
            line-height: 1.35; /* improve readability for multi-line content */
            padding-bottom: 10px;
            padding-left: 50px;
            text-shadow: 2px 2px 5px grey;
            max-width: 780px; /* allow wider layout on desktop but keep readable measure */
            word-wrap: break-word;
            white-space: normal;
        }

        .headerp b {
            font-size: 1.2em;
        }

        .headerp a {
            text-decoration: none;
            color: inherit;
        }

        h2 {
            font-size: 1.5em;
            margin: 10px 0;
            text-align: left;
            color: black;
            font-family: 'OptimaLTbolditalic', serif;
        }

        h3 {
            font-size: 1em;
            margin: 10px 0;
            text-align: left;
        }

        .content-container p {
            font-size: 0.8em;
            margin: 10px 0;
            text-align: left;
            max-width: 450px;
        }

        .tour-button {
            margin-top: 10px;
            padding: 10px 20px;
            font-size: 1em;
            color: black;
            background-color: #e7e7e700;
            border: solid;
            border-radius: 4px;
            cursor: pointer;
        }

        .tour-button:hover {
            background-color: antiquewhite;
            color: black;
            border: solid white;
        }

        .footer {
            background-color: black;
            height: auto;
            min-height: 500px;
            width: 100;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 20px 60px;
            padding-top: 50px;
            scroll-snap-align: end;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        .footer-columns {
            display: flex;
            justify-content: flex-start;
            width: 100%;
            flex-wrap: wrap;
        }

        .footer-column {
            margin-right: 40px;
            color: #999;
            font-size: 12px;
            line-height: 24px;
            text-align: left;
            flex: 1 1 200px;
        }

        .footer-column ul {
            list-style-type: none;
        }

        .contact-info {
            line-height: 18px;
        }

        .footer-logo {
            width: 100px;
            margin-bottom: 0px;
            filter: invert(80);
            padding-left: 40px;
        }

        .footer-text {
            margin-top: 20px;
            font-size: 12px;
            text-align: left;
            color: #999;
            padding-left: 40px;
        }

        .footer a {
            color: #999;
            text-decoration: none;
            padding: 0px 0px;
            border-radius: 5px;
            transition: background-color 0.3s, color 0.3s;
        }

        .footer a:hover {
            color: rgb(111, 106, 252);
        }

        .footer strong {
            color: white;
        }

        .spacer {
            height: 100px;
        }

        @media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
    }

    /* Stack containers vertically instead of side-by-side */
    .content-container-L,
    .content-container-R {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin: 0 auto;
        border-bottom: 1px solid grey;
    }

    /* Ensure figure (image) appears first on mobile */
    .content-container-L figure,
    .content-container-R figure {
        order: 1; /* Put figure at the top */
        width: 100%;
        max-width: 100%;
    }

    /* Text container follows the figure */
    .content-container-L .text-left,
    .content-container-R .text-right {
        order: 2; /* Text below image */
        text-align: center; /* Center text on mobile */
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Center h2 and h3 headings on mobile */
    .content-container-L h2,
    .content-container-L h3,
    .content-container-R h2,
    .content-container-R h3 {
        text-align: center;
    }

    /* Images scale to fit the container width */
    .section-image-R,
    .section-image-L {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        margin: 0 !important;
        padding: 0;
        display: block;
    }

    /* Captions fit within the container and center align */
    .image-caption-R,
    .image-caption-L {
        font-size: 0.75em;
        color: #666;
        margin: 5px 0 0 0 !important;
        text-align: center;
        max-width: 100%;
        line-height: 1.2em;
    }

    /* Adjust header container to avoid horizontal overflow but keep top padding so logo isn't overlapped */
    .header-container {
        margin: 0 20px;  
        width: auto;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        position: relative;
    }

    /* Make the long header paragraph responsive on tablet */
    .headerp {
        font-size: 1.05em;
        line-height: 1.3;
        padding-left: 10px;
        max-width: calc(100% - 40px);
        text-align: center;
    }


    .language-toggle {
            display: inline-block;
            margin-right: 40px;
            position: relative;
        }


    /* Adjust the bg1 image and header text on mobile */
    .bg1 img {
        width: 150px;
        height: auto;
        padding-left: 0;
    }

    .bg1 .headerp {
        padding-left: 10px;
        max-width: calc(100% - 20px);
    }

    /* Adjust language toggle to ensure it fits on small screens */
    .language-toggle-container {
        top: 10px;
        right: 10px;
    }

    /* Footer adjustments */
    .footer {
        padding: 20px;
        box-sizing: border-box;
    }

    .footer-columns {
        display: block;
        width: 100%;
    }

    .footer-column {
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .footer-text {
        padding-left: 20px;
        max-width: calc(100% - 40px);
    }

    .spacer {
        height: 20px;
    }

    .sub-header {
        font-size: 1.2em !important; /* Increased from 1.5em */
        color: white !important;
        text-shadow: 2px 2px 5px grey !important;
        position: relative !important;
        z-index: 2 !important;
        margin-top: -65px !important; /* Make this more negative to pull it up closer to h1 */
        padding-left: 0px !important;
    }

}

@media (max-width: 700px) {
    .header-container {
        margin: 0;
        width: 100%;
        padding: 0 20px;
    }

    h1 {
        font-size: 3em;
    }

    .headerp {
    font-size: 1em; /* smaller on narrower phones */
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
    }

    .tour-button {
        font-size: 0.9em;
    }

    .header-container h1,
    .header-container .headerp {
        text-align: left;
    }

    .bg1 {
        width: 100vw;
    }

    .sub-header {
        font-size: 1.2em !important; /* Increased from 1.5em */
        color: white !important;
        text-shadow: 2px 2px 5px grey !important;
        position: relative !important;
        z-index: 2 !important;
        margin-top: -10px !important; /* Make this more negative to pull it up closer to h1 */
        padding-left: 0px !important;
    }


}

@media (max-width: 480px) {

    /* Small phone adjustments for header paragraph */
    .headerp {
        font-size: 0.95em;
        line-height: 1.2;
        padding-left: 6px;
        padding-right: 6px;
        max-width: 100%;
        text-align: center;
    }


    .sub-header {
        font-size: 1.2em !important; /* Increased from 1.5em */
        color: white !important;
        text-shadow: 2px 2px 5px grey !important;
        position: relative !important;
        z-index: 2 !important;
        margin-top: -30px !important; /* Make this more negative to pull it up closer to h1 */
        padding-left: 0px !important;
    }


}
/* this is the main sub-header CSS */
    .sub-header {
        font-size: 1.8em; /* Increased from 1.5em */
        color: white;
        text-shadow: 2px 2px 5px grey;
        position: relative;
        z-index: 2;
        margin-top: 0; /* no negative offset to avoid overlapping logo */
        margin-bottom: 6px;
        padding-left: 0px;
    }

    /* Laptop-specific tweak: ensure sub-header doesn't overlap the absolutely positioned logo */
    @media (min-width: 1024px) and (max-width: 1439px) {
        /* laptop sizes */
        .sub-header { margin-top: 0; }
        .header-container { padding-top: 200px; }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
        /* small laptops / large tablets */
        .sub-header { margin-top: 0; }
        .header-container { padding-top: 120px; }
    }

    .video-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: -2;
    }

    .video-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Media queries for shorter screens - make header text more vertically compact */
    @media (max-height: 900px) {
        .header-container {
            padding-top: 40px; /* Further reduced for smaller laptop screens */
        }
    }

    @media (max-height: 800px) {
        .header-container {
            padding-top: 30px; /* Even more reduced for compact laptop screens */
        }
    }

    @media (max-height: 700px) {
        h1 {
            font-size: 3.5em; /* Reduced from 5em */
            margin-bottom: 10px;
        }
        
        .headerp {
            font-size: 1.1em; /* Reduced from 1.25em */
            line-height: 1.25; /* Tighter line spacing */
            padding-bottom: 5px;
        }
        
        .header-container {
            padding-top: 30px; /* Further reduced */
        }
    }

    @media (max-height: 600px) {
        h1 {
            font-size: 3em; /* Even smaller for very short screens */
            margin-bottom: 5px;
        }
        
        .headerp {
            font-size: 1em; /* Smaller text */
            line-height: 1.2; /* Even tighter spacing */
            padding-bottom: 0;
        }
        
        .headerp b {
            font-size: 1.1em; /* Reduced bold text size */
        }
        
        .header-container {
            padding-top: 40px; /* Reduced from 60px */
        }
    }

    @media (max-height: 500px) {
        h1 {
            font-size: 2.5em; /* Very compact for extremely short screens */
            margin-bottom: 0;
        }
        
        .headerp {
            font-size: 0.9em; /* Smallest readable size */
            line-height: 1.15;
        }
        
        .header-container {
            padding-top: 20px; /* Reduced from 40px */
        }
    }

    /* Cookie Consent Popup Styles */
    .cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        color: white;
        padding: 20px;
        font-family: 'OptimaLTPro', serif;
        font-size: 14px;
        line-height: 1.4;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid #333;
    }

    .cookie-consent.show {
        transform: translateY(0);
    }

    .cookie-consent-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }

    .cookie-consent-text {
        flex: 1;
        min-width: 300px;
    }

    .cookie-consent-buttons {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
    }

    .cookie-consent-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-family: 'OptimaLTPro', serif;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    .cookie-consent-accept {
        background-color: #86d993;
        color: black;
    }

    .cookie-consent-accept:hover {
        background-color: #74c77f;
    }

    .cookie-consent-decline {
        background-color: transparent;
        color: white;
        border: 1px solid #666;
    }

    .cookie-consent-decline:hover {
        background-color: #333;
    }

    @media (max-width: 768px) {
        .cookie-consent-content {
            flex-direction: column;
            text-align: center;
        }
        
        .cookie-consent-buttons {
            width: 100%;
            justify-content: center;
        }
    }
    