/*
Theme Name: mariendo
Theme URI: https://www.st-marien-dortmund.de/
Author: internetgestalten.de 
Author URI: https://internetgestalten.de
Version: 2.0.0
Description: Wordpress Theme - Mariengemeinde Dortmund Relaunch 2026
*/

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
 
        :root {
            --primary-dark: #005CA9;
            --primary-light: #0073c4;
            --accent-gold: #d4a574;
            --text-dark: #2c3e50;
            --text-light: #5a6c7d;
            --bg-light: #f8f7f5;
            --border-color: #e8e6e1;
        }
 
        body {
            font-family: 'Lato', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background: white;
        }

        html {
            scroll-behavior: smooth;
        }

        /* anchor offset for sticky header */
        section[id] {
            scroll-margin-top: 110px;
        }

        img {
            border-radius: 0;
            box-shadow: none;
        }

        /* editor images: never wider than content box */
        .welcome-text img,
        .welcome-info-content img,
        .faq-answer img {
            max-width: 100%;
            height: auto;
        }

        img.aligncenter {
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        p {
            font-size: 1.1rem;
        }

        h2 {
            font-family: 'Crimson Text', serif;
            font-size: 2.4rem;
            font-weight: 600;
            line-height: 1.4;
            color: var(--primary-dark);
        }

        h3 {
            font-family: 'Crimson Text', serif;
            font-size: 1.9rem;
            font-weight: 400;
            line-height: 1.3;
            color: var(--primary-dark);
            margin: 2rem 0 1rem;
        }

        h4 {
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1.4;
            letter-spacing: 0.5px;
            color: var(--primary-dark);
            margin: 1.5rem 0 0.75rem;
        }

        h3:first-child,
        h4:first-child {
            margin-top: 0;
        }

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

        /* LAYOUT HELPERS */
        .row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 3rem;
        }

        .row > .col {
            min-width: 0;
        }

        .row > .col:first-child {
            flex: 0 0 calc(33.333% - 1.5rem);
            max-width: calc(33.333% - 1.5rem);
        }

        .row > .col:last-child {
            flex: 0 0 calc(66.666% - 1.5rem);
            max-width: calc(66.666% - 1.5rem);
        }

        /* intro text uses full column width */
        .row .welcome-text {
            width: 100%;
        }
 
        /* HEADER & NAVIGATION */
        header {
            background: var(--primary-dark);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
 
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }
 
        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
        }
 
        .logo img {
            height: 70px;
            object-fit: contain;
        }

 
        nav {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        nav ul {
            display: flex;
            gap: 2rem;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        nav li {
            list-style: none;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: color 0.3s ease;
        }
 
        nav a:hover {
            color: var(--accent-gold);
        }

        /* dropdown */
        nav .menu-item-has-children {
            position: relative;
        }

        nav .menu-item-has-children > a::after {
            content: "";
            display: inline-block;
            width: 0.35em;
            height: 0.35em;
            margin-left: 0.5em;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg);
            vertical-align: 0.25em;
        }

        nav ul.sub-menu {
            position: absolute;
            top: 100%;
            left: -1rem;
            min-width: 220px;
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            padding: 0.5rem 0;
            margin-top: 0.5rem;
            background: var(--primary-dark);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(6px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            z-index: 10;
        }

        /* hover bridge */
        nav ul.sub-menu::before {
            content: "";
            position: absolute;
            top: -0.5rem;
            left: 0;
            right: 0;
            height: 0.5rem;
        }

        nav li:hover > ul.sub-menu,
        nav li:focus-within > ul.sub-menu {
            opacity: 1;
            visibility: visible;
            transform: none;
        }

        nav ul.sub-menu a {
            display: block;
            padding: 0.5rem 1rem;
            font-weight: 400;
            white-space: nowrap;
        }

        nav .current-menu-item > a,
        nav .current-menu-ancestor > a {
            color: var(--accent-gold);
        }

        /* anchor links in sub-menu get current-menu-item from parent page - keep white */
        nav ul.sub-menu .current-menu-item > a {
            color: white;
        }

        nav ul.sub-menu .current-menu-item > a:hover {
            color: var(--accent-gold);
        }

        .submenu-toggle {
            display: none;
        }

        .search-icon {
            width: 20px;
            height: 20px;
            padding: 0;
            border: 0;
            background-color: transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            background-repeat: no-repeat;
            background-position: center;
            background-size: 18px;
            background-image: url("images/lupe.svg");
        }
 
        .search-icon:hover {
            opacity: 0.7;
        }

        .screen-reader-text {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }

        /* SEARCH OVERLAY */
        .search-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            background: var(--primary-dark);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .search-overlay[hidden] {
            display: none;
        }

        .search-overlay.open {
            opacity: 1;
        }

        body.search-open {
            overflow: hidden;
        }

        .search-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 48px;
            height: 48px;
            padding: 0;
            border: 0;
            background: none;
            cursor: pointer;
        }

        .search-close::before,
        .search-close::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 10%;
            width: 80%;
            height: 2px;
            background: white;
            transform: rotate(45deg);
        }

        .search-close::after {
            transform: rotate(-45deg);
        }

        .search-close:hover::before,
        .search-close:hover::after {
            background: var(--accent-gold);
        }

        .search-form {
            display: flex;
            align-items: center;
            gap: 1rem;
            border-bottom: 2px solid rgba(255, 255, 255, 0.6);
        }

        .search-form:focus-within {
            border-color: white;
        }

        .search-field {
            flex: 1;
            min-width: 0;
            padding: 0.5rem 0;
            border: 0;
            background: none;
            color: white;
            font-family: 'Crimson Text', serif;
            font-size: clamp(1.75rem, 6vw, 3.5rem);
            outline: none;
            -webkit-appearance: none;
        }

        .search-field::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .search-field::-webkit-search-cancel-button {
            display: none;
        }

        .search-submit {
            flex: 0 0 auto;
            width: 48px;
            height: 48px;
            padding: 0;
            border: 0;
            background: url("images/lupe.svg") no-repeat center / 32px;
            cursor: pointer;
        }

        .search-submit:hover {
            opacity: 0.7;
        }

        /* SEARCH RESULTS */
        .search-page {
            padding: 4rem 0 5rem;
            min-height: 60vh;
        }

        .search-page h1 {
            font-family: 'Crimson Text', serif;
            font-size: 2.3rem;
            font-weight: 400;
            color: var(--primary-dark);
            margin-bottom: 1.5rem;
        }

        .search-page .search-form {
            background: var(--primary-dark);
            padding: 0.5rem 1.5rem;
            border: 0;
        }

        .search-page .search-field {
            font-size: 1.5rem;
        }

        .search-page .search-submit {
            background-size: 22px;
        }

        .search-count {
            margin: 2rem 0 1rem;
            color: var(--text-light);
        }

        .search-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .search-list li {
            border-top: 1px solid var(--border-color);
        }

        .search-list li:last-child {
            border-bottom: 1px solid var(--border-color);
        }

        .search-list a {
            display: block;
            padding: 1.5rem 0;
            color: var(--text-dark);
            text-decoration: none;
        }

        .search-list h2 {
            font-family: 'Crimson Text', serif;
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--primary-dark);
            margin: 0.25rem 0 0.5rem;
            transition: color 0.3s ease;
        }

        mark.search-hit {
            background: var(--accent-gold);
            color: inherit;
        }

        .search-list a:hover h2 {
            color: var(--accent-gold);
        }

        .search-type {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--accent-gold);
        }

        .search-list p {
            margin: 0;
            color: var(--text-light);
        }

        .search-list mark {
            background: rgba(212, 165, 116, 0.35);
            color: inherit;
        }

        .search-page .pagination {
            margin-top: 2rem;
        }

        .search-page .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .search-page .page-numbers {
            padding: 0.4rem 0.8rem;
            color: var(--primary-dark);
            text-decoration: none;
        }

        .search-page .page-numbers.current {
            background: var(--primary-dark);
            color: white;
        }

        .mobile-button {
            display: none;
            position: relative;
            width: 26px;
            height: 18px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .mobile-button span,
        .mobile-button span::before,
        .mobile-button span::after {
            content: '';
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background: white;
            transition: all 0.3s ease;
        }

        .mobile-button span {
            top: 8px;
        }

        .mobile-button span::before {
            top: -8px;
        }

        .mobile-button span::after {
            top: 8px;
        }

        .mobile-button.active span {
            background: transparent;
        }

        .mobile-button.active span::before {
            top: 0;
            transform: rotate(45deg);
        }

        .mobile-button.active span::after {
            top: 0;
            transform: rotate(-45deg);
        }

        /* HERO SECTION */
        .hero {
            height: 200px;
            background: linear-gradient(135deg, #005CA9 0%, #0073c4 100%);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero .container {
            height: 100%;
            max-width: none;
            padding: 0;
        }
 
        .hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
 
        /* WELCOME SECTION */
        .welcome {
            padding: 4rem 0 2rem;
        }
 
        .welcome .container > h1 {
            font-family: 'Crimson Text', serif;
            font-size: 2.9rem;
            font-weight: 600;
            line-height: 1.5em;
            color: var(--primary-dark);
        }

        .welcome .container > h1,
        .welcome .container > h2 {
            text-align: center;
            margin-bottom: 3rem;
        }

        .welcome-content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: start;
        }
 
        .welcome-image {
            width: 100%;
            height: 340px;
            overflow: hidden;
        }
 
        .welcome-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
 
        .welcome-text {
            width: 75%;
            margin: 0 auto;
            line-height: 1.8;
            color: var(--text-dark);
        }
 
        .welcome-text p {
            margin-bottom: 1.5rem;
            text-align: justify;
        }
 
        .welcome-text a {
            color: var(--primary-dark);
            text-decoration: underline;
            transition: color 0.3s ease;
        }
 
        .welcome-text a:hover {
            color: var(--accent-gold);
        }

        .welcome-text ul,
        .welcome-text ol,
        .welcome-info-content ul,
        .welcome-info-content ol {
            padding-left: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .welcome-text li,
        .welcome-info-content li {
            font-size: 1.1rem;
            margin-bottom: 0.4rem;
        }

        .welcome-text li ul,
        .welcome-text li ol,
        .welcome-info-content li ul,
        .welcome-info-content li ol {
            margin: 0.4rem 0 0;
        }

        /* pdf icon for links in wysiwyg content */
        .welcome-text a[href$=".pdf" i]::before,
        .welcome-info-content a[href$=".pdf" i]::before,
        .faq-answer a[href$=".pdf" i]::before {
            content: "";
            display: inline-block;
            width: 1em;
            height: 1em;
            margin-right: 0.3em;
            vertical-align: -0.15em;
            background-color: currentColor;
            -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='16' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='16' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
        }

        .cta-button {
            display: inline-block;
            background: var(--primary-dark);
            color: white;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: 1.5rem;
            transition: all 0.3s ease;
            border: 2px solid var(--primary-dark);
        }
 
        .cta-button:hover {
            background: white;
            color: var(--primary-dark);
        }
 
        /* EVENTS SECTION */
        .events {
            background: var(--bg-light);
            padding: 3rem 0 4rem;
            margin-top: 4rem;
        }
 
        .events-container {
            width: 100%;
        }
 
        .events h2 {
            text-align: center;
            margin-bottom: 3rem;
        }
 
        .event-item {
            display: grid;
            grid-template-columns: 120px 130px 1fr;
            gap: 2rem;
            padding: 2rem;
            background: #E6DEDC;
            transition: all 0.3s ease;
            align-items: start;
        }

        .event-item[hidden] {
            display: none;
        }

        .event-item:nth-child(even of :not([hidden])) {
            background: #EFEFEF;
        }

 
        .event-date {
            font-family: 'Crimson Text', serif;
            font-size: 1.1rem;
            color: var(--primary-dark);
            line-height: 1.4;
        }
 
        .event-date-day {
            font-size: 1.8rem;
            font-weight: 700;
        }
 
        .event-date-time {
            font-size: 1.4rem;
            font-weight: 400;
        }
 
        .event-type {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 600;
            letter-spacing: 0.5px;
            padding-top: 5px;
        }
 
        .event-details h3 {
            margin: 0 0 0.5rem;
        }
 
        .event-description {
            color: var(--primary-dark);
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }
 
        .event-more {
            color: var(--primary-dark);
            text-decoration: underline;
            font-weight: 600;
            font-size: 0.85rem;
            transition: color 0.3s ease;
        }
 
        .event-more:hover {
            color: var(--accent-gold);
        }

        .event-meta {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
        }

        /* events list: search + month groups */
        .events-search {
            max-width: 500px;
            margin: 0 auto 3rem;
        }

        .events-search-field {
            width: 100%;
            padding: 0.85rem 1.25rem;
            border: 2px solid var(--primary-dark);
            border-radius: 50px;
            font-family: inherit;
            font-size: 1rem;
            color: var(--text-dark);
            background: white;
            outline: none;
        }

        .events-search-field:focus {
            border-color: var(--accent-gold);
        }

        .events-month {
            margin-bottom: 3rem;
        }

        .events-month-head {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.5rem 2rem;
            margin-bottom: 1rem;
        }

        .events-month-head h3 {
            margin: 0;
        }

        .events-pdf {
            color: var(--primary-dark);
            font-weight: 600;
            text-decoration: underline;
            transition: color 0.3s ease;
        }

        .events-pdf:hover {
            color: var(--accent-gold);
        }

        .events-empty {
            text-align: center;
            color: var(--text-light);
        }

        .events-button {
            display: block;
            margin: 3rem auto 0;
            background: var(--primary-dark);
            color: white;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-align: center;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            width: fit-content;
            transition: all 0.3s ease;
            border: 2px solid var(--primary-dark);
        }
 
        .events-button:hover {
            background: white;
            color: var(--primary-dark);
        }
 
        /* FAQ SECTION */
        .faq {
            padding: 4rem 0;
            background: white;
        }
 
        .faq-container {
            width: 100%;
        }
 
        .faq h2 {
            text-align: center;
            margin-bottom: 3rem;
        }
 
        .faq-group {
            margin-bottom: 3rem;
        }
 
        .faq-group h3 {
            margin-bottom: 1.5rem;
        }
 
        .faq-item {
            margin-bottom: 0;
            overflow: hidden;
            background: var(--bg-light);
        }
        .faq-item:nth-child(odd) {
            background-color: #E6DEDC;
        }

        .faq-item:hover {
            opacity: .85;
        }

        .faq-summary {
            list-style: none;
            padding: 1.5rem 1.5rem 1.5rem calc(1.5rem + 28px);
            cursor: pointer;
            font-size: 1.1rem;
            color: var(--primary-dark);
            font-weight: 600;
            position: relative;
            transition: background 0.3s ease;
        }

        .faq-summary::-webkit-details-marker {
            display: none;
        }

        .faq-summary::before {
            content: '+';
            position: absolute;
            left: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.4rem;
            font-weight: bold;
            line-height: 1;
            transition: transform 0.3s ease;
        }

        .faq-item[open] > .faq-summary::before {
            content: '\2212';
        }

        .faq-answer {
            padding: 0 1.5rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .faq-answer p {
            padding: 1.5rem 0;
            color: var(--text-dark);
            line-height: 1.8;
        }

        .faq-answer a {
            color: var(--primary-dark);
            text-decoration: underline;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .faq-answer a:hover {
            color: var(--accent-gold);
        }
 
        /* GALLERY SECTION */
        .gallery {
            padding: 4rem 0;
            background: var(--bg-light);
        }
 
        .gallery-container {
            width: 100%;
        }
 
        .gallery h2 {
            text-align: center;
            margin-bottom: 3rem;
        }
 
        .gallery-slider {
            display: flex;
            align-items: center;
            gap: 2rem;
            justify-content: center;
        }
 
        .gallery-arrow {
            background: var(--primary-dark);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
 
        .gallery-arrow:hover {
            background: var(--primary-light);
            transform: scale(1.1);
        }
 
        .gallery-track {
            display: flex;
            gap: 1.5rem;
            overflow: hidden;
            justify-content: center;
            flex: 1;
        }
 
        .gallery-item {
            width: 300px;
            margin-right: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .gallery-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
        }

        .gallery-track.slick-slider {
            display: block;
        }
 
        .gallery-caption {
            margin-top: 1rem;
            color: var(--text-light);
            font-weight: 500;
        }

        /* PHOTO GRID SECTION */
        .photo-grid {
            padding: 3rem 0;
            background: white;
        }

        .photo-grid-container {
            width: 100%;
        }

        .photo-grid h2 {
            text-align: center;
            margin-bottom: 3rem;
        }

        .photo-grid-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }

        .photo-grid-item {
            aspect-ratio: 1 / 1;
            overflow: hidden;
            flex: 0 1 calc(33.333% - 1rem);
        }

        .photo-grid-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .photo-big img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* WELCOME INFO SECTION */
        .welcome-info {
            padding: 6rem 0 3rem 0;
            background: white;
        }

        .welcome + .welcome-info {
            padding-top: 3rem;
        }
 
        .welcome-info-container {
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 4rem;
            align-items: start;
        }
 
        .welcome-info-image {
            position: relative;
        }
 
        .welcome-info-image img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }
 
        .welcome-info-caption {
            margin-top: 1rem;
            color: var(--text-light);
            text-align: center;
        }
 
        .welcome-info-content h2 {
            margin-bottom: 1.5rem;
        }
 
        .welcome-info-content > p {
            color: var(--text-dark);
            line-height: 1.8;
            margin-bottom: 1.4rem;
        }
 
        .welcome-info-subsection {
            margin-bottom: 2rem;
        }
 
        .welcome-info-subsection h3 {
            font-family: 'Crimson Text', serif;
            font-size: 1.3rem;
            color: var(--primary-dark);
            margin-bottom: 0.75rem;
            font-weight: 400;
        }
 
        .welcome-info-subsection p {
            color: var(--text-dark);
            line-height: 1.7;
        }
        footer {
            background: var(--primary-dark);
            color: white;
            padding: 3rem 0;
            margin-top: 4rem;
        }
 
        .footer-container {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 3rem;
            align-items: center;
        }
 
        .footer-info {
            font-size: 0.9rem;
            opacity: 0.9;
        }
 
        .footer-links {
            display: flex;
            gap: 2rem;
        }

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

        .footer-links li {
            list-style: none;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }
 
        .footer-links a:hover {
            color: var(--accent-gold);
        }
 
        /* RESPONSIVE */
        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .welcome-text {
                width: 100%;
            }

            .mobile-button {
                display: block;
            }

            nav {
                gap: 1rem;
                font-size: 0.8rem;
            }

            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                background: var(--primary-dark);
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
            }

            #site-header.mobile nav ul {
                display: flex;
            }

            nav li {
                width: 100%;
            }

            nav ul a {
                display: block;
                padding: 1rem 1.5rem;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }

            /* mobile dropdown */
            nav .menu-item-has-children {
                display: flex;
                flex-wrap: wrap;
            }

            nav .menu-item-has-children > a {
                flex: 1;
            }

            nav .menu-item-has-children > a::after {
                display: none;
            }

            .submenu-toggle {
                display: block;
                position: relative;
                width: 3.5rem;
                background: none;
                border: 0;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                border-left: 1px solid rgba(255, 255, 255, 0.1);
                color: white;
                cursor: pointer;
            }

            .submenu-toggle::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 0.5rem;
                height: 0.5rem;
                margin: -0.35rem 0 0 -0.25rem;
                border-right: 2px solid currentColor;
                border-bottom: 2px solid currentColor;
                transform: rotate(45deg);
                transition: transform 0.2s ease;
            }

            .open > .submenu-toggle::after {
                margin-top: -0.1rem;
                transform: rotate(-135deg);
            }

            #site-header nav ul.sub-menu {
                display: none;
                position: static;
                flex-basis: 100%;
                min-width: 0;
                margin: 0;
                padding: 0;
                background: rgba(0, 0, 0, 0.15);
                box-shadow: none;
                opacity: 1;
                visibility: visible;
                transform: none;
            }

            #site-header nav ul.sub-menu::before {
                display: none;
            }

            #site-header nav li.open > ul.sub-menu {
                display: flex;
            }

            nav ul.sub-menu a {
                padding: 0.85rem 1.5rem 0.85rem 2.5rem;
                white-space: normal;
            }

            .row {
                flex-direction: column;
                gap: 2rem;
            }

            .row > .col:first-child,
            .row > .col:last-child {
                flex: 1 1 100%;
                max-width: 100%;
            }

            /* no justified text on mobile, incl. inline styles from editor */
            .welcome-text p,
            [style*="justify"] {
                text-align: left !important;
            }

            /* intro: image below text, full width */
            .welcome .row {
                flex-direction: column-reverse;
                align-items: stretch;
            }
 
            .event-item {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
 
            .welcome-info,
            .welcome + .welcome-info {
                padding: 2rem 0;
            }

            .welcome-info-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
 
            .welcome-info-image img {
                height: 300px;
            }
 
            .gallery-slider {
                gap: 1rem;
            }
 
            .gallery-track {
                gap: 1rem;
            }
 
            .gallery-item {
                width: 250px;
                margin-right: 1rem;
            }
 
            .gallery-item img {
                height: 200px;
            }

            .photo-grid-item {
                flex-basis: calc(50% - 0.75rem);
            }
 
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
 
            .footer-links,
            .footer-links ul {
                flex-direction: column;
                gap: 1rem;
            }

            .welcome .container > h1,
            h2 {
                font-size: 1.8rem;
            }

            h3 {
                font-size: 1.5rem;
            }

            .events-pdf-month {
                display: none;
            }
        }
 
        @media (max-width: 480px) {
            .photo-grid-item {
                flex-basis: 100%;
            }

        }


        .notfound  > div {
            padding-top: 5em;
            min-height: 60vh;
        }