/*
Theme Name: Weinforum Franken
Template: twentytwentyfive
Version: 2.5
Text Domain: weinforum-franken
*/

/* ============================================================
   1. FONTS (@font-face)
   ============================================================ */

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   2. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */

:root {
    --color-primary:    #7A1B2D;
    --color-secondary:  #F5F0E8;
    --color-accent:     #C2185B;
    --color-background: #FFFFFF;
    --color-text:       #2A2A2A;
    --color-text-light: #666666;
    --color-dark:       #1A1A1A;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Font sizes managed via theme.json presets:
       --wp--preset--font-size--xs, --small, --body, --base, --lg, --xl, --2xl, --3xl, --4xl, --hero */

    --section-padding:    100px 0;
    --container-width:    1200px;
    --content-padding:    0 24px;
    --border-radius:      4px;
}

/* ============================================================
   3. BASE RESET — typography, colors, spacing via theme.json
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* Only properties NOT in theme.json */
body { margin: 0; }
h2 { letter-spacing: 0.01em; }
html, body { overflow-x: hidden; max-width: 100vw; }
a { transition: color 0.2s; }
p, .wp-block-paragraph { font-size: var(--wp--preset--font-size--lg); }

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


/* Image+Text columns: text determines height, image fills to match */
.columns-image-text {
    align-items: stretch;
}

.columns-image-text .wp-block-column:has(.wp-block-image) {
    position: relative;
    min-height: 300px;
}

.columns-image-text .wp-block-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.columns-image-text .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Show image in original ratio, height-limited — no stretching.
   Use className "auto-height" on wp:image blocks for logos, badges, signs etc. */
.columns-image-text .wp-block-image.auto-height {
    position: static;
    min-height: 0;
}
.columns-image-text:has(.auto-height) .wp-block-column:has(.wp-block-image) {
    min-height: 0;
}
.columns-image-text:has(.auto-height) {
    align-items: center;
}
.auto-height img,
.wp-block-image.auto-height img,
.columns-image-text .wp-block-image.auto-height img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Events entries: show full image without crop */
.events-entry.columns-image-text {
    align-items: center;
}

.events-entry.columns-image-text .wp-block-column:has(.wp-block-image) {
    position: static;
    min-height: auto;
}

.events-entry.columns-image-text .wp-block-image {
    position: static;
}

.events-entry.columns-image-text .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Event rows: square images, aligned columns */
.event-row {
    align-items: center;
}
.event-row .wp-block-image img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    border-radius: var(--border-radius);
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}
.event-row:hover .wp-block-image img {
    filter: grayscale(0%);
}

/* Gallery grid: uniform image heights with object-fit */
.gallery-image {
    overflow: hidden;
}
.gallery-image img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    /* height + aspect-ratio via block attributes (aspectRatio on wp:image) */
}

/* Content card images: only round top corners */
.content-card .wp-block-image img {
    border-radius: 4px 4px 0 0;
}

