/*
Theme Name: Unterhammer
Theme URI: https://unterhammer.com
Author: Unterhammer Team
Description: Maßgeschneidertes Theme für Café Unterhammer im Karlstal
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: unterhammer
*/

:root {
    --color-primary: #b5123e;
    --color-secondary: #8a0f30;
    --color-accent: #e8d5c4;
    --color-light: #f9f6f3;
    --color-dark: #2a2a2a;
    --color-white: #ffffff;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

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

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
p {
    padding-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding .custom-logo-link img,
.site-branding .custom-logo,
.site-branding img {
    max-height: 70px;
    width: auto;
    height: auto;
}

.site-branding {
    flex-shrink: 0;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav li {
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Submenüs */
.main-nav > ul > li {
    position: relative;
}

.main-nav ul ul.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.main-nav .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 1em;
    display: inline;
    position: static;
    width: auto;
    height: auto;
    background: none;
}

.main-nav > ul > li:hover > ul.sub-menu {
    display: flex !important;
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.main-nav .sub-menu a::after {
    display: none;
}

.main-nav .sub-menu a:hover {
    background: var(--color-light);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    margin-left: 15px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 80px;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
}

/* Priority Navigation - Overflow Menu */
.main-nav {
    position: relative;
}

.overflow-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1001;
}

.header-nav-wrapper {
    position: relative;
}

.overflow-nav.active {
    display: block;
}

.overflow-nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overflow-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.overflow-nav li:last-child {
    border-bottom: none;
}

.overflow-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.overflow-nav a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.overflow-nav a::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #8a0f30;
    color: var(--color-white);
}

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

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

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

/* White outline for dark backgrounds */
.bg-dark .btn-outline,
.bg-primary .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.bg-dark .btn-outline:hover,
.bg-primary .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-card-content {
    padding: 25px;
}

.event-date {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.event-card h3 {
    margin-bottom: 10px;
}

.event-card p {
    color: #666;
    margin-bottom: 15px;
}

.event-content {
    padding: 20px;
}

.event-info {
    padding: 10px 0;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-price {
    font-weight: 600;
    color: var(--color-secondary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.content-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
}

.content-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.content-card-content {
    padding: 20px;
}

.content-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Opening Hours */
.opening-hours {
    background: var(--color-light);
    padding: 30px;
    border-radius: 10px;
}

.opening-hours h3 {
    margin-bottom: 20px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 700px;
    margin: 0 auto 40px;
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-address {
    margin-bottom: 10px;
}

.footer-contact-info a {
    display: inline;
}

.footer-legal {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-legal-menu li a {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-menu li a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-lang-switcher {
    text-align: center;
    padding: 20px 0 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-lang-link {
    color: rgba(255,255,255,0.6);
    padding: 5px 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-lang-link:hover,
.footer-lang-link.active {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    margin-bottom: 30px;
}

.page-content p {
    margin-bottom: 20px;
}

/* Gutenberg Block Styling */
.wp-block-cover {
    margin-bottom: 0 !important;
}

.wp-block-cover.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.wp-block-cover__inner-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.wp-block-cover h1,
.wp-block-cover h2 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wp-block-button__link {
    background-color: var(--color-primary) !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.wp-block-heading {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.wp-block-separator {
    border-color: var(--color-accent) !important;
    max-width: 100px;
    margin: 0 auto;
}

.wp-block-columns {
    gap: 40px;
    margin-bottom: 30px;
}

.wp-block-column h3 a {
    color: var(--color-primary);
}

.wp-block-column h3 a:hover {
    color: var(--color-secondary);
}

.wp-block-spacer {
    margin: 0;
}

.page-content .has-text-align-center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-content .wp-block-buttons {
    margin: 30px 0;
}

/* Front page specific */
body.home .page-content {
    padding-top: 0;
}

body.home .page-content > .wp-block-cover:first-child {
    margin-top: -60px;
}

/* Media & Text Block */
.wp-block-media-text {
    margin: 40px 0;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 40px;
}

/* Image styling */
.wp-block-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Group blocks with background */
.wp-block-group.has-background {
    padding: 60px 40px;
    border-radius: 10px;
    margin: 40px 0;
}

/* Better typography for page content */
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.page-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Lists */
.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.page-content th,
.page-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-accent);
}

.page-content th {
    background: var(--color-light);
    font-weight: 600;
    color: var(--color-primary);
}

.page-content tr:hover td {
    background: var(--color-light);
}

/* Intro paragraph */
.page-content p.intro,
.page-content .intro {
    font-size: 1.25rem;
    color: #555;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

/* Columns - clean style */
.wp-block-columns {
    margin-top: 20px;
    gap: 40px;
}

.wp-block-column {
    /* No background, no hover - clean look */
}

.wp-block-column h3 {
    margin-top: 0;
}

/* Kadence Blocks Styling */
.kb-row-layout-wrap.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.kb-row-layout-wrap {
    margin-bottom: 0 !important;
}

.kt-row-has-bg {
    background-size: cover !important;
    background-position: center center !important;
}

.kt-button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}

.kt-button:hover {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.wp-block-kadence-advancedheading {
    font-family: var(--font-heading) !important;
}

.wp-block-kadence-advancedheading a {
    color: var(--color-primary);
    text-decoration: none;
}

.wp-block-kadence-advancedheading a:hover {
    color: var(--color-secondary);
}

.wp-block-kadence-column .kt-inside-inner-col {
    height: 100%;
}

/* Clean image styling */
.wp-block-image img {
    border-radius: 8px;
}

.wp-block-image.has-custom-border img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Front page full-width layout */
.front-page-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

.front-page-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Kadence Row Layout Sections */
.kb-row-layout-wrap {
    padding: 80px 40px;
}

.kb-row-layout-wrap .kt-row-column-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero specific styling */
.kb-row-layout-id-hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.kb-row-layout-id-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.kb-row-layout-id-hero-section .kt-row-column-wrap {
    position: relative;
    z-index: 2;
}

/* Section backgrounds */
.kb-row-layout-id-cafe-section {
    background-color: #faf9f7;
}

.kb-row-layout-id-heiraten-section {
    background-color: #ffffff;
}

.kb-row-layout-id-gesundheit-section {
    background-color: #f5f0eb;
}

.kb-row-layout-id-entdecken-section {
    background-color: #ffffff;
}

.kb-row-layout-id-ueber-uns-section {
    background-color: #2c2c2c;
}

.kb-row-layout-id-team-section {
    background-color: #faf9f7;
}

/* Card styling */
.kadence-column-card-schmiede .kt-inside-inner-col,
.kadence-column-card-brauerei .kt-inside-inner-col,
.kadence-column-card-zimmer .kt-inside-inner-col,
.kadence-column-card-garten .kt-inside-inner-col,
.kadence-column-card-historie .kt-inside-inner-col {
    background: #faf9f7;
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kadence-column-card-schmiede:hover .kt-inside-inner-col,
.kadence-column-card-brauerei:hover .kt-inside-inner-col,
.kadence-column-card-zimmer:hover .kt-inside-inner-col,
.kadence-column-card-garten:hover .kt-inside-inner-col,
.kadence-column-card-historie:hover .kt-inside-inner-col {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Two column layouts - vertical alignment */
.kt-row-valign-middle {
    align-items: center;
}

/* Responsive - Mobil unter 480px: Alles im Burger */
@media (max-width: 480px) {
    .main-nav > ul {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
        font-size: 1.5rem;
        padding: 8px 12px;
        background: var(--color-light);
        border-radius: 4px;
    }
    
    .overflow-nav {
        right: 0;
        left: auto;
        min-width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .header-inner {
        padding: 8px 15px;
    }
    
    .site-branding img,
    .site-branding .custom-logo {
        max-height: 50px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CARBON FIELDS SECTIONS
   ============================================================================= */

@media screen and (max-width: 768px) {
    .uh-section {
        padding: 20px 0 !important;
    }
}

/* Hero Section */
.section-hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.section-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.section-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
}

.section-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.section-hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.section-hero .hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Text + Bild Section */
.section-text-image {
    padding: 80px 0;
}

.section-text-image .section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-text-image.image-left .section-image {
    order: -1;
}

.section-text-image h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-text-image.bg-dark h2 {
    color: #fff;
}

.section-text-image .section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.section-text-image.bg-dark .section-text {
    color: #e0e0e0;
}

.section-text-image .section-image img {
    width: 100%;
    border-radius: 8px;
}

/* Bild-Format Optionen */
.section-image.ratio-1-1 {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.section-image.ratio-4-3 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.section-image.ratio-16-9 {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.section-image.ratio-3-4 {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.section-image[class*="ratio-"]:not(.ratio-original) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text zentriert Section */
.section-text-center {
    padding: 80px 0;
    text-align: center;
}

.section-text-center .container {
    max-width: 800px;
}

.section-text-center h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-text-center.bg-dark h2 {
    color: #fff;
}

.section-text-center .section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.section-text-center.bg-dark .section-text {
    color: #e0e0e0;
}

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

.section-text-center.text-left .container {
    max-width: 100%;
}

/* Karten Section */
.section-cards {
    padding: 80px 0;
}

.section-cards h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

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

.card {
    background: #faf9f7;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.card-content {
    padding: 25px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Galerie Section */
.section-gallery {
    padding: 80px 0;
}

.section-gallery h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Hintergrundfarben */
.bg-light {
    background-color: #ffffff;
}

.bg-dark {
    background-color: #2c2c2c;
    color: #fff;
}

.bg-beige {
    background-color: #faf9f7;
}

/* Events Section */
.section-events {
    padding: 80px 0;
}

.section-events h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.section-events .section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-events .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.section-events .events-grid.columns-1 {
    max-width: 400px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.section-events .event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.section-events .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-events .event-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.section-events .event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.section-events .event-card .event-content {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px;

}

.section-events .event-card .event-excerpt {
    grid-column: 1 / -1;
    margin: 0;
    padding-bottom: 0;
}

.section-events .event-card .event-details .event-time,
.section-events .event-card .event-details .news-date {
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-size: 0.85rem;
}

.section-events .event-card .event-details h3 {
    margin-bottom: 0;
}

.section-events .event-ticket {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px 20px;
}

.section-events .event-ticket .event-price {
    font-weight: 600;
    color: var(--color-primary);
}

.section-events .event-date-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-events .event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.section-events .event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-events .event-details {
    width: 100%;
}

.section-events .event-details h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-events .event-card:hover h3 {
    color: var(--color-primary);
}

.section-events .event-time-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.section-events .event-time {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
}

.section-events .event-time strong {
    color: var(--color-primary);
}

.section-events .event-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.section-events .news-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-events .news-badge .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--color-primary) !important;
}

.section-events .news-date {
    font-size: 0.85rem;
    color: #888;
}


.section-events .btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

/* Aktuelles Einzelseite: erste Section ohne Padding oben */
.aktuelles-page .event-sections-wrap > section:first-child {
    padding-top: 0;
}

/* Öffnungszeiten Section */
.section-hours {
    padding: 60px 0;
    text-align: center;
}

.section-hours h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.section-hours.bg-dark h2 {
    color: #fff;
}

.hours-table {
    max-width: 400px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-hours.bg-dark .hours-row {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.hours-days {
    font-weight: 600;
}

.hours-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.section-hours.bg-dark .hours-note {
    color: #ccc;
}

/* Kontakt Section */
.section-contact {
    padding: 60px 0;
    text-align: center;
}

.section-contact h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
}

.section-contact.bg-dark h2,
.section-contact.bg-primary h2 {
    color: #fff;
}

.section-contact.bg-primary {
    background-color: var(--color-primary);
}

.contact-info {
    margin-bottom: 30px;
}

.section-contact.bg-dark .contact-info,
.section-contact.bg-primary .contact-info {
    color: #fff;
}

.section-contact.bg-dark a,
.section-contact.bg-primary a {
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border: none;
}

.btn-white:hover {
    background: #f0f0f0;
    color: var(--color-primary) !important;
}

/* Icon-Liste Section */
.section-icon-list {
    padding: 80px 0;
}

.section-icon-list h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

.section-icon-list.bg-dark h2 {
    color: #fff;
}

.icon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.icon-item {
    display: flex;
    gap: 20px;
}

.icon-item .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.section-icon-list.bg-dark .icon-item .dashicons {
    color: #fff;
}

.icon-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.section-icon-list.bg-dark .icon-content {
    color: #fff;
}

.icon-content p {
    font-size: 0.95rem;
    color: #666;
}

.section-icon-list.bg-dark .icon-content p {
    color: #ccc;
}

/* Preisliste Section */
.section-prices {
    padding: 80px 0;
}

.section-prices h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

.price-list {
    max-width: 700px;
    margin: 0 auto;
}

.price-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.price-header .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-header .price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.price-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Team Section */
.section-team {
    padding: 80px 0;
}

.section-team h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
}

.member-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Block Section */
.section-cta-block {
    padding: 80px 0;
    text-align: center;
}

.section-cta-block h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.section-cta-block p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.section-cta-block.bg-primary {
    background-color: var(--color-primary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Responsive Sections */
@media (max-width: 768px) {
    .section-hero h1 {
        font-size: 2rem;
    }
    
    .section-text-image .section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-text-image.image-left .section-image {
        order: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-events .events-grid {
        grid-template-columns: 1fr;
    }
    
    .section-events .events-grid.columns-1 {
        max-width: 100%;
    }
    
    .icon-list {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */
.gallery-item {
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: white;
    font-size: 0.875rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.lightbox-thumbnails {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    border-radius: 9999px;
    max-width: 90vw;
    overflow-x: auto;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    background: none;
    padding: 0;
}

.lightbox-thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.lightbox-thumb.active {
    border-color: white;
    transform: scale(1.1);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 0.25rem;
    }

    .lightbox-next {
        right: 0.25rem;
    }

    .lightbox-image {
        max-height: 70vh;
        border-radius: 4px;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .lightbox-thumbnails {
        bottom: 0.5rem;
        padding: 0.5rem;
        gap: 0.375rem;
    }

    .lightbox-thumb {
        width: 48px;
        height: 48px;
    }
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.pagination .prev,
.pagination .next {
    padding: 0 20px;
}

.pagination .dots {
    border: none;
    min-width: auto;
    padding: 0 8px;
}

.pagination .dots:hover {
    background: transparent;
    color: var(--color-primary);
}