ul, ol { padding-left: 1.5em; }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}
.lightbox-close:hover {
    color: #ccc;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

/* ============================================================
   5. HEADER + NAVIGATION (Block Theme)
   ============================================================ */

.site-header {
    background-color: #fff;
    padding: 0;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* JS adds this class on scroll-down to hide header */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header .site-logo-img img {
    height: 90px;
    width: auto;
}

/* TT5 navigation styling */
.wp-block-navigation .wp-block-navigation-item a,
.wp-block-navigation .wp-block-navigation-submenu > button {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    white-space: nowrap;
    line-height: 1.2;
    background: none;
    border: none;
    cursor: pointer;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item.current-menu-item a {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
}

/* Dropdown Submenus (TT5) */
.wp-block-navigation .wp-block-navigation__submenu-container {
    background: #fff;
    min-width: 220px;
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a {
    display: block;
    padding: 8px 24px;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: none !important;
    white-space: nowrap;
    color: var(--color-text);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-bottom: none !important;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--border-radius);
    border: 1px solid #fff;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--color-primary);
    text-decoration: none;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.75rem;
}

/* Full-width sections: no extra margin — spacing comes from inner padding */
.wp-block-group.alignfull.has-background {
    margin-top: 0;
    margin-bottom: 0;
}


/* Gutenberg Native Buttons — defaults from theme.json styles.elements.button */
.wp-block-button__link {
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

/* Fill style (primary) — hover: invert to outline */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    border: 1px solid transparent;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="background-color:#7A1B2D"] {
    border-color: #7A1B2D;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
}

/* Outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 1px !important;
    padding: 14px 36px;
    background-color: transparent !important;
}

/* Outline primary (burgundy) — hover: fill */
.wp-block-button.is-style-outline .wp-block-button__link[style*="color:#7A1B2D"] {
    border-color: #7A1B2D;
}

.wp-block-button.is-style-outline .wp-block-button__link[style*="color:#7A1B2D"]:hover {
    background-color: #7A1B2D !important;
    color: #fff !important;
}

/* Outline white — hover: fill white */
.wp-block-button.is-style-outline .wp-block-button__link[style*="color:#ffffff"]:hover,
.wp-block-button.is-style-outline .wp-block-button__link[style*="color: #ffffff"]:hover {
    background-color: #fff !important;
    color: var(--color-primary) !important;
}

/* Small buttons (event cards, content cards, blog cards) */
.event-card-block .wp-block-button__link,
.content-card .wp-block-button__link,
.blog-card-block .wp-block-button__link {
    padding: 10px 20px;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Hero buttons layout: single row, centered */
.hero-buttons-wrap {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-buttons-wrap.wp-block-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    justify-content: center;
}

.hero-buttons-wrap .wp-block-button {
    flex: 1 1 auto !important;
    display: flex !important;
    min-width: 180px;
    max-width: 240px;
}

.hero-buttons-wrap .wp-block-button__link {
    white-space: nowrap;
}

.hero-buttons-wrap .wp-block-button__link {
    padding: 14px 12px;
    font-size: 0.8125rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info-tabs action buttons — smaller, compact */
.info-tabs-action-buttons .wp-block-button__link {
    padding: 10px 28px;
    font-size: 0.75rem;
    min-width: 140px;
    text-align: center;
}

/* Info tab card styling — equal height via flex */
.info-tab-card {
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease;
}
.info-tab-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

.info-tab-card p {
    margin-bottom: 2px;
    line-height: 1.45;
}

/* Bold labels in info-tab cards get a small top gap for grouping */
.info-tab-card p[style*="font-weight:600"] {
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Info-tab columns: stretch children */
.info-tab-card + .info-tab-card,
.wp-block-columns:has(.info-tab-card) {
    align-items: stretch;
}

.wp-block-columns:has(.info-tab-card) > .wp-block-column {
    display: flex;
    flex-direction: column;
}

.wp-block-columns:has(.info-tab-card) > .wp-block-column > .info-tab-card {
    flex: 1;
}

.info-tab-card .info-highlight {
    font-weight: 600;
    color: var(--color-text);
}

/* Event card styling — wp:cover with hover overlay */
.event-card-block {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    min-height: unset !important;
    cursor: pointer;
}

.event-card-block img,
.event-card-block .wp-block-cover__image-background {
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.event-card-block:hover img,
.event-card-block:hover .wp-block-cover__image-background {
    filter: grayscale(0%);
}

/* Cover overlay: hidden by default, visible on hover */
.event-card-block .wp-block-cover__background {
    background: rgba(122, 27, 45, 0.95) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.event-card-block:hover .wp-block-cover__background {
    opacity: 1 !important;
}

/* Content: hidden by default, centered, visible on hover */
.event-card-block .wp-block-cover__inner-container {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    z-index: 2;
}

.event-card-block:hover .wp-block-cover__inner-container {
    opacity: 1;
}

.event-card-block h3 {
    color: #fff !important;
    margin-bottom: 4px;
}

.event-card-block p {
    color: rgba(255,255,255,0.85) !important;
    margin-top: 0;
    margin-bottom: 16px;
}

.event-card-block .wp-block-button__link {
    color: #fff !important;
    border-color: #fff !important;
}

.event-card-block .wp-block-button__link:hover {
    background-color: #fff !important;
    color: var(--color-primary) !important;
}

.event-card-block .wp-block-buttons {
    margin-top: 0;
    justify-content: center !important;
    width: 100%;
}

.event-card-block h3,
.event-card-block p {
    text-align: center !important;
    width: 100%;
}

/* Event columns: stretch children for equal height */
.wp-block-columns:has(.event-card-block) > .wp-block-column {
    display: flex;
    flex-direction: column;
}

.wp-block-columns:has(.event-card-block) > .wp-block-column > .event-card-block {
    flex: 0 0 auto;
}

/* (info-tab-card rules consolidated above — section 774) */

/* Feiern gallery tiles (wp:cover blocks) */
.feiern-tile {
    overflow: hidden;
}

.feiern-tile .wp-block-cover__background {
    opacity: 0 !important;
    background-color: #000 !important;
    transition: opacity 0.4s ease;
}

.feiern-tile:hover .wp-block-cover__background {
    opacity: 0.6 !important;
}

.feiern-tile .wp-block-cover__image-background {
    transition: transform 0.5s ease;
}

.feiern-tile:hover .wp-block-cover__image-background {
    transform: scale(1.05);
}

.feiern-tile .wp-block-cover__inner-container {
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feiern-tile:hover .wp-block-cover__inner-container {
    opacity: 1;
}

.feiern-tile .wp-block-cover__inner-container h3 {
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    margin: 0;
}

/* Feiern gallery — consistent 16px gaps */
.wp-block-columns:has(.feiern-tile) {
    gap: 16px;
    margin-bottom: 16px;
}

.wp-block-columns:has(.feiern-tile):last-child {
    margin-bottom: 0;
}

/* Content card styling — equal height + wider container */
.content-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 48px rgba(0,0,0,0.24);
}

.content-card .wp-block-image {
    margin-bottom: 0;
}

.content-card .wp-block-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

/* Card body grows to fill space, button at bottom */
.content-card > .wp-block-group:last-child,
.content-card > .wp-block-group:last-of-type {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.content-card > .wp-block-group:last-of-type .wp-block-buttons {
    margin-top: auto;
}

/* Content cards columns: equal height + tighter gap */
.wp-block-columns:has(.content-card) {
    gap: 24px;
}

.wp-block-columns:has(.content-card) > .wp-block-column {
    display: flex;
    flex-direction: column;
}

.wp-block-columns:has(.content-card) > .wp-block-column > .content-card {
    flex: 1;
}

/* Blog card styling */
.blog-card-block {
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
}

/* WP 6.7: inner group is direct child (no inner-container wrapper) */
.blog-card-block > .wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
}

.blog-card-block .wp-block-buttons {
    margin-top: auto;
    margin-bottom: 0;
}

.wp-block-columns:has(.blog-card-block) > .wp-block-column {
    display: flex;
    flex-direction: column;
}

.blog-card-block:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-card-block .blog-card-image {
    margin: 0;
    overflow: hidden;
}

.blog-card-block .blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


/* Partner logos section — default: original colors, slightly dimmed */
.partner-section .partner-logo img {
    height: 75px;
    width: 200px;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}
.partner-section .partner-logo img:hover {
    opacity: 1;
}
/* Falstaff: black overlay + larger */
.partner-section .wp-block-columns > .wp-block-column:nth-child(1) .partner-logo img {
    height: 120px;
    width: 280px;
    filter: brightness(0);
    opacity: 0.7;
}
.partner-section .wp-block-columns > .wp-block-column:nth-child(1) .partner-logo img:hover {
    filter: none;
    opacity: 1;
}
/* Mana Farms: thick font needs smaller size */
.partner-section .wp-block-columns > .wp-block-column:nth-child(3) .partner-logo img {
    height: 45px;
    width: 140px;
}
.partner-section .partner-logo {
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Section divider via separator */
.wp-block-separator.section-divider-line {
    width: 48px;
    border-top: none;
    border-bottom: none;
    height: 2px;
    opacity: 1;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.wp-block-separator.section-divider-line.has-css-opacity,
.wp-block-separator.section-divider-line.has-alpha-channel-opacity {
    opacity: 1;
}

/* Left-aligned divider in columns content */
.wp-block-column .wp-block-separator.section-divider-line {
    margin-left: 0;
    margin-right: auto;
}

/* Contact block styling */
.contact-block-section {
    text-align: center;
}

.contact-block-section .contact-info {
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    margin-bottom: 0;
}

/* Subpages: smaller hero than homepage */
body:not(.home) .hero-section {
    min-height: 60vh;
}

/* Remove gap between hero cover and first section */
.wp-block-cover.alignfull {
    margin-bottom: 0;
}

/* Hide WP's flat overlay — we use a text box instead */
.hero-section .wp-block-cover__background {
    opacity: 0 !important;
}

/* The text box overlay — centered on the hero image, soft edges */
.hero-text-box {
    padding: 52px 64px 44px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Soft fading background via pseudo-element — rectangular with soft edges */
.hero-text-box::before {
    content: '';
    position: absolute;
    inset: -170px;
    background: rgba(20, 12, 8, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    mask-image:
        linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* Remove WP default padding/margin on the text box group */
.hero-text-box.wp-block-group {
    padding: 52px 64px 44px;
}

@media (max-width: 768px) {
    .hero-text-box {
        padding: 36px 28px 32px;
        margin: 0 16px;
    }
    .hero-text-box.wp-block-group {
        padding: 36px 28px 32px;
    }
}

/* Subtle text shadow for extra crispness */
.hero-section h1,
.hero-section p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Force children to take full width inside text box (WP layout collapse fix) */
.hero-text-box > * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Homepage hero-tagline: letter-spacing only, size via block attribute */
.hero-text-box .hero-tagline {
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

/* Buttons inside text box: no extra top margin */
.hero-text-box .wp-block-buttons {
    margin-top: 8px;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section .hero-overlay {
    display: none; /* replaced by ::after gradient */
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px;
    color: #fff;
    text-align: center;
}

/* hero h1 is .hero-tagline — styled above */

h1.hero-tagline,
.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.1;
}

.hero-section p {
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-section p:last-of-type {
    margin-bottom: 40px;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
}

.hero-buttons .btn-outline-white {
    text-align: center;
    padding: 12px 20px;
    font-size: 0.75rem;
}

/* Last button spans full width below the 3-col row */
.hero-buttons .btn-outline-white:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    white-space: nowrap;
}

/* ============================================================
   8. SECTION ALLGEMEIN
   ============================================================ */

.section {
    padding: var(--section-padding);
}

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

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

.section-dark {
    background-color: var(--color-dark);
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: var(--wp--preset--font-size--xl);
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.section-divider {
    width: 48px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 0 auto 24px;
}

.section-divider.section-divider-left {
    margin-left: 0;
}

.section-dark .section-divider {
    background-color: rgba(255,255,255,0.3);
}

.info-tabs-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.info-tabs-buttons .btn-secondary {
    min-width: 160px;
    text-align: center;
}

.section-dark .btn-outline-white {
    margin-top: 24px;
}

/* ============================================================
   9. CTA SECTION
   ============================================================ */

.cta-section {
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: var(--wp--preset--font-size--xxxl);
    font-weight: 500;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: var(--wp--preset--font-size--xl);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   10. CARDS GRID
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.card-body p {
    color: var(--color-text-light);
    font-size: var(--wp--preset--font-size--base);
    margin-bottom: 24px;
    line-height: 1.7;
}


/* ============================================================
   12. INFO TABS
   ============================================================ */

.info-tabs-section {
    padding: var(--section-padding);
    background: var(--color-secondary);
}

.info-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.info-tab {
    text-align: center;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.info-tab h3 {
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.info-tab p {
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-tab .info-highlight {
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================================
   13. EVENTS TEASER
   ============================================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-primary);
    transition: box-shadow 0.3s ease;
    min-height: 140px;
}

.event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.event-card-content {
    flex: 1;
    margin-bottom: 16px;
}

.event-card-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-card-content p {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--color-text-light);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card .btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

/* ============================================================
   14. CONTACT BLOCK
   ============================================================ */

.contact-block {
    text-align: center;
}

.contact-block h2 {
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact-details span {
    font-size: var(--wp--preset--font-size--base);
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

/* ============================================================
   15. BLOG / NEWS TEASER
   ============================================================ */

.blog-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    padding: 32px;
    background: var(--color-secondary);
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-card h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ============================================================
   16. FOOTER
   ============================================================ */

.custom-footer {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
    border-top: 2px solid rgba(255,255,255,0.15);
    padding-top: 80px;
}

/* Jobs section: compact, attached to footer */
.jobs-cta {
    padding: 48px 0;
}

.custom-footer .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.custom-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.custom-footer .footer-grid h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--wp--preset--font-size--xl);
    margin-bottom: 20px;
    font-weight: 500;
}

.custom-footer .footer-grid p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.custom-footer .footer-grid a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.custom-footer .footer-grid a:hover {
    color: #fff;
}

.custom-footer .footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer .footer-grid ul li {
    margin-bottom: 10px;
}

.custom-footer .footer-grid ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.custom-footer .footer-grid ul li a:hover {
    color: #fff;
}

/* Footer nav lists (block theme template part) */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list li a:hover {
    color: #fff !important;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: var(--wp--preset--font-size--xs);
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    /* Heading sizes on mobile — clear hierarchy above 18px body text */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    /* ── Header Mobile ── */
    .site-header {
        padding: 12px 16px;
    }

    .site-header .site-logo-img img {
        height: 50px !important;
    }

    /* Header: logo + hamburger on same line */
    .site-header .wp-block-group {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Hamburger icon bigger */
    .wp-block-navigation__responsive-container-open svg {
        width: 28px;
        height: 28px;
    }

    /* ── Navigation Overlay (Hamburger Menu) ── */
    .wp-block-navigation__responsive-container.is-menu-open {
        padding: 80px 32px 40px;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
        overflow-y: auto !important;
        z-index: 9999;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a,
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > button {
        font-family: var(--font-heading);
        font-size: 1.125rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    /* Submenus: collapsed by default, JS toggles via inline style */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
        display: none;
        /* Reset desktop dropdown styles */
        background: transparent;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        border: none;
        margin: 0;
    }

    /* Submenu items: indented, smaller, with left accent border */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item a {
        font-size: 0.9375rem;
        padding: 10px 0 10px 20px;
        border-left: 2px solid var(--color-primary);
        border-bottom: none;
        margin-left: 8px;
        color: var(--color-text-light);
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
        color: var(--color-primary);
        background: transparent;
    }

    /* Parent buttons: arrow indicator */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > button::after {
        content: ' ▾';
        font-size: 0.75rem;
    }

    .wp-block-navigation__responsive-container-open {
        font-size: 1.5rem;
    }

    /* ── Hero Mobile ── */
    .hero-section {
        min-height: 70vh;
    }

    body:not(.home) .hero-section {
        min-height: 50vh;
    }

    .hero-section .hero-content {
        padding: 80px 24px;
    }

    .hero-buttons {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    /* Hero buttons: stack on mobile */
    .hero-buttons-wrap,
    .hero-buttons-wrap.wp-block-buttons {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-buttons-wrap .wp-block-button {
        flex: 0 0 auto !important;
        width: 220px;
    }

    .hero-tagline,
    h1.hero-tagline {
        font-size: 2.75rem;
        letter-spacing: 0.15em;
    }

    /* Homepage hero tagline: tighter spacing on mobile */
    .hero-text-box .hero-tagline {
        letter-spacing: 0.1em;
    }

    /* Side padding handled natively via useRootPaddingAwareAlignments in theme.json */

    /* ── Columns-Image-Text: Stack on Mobile ── */
    .columns-image-text .wp-block-column:has(.wp-block-image) {
        position: static;
        min-height: auto;
    }

    .columns-image-text .wp-block-image {
        position: static;
    }

    .columns-image-text .wp-block-image img {
        height: 280px;
        width: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

    /* Gallery image sizes controlled via block aspectRatio attribute */

    /* Event rows: show color on touch (no hover on mobile) */
    .event-row .wp-block-image img {
        filter: grayscale(0%);
    }

    /* ── All columns: single column on mobile ── */
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
    }
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Event cards & feiern tiles: 1 per row */
    .wp-block-columns:has(.event-card-block) > .wp-block-column,
    .wp-block-columns:has(.feiern-tile) > .wp-block-column {
        flex-basis: 100% !important;
    }

    /* ── Gallery: 1 per row on mobile (no responsive column attr in wp:gallery) ── */
    .wp-block-gallery.columns-3.is-layout-flex,
    .wp-block-gallery.columns-4.is-layout-flex {
        flex-wrap: wrap !important;
    }
    .wp-block-gallery.columns-3 .wp-block-image,
    .wp-block-gallery.columns-4 .wp-block-image {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* ── Grid layouts ── */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .info-tabs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .blog-teaser-grid {
        grid-template-columns: 1fr;
    }

    /* ── Footer Mobile: compact ── */
    .custom-footer {
        padding-top: 40px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Logo + contact column: smaller */
    .custom-footer .footer-grid > .wp-block-column:first-child {
        flex-basis: 100% !important;
    }

    .custom-footer .footer-logo {
        margin-bottom: 12px;
    }

    .custom-footer .footer-logo img {
        height: 70px;
        width: auto !important;
        max-width: none;
    }

    /* Footer grid: logo full-width, nav+mehr side by side */
    .custom-footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .custom-footer .footer-grid > .wp-block-column:nth-child(2),
    .custom-footer .footer-grid > .wp-block-column:nth-child(3) {
        flex-basis: auto !important;
    }

    /* Force nav+mehr into 2-col grid */
    .custom-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .custom-footer .footer-grid > .wp-block-column:first-child {
        grid-column: 1 / -1;
    }

    .custom-footer .footer-grid h3 {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .custom-footer .footer-grid p,
    .custom-footer .footer-grid li {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .footer-nav-list li {
        margin-bottom: 6px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact-details {
        flex-direction: column;
        gap: 16px;
    }

    /* ── Spacing: reduce large heading gaps ── */
    .wp-block-heading.has-text-align-center[style*="margin-bottom:110px"] {
        margin-bottom: 56px;
    }

    .wp-block-heading.has-text-align-center[style*="margin-bottom:64px"] {
        margin-bottom: 40px;
    }

    /* ── Buttons: center + consistent padding on mobile ── */
    .wp-block-buttons.is-layout-flex {
        flex-direction: column;
        align-items: center;
    }

    .wp-block-buttons.is-layout-flex .wp-block-button__link {
        text-align: center;
    }

    /* ── Info action buttons: 2x2 grid on mobile ── */
    .info-tabs-action-buttons.is-layout-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .info-tabs-action-buttons .wp-block-button {
        width: 100%;
    }

    .info-tabs-action-buttons .wp-block-button__link {
        width: 100%;
        padding: 14px 8px;
        font-size: 0.7rem;
        text-align: center;
        white-space: nowrap;
    }

    /* ── Partner logos: stacked, uniform size, centered on mobile ── */
    .partner-section .wp-block-columns {
        flex-direction: column !important;
        align-items: center;
        gap: 32px;
    }

    .partner-section .wp-block-column {
        flex-basis: auto !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .partner-section .partner-logo img,
    .partner-section .wp-block-columns > .wp-block-column:nth-child(3) .partner-logo img {
        height: auto;
        width: 160px;
        max-height: 80px;
        object-fit: contain;
        opacity: 0.8;
    }

    /* Falstaff: square image with whitespace — compensate with negative margin */
    .partner-section .wp-block-columns > .wp-block-column:nth-child(1) .partner-logo img {
        height: auto;
        width: 260px;
        max-height: 120px;
        object-fit: contain;
        opacity: 0.8;
        filter: brightness(0);
        margin-top: -35px;
        margin-bottom: -35px;
    }

    /* Section padding now handled by spacing presets with clamp() in theme.json */
}

@media (max-width: 480px) {
    .hero-tagline,
    h1.hero-tagline {
        font-size: 2rem;
    }

    .hero-text-box .hero-tagline {
        letter-spacing: 0.08em;
    }

    .hero-text-box {
        padding: 28px 20px 24px;
        margin: 0 8px;
    }

    .hero-text-box.wp-block-group {
        padding: 28px 20px 24px;
    }

    /* Event cards: smaller aspect ratio */
    .event-card-block {
        aspect-ratio: 1 / 1 !important;
    }
}

/* ============================================================
   FOCAL POINT UTILITIES — for gallery images with person/face crops
   ============================================================ */

.focal-top img {
    object-position: center 25% !important;
}

.focal-top-left img {
    object-position: 30% 25% !important;
}

.focal-bottom img {
    object-position: center 75% !important;
}
