/* =============================================================
   Massem Template Stylesheet
   Gasthaus | Pension | Metzgerei Maßem
   Werbeagentur Hoffmann - 2026

   Navigation: Joomla Standard mod_menu
   Tatsächliche HTML-Ausgabe in Joomla 6:
     <ul class="mod-menu mod-list nav">
       <li class="nav-item item-XXX deeper parent">
         <a href="...">Titel</a>
         <ul class="mod-menu__sub" aria-hidden="true">   ← Joomla 6: mod-menu__sub + aria-hidden
           <li class="nav-item item-YYY"><a href="...">Unterpunkt</a></li>
         </ul>
       </li>
       <li class="nav-item item-ZZZ current active"><a href="...">Aktiv</a></li>
     </ul>
   ============================================================= */

/* ----- CSS-Variablen ----- */
:root {
    --primary-color:   #8B4513;
    --secondary-color: #D2B48C;
    --accent-color:    #556B2F;
    --bg-light:        #FAF9F6;
    --bg-beige:        #F5F1E8;
    --text-dark:       #2C2C2C;
    --text-light:      #666666;
    --white:           #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body:    'Lato', sans-serif;

    --transition-fast: 0.3s ease;
    --shadow-soft:     0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover:    0 15px 40px rgba(0,0,0,0.10);
}

/* ----- Reset & Basis ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

p { margin-bottom: 1rem; color: var(--text-light); }

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

ul { list-style: none; }

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

/* ----- Hilfklassen ----- */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center    { text-align: center; }
.bg-beige       { background-color: var(--bg-beige); }

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 10px;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Im Hero-Bereich (dunkler Hintergrund): weiß bleiben */
.hero-section .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}
.hero-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: padding var(--transition-fast);
}

#main-header.scrolled { padding: 10px 0; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----- Logo (Eigenes Modul) ----- */
.logo img {
    height: 60px;
    width: auto;
    transition: height var(--transition-fast);
}
#main-header.scrolled .logo img { height: 50px; }

/* ============================================================
   DESKTOP-NAVIGATION  – Joomla 6 mod_menu
   .main-nav ist der <nav>-Wrapper aus index.php
   ul-Klassen: .mod-menu .mod-list .nav
   li-Klassen: .nav-item  (aktiv: .current .active)
   Dropdown:   .mod-menu__sub + aria-hidden (Joomla 6)
   ============================================================ */

/* Obere Listenebene */
.main-nav .mod-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Jede li auf Top-Ebene */
.main-nav .mod-menu > li {
    position: relative;
    padding: 10px 0;
    list-style: none;
}

/* Top-Level Links */
.main-nav .mod-menu > li > a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

/* Unterstrich-Animation */
.main-nav .mod-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}
.main-nav .mod-menu > li > a:hover::after,
.main-nav .mod-menu > li.current > a::after,
.main-nav .mod-menu > li.active > a::after {
    width: 100%;
}

/* Aktiver Top-Level-Link: Textfarbe primary */
.main-nav .mod-menu > li.current > a,
.main-nav .mod-menu > li.active > a {
    color: var(--primary-color);
}

/* ----- Dropdown – Joomla 6: .mod-menu__sub + aria-hidden ----- */
/* Standardmäßig versteckt (überschreibt Joomla :where()-Regel) */
.main-nav .mod-menu .mod-menu__sub,
.main-nav .mod-menu .nav-child {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    z-index: 1001;
    border-top: 3px solid var(--primary-color);
    list-style: none;
    margin: 0;
    display: block !important; /* Joomla :where(aria-hidden) überschreiben */
}

/* Dropdown anzeigen: bei Hover ODER wenn Joomla JS aria-hidden=false setzt */
.main-nav .mod-menu > li:hover .mod-menu__sub,
.main-nav .mod-menu > li:hover .nav-child,
.main-nav .mod-menu .mod-menu__sub[aria-hidden="false"],
.main-nav .mod-menu .nav-child[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown-Einträge */
.main-nav .mod-menu .mod-menu__sub li,
.main-nav .mod-menu .nav-child li {
    display: block;
    margin: 0;
    list-style: none;
}

.main-nav .mod-menu .mod-menu__sub li a,
.main-nav .mod-menu .nav-child li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: var(--font-body);
    white-space: nowrap;
    transition: background-color 0.2s;
}

.main-nav .mod-menu .mod-menu__sub li a:hover,
.main-nav .mod-menu .nav-child li a:hover {
    background-color: var(--bg-beige);
    color: var(--primary-color);
}

/* Aktiver Untermenü-Eintrag Desktop */
.main-nav .mod-menu .mod-menu__sub li.current > a,
.main-nav .mod-menu .mod-menu__sub li.active > a,
.main-nav .mod-menu .nav-child li.current > a,
.main-nav .mod-menu .nav-child li.active > a {
    color: var(--primary-color);
    background-color: var(--bg-beige);
    font-weight: 600;
}

/* Joomla 6 Toggle-Button im Desktop ausblenden (Hover reicht) */
.main-nav .mod-menu__toggle-sub {
    display: none;
}

/* ----- Header Extras ----- */
.header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ----- Sprachschalter (mod_languages – offizielles Joomla-Modul) ----- */
/*
   HTML-Ausgabe:
   <div class="mod-languages">
     <p class="visually-hidden">…</p>   ← von Joomla bereits ausgeblendet
     <ul class="mod-languages__list lang-inline">
       <li [class="active"]><a href="…">NL</a></li>
       <li [class="active"]><a href="…">EN</a></li>
     </ul>
   </div>
*/
.mod-languages {
    display: flex;
    align-items: center;
}

.mod-languages__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod-languages__list li a {
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1;
}

/* Hover + aktive Sprache */
.mod-languages__list li a:hover,
.mod-languages__list li.active a {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ----- Hamburger-Button ----- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

/* ============================================================
   MOBILE NAV OVERLAY  – Joomla mod_menu Standard-HTML
   .mobile-nav-content ist der Wrapper im Overlay aus index.php
   ============================================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background-color: var(--white);
    z-index: 2000;
    padding: 30px 25px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-overlay.open { right: 0; }

.mobile-nav-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

/* Joomla mod_menu im Mobile-Overlay (Joomla 6) */
.mobile-nav-content .mod-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0; margin: 0;
}

.mobile-nav-content .mod-menu > li {
    list-style: none;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr auto;
}

/* Top-Level Links im Overlay */
.mobile-nav-content .mod-menu > li > a {
    grid-column: 1;
    display: block;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    align-self: center;
}

.mobile-nav-content .mod-menu > li > a:hover,
.mobile-nav-content .mod-menu > li.current > a,
.mobile-nav-content .mod-menu > li.active > a {
    color: var(--primary-color);
}

/* Dropdown im Overlay (.mod-menu__sub / .nav-child) – anfangs ausgeblendet */
.mobile-nav-content .mod-menu .mod-menu__sub,
.mobile-nav-content .mod-menu .nav-child {
    display: none !important;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 5px 0 12px 15px;
    list-style: none;
    margin: 0;
}

.mobile-nav-content .mod-menu .mod-menu__sub.open,
.mobile-nav-content .mod-menu .nav-child.open {
    display: flex !important;
}

.mobile-nav-content .mod-menu .mod-menu__sub li,
.mobile-nav-content .mod-menu .nav-child li {
    list-style: none;
}

.mobile-nav-content .mod-menu .mod-menu__sub li a,
.mobile-nav-content .mod-menu .nav-child li a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.mobile-nav-content .mod-menu .mod-menu__sub li a:hover,
.mobile-nav-content .mod-menu .nav-child li a:hover {
    color: var(--primary-color);
}

/* Aktiver Untermenü-Eintrag Mobil */
.mobile-nav-content .mod-menu .mod-menu__sub li.current > a,
.mobile-nav-content .mod-menu .mod-menu__sub li.active > a,
.mobile-nav-content .mod-menu .nav-child li.current > a,
.mobile-nav-content .mod-menu .nav-child li.active > a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Toggle-Button für Parent-Items (per JS eingefügt) */
.mob-toggle {
    grid-column: 2;
    grid-row: 1;
    background: none;
    border: none;
    padding: 0 4px 0 14px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1;
    align-self: center;
    transition: transform 0.3s ease, color 0.3s ease;
}
.mob-toggle:hover { color: var(--primary-color); }
.mob-toggle.is-open {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Joomla 6 nativen Toggle-Button ausblenden */
.mobile-nav-content .mod-menu__toggle-sub { display: none; }

/* ============================================================
   HERO / HEADERBILD  (Eigenes Modul)
   ============================================================ */

/* Der Joomla mod-custom-Wrapper darf kein Layout erzeugen */
.mod-custom.custom {
    padding: 0;
    margin: 0;
    display: block;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Eigener Stacking-Context: interne z-Indexes bleiben im Hero */
    isolation: isolate;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;  /* Statt negativem z-index */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

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

.subheading {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

/* Pfeil via CSS – unabhängig davon ob TinyMCE das <i> entfernt hat */
.scroll-down a {
    color: var(--white);
    font-size: 2rem;
    display: block;
    width: 2rem;
    height: 2rem;
    line-height: 1;
}

/* Größe und Farbe des FA-Icons (<i> oder <em>) */
.scroll-down a > i,
.scroll-down a > em {
    font-size: 2rem;
    font-style: normal;
    color: var(--white);
}

/* Fallback via CSS – wenn <i> durch Joomla/TinyMCE komplett entfernt wurde */
.scroll-down a:empty::after {
    content: '\f078'; /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    font-style: normal;
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-10px); }
    60%  { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================================
   FOOTER  (Eigenes Modul)
   ============================================================ */
.footer-section {
    background-color: #222;
    color: #eee;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p,
.footer-col p a { color: #aaa; font-size: 0.95rem; }
.footer-col p a:hover { color: var(--primary-color); }

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 30px; height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary-color); }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* ============================================================
   JOOMLA COMPONENT-BEREICH
   ============================================================ */
#main-content {
    min-height: 50vh;
    padding-top: 0; /* Hero übernimmt 100vh – kein Extra-Abstand nötig */
}

/* Seiten ohne Hero-Modul: Abstand unter fixem Header + Luft nach oben */
body.no-hero #main-content {
    padding-top: calc(var(--header-h, 90px) + 48px);
}

/* Joomla-eigene Artikel-Wrapper zurücksetzen */
#main-content .item-page,
#main-content .blog,
#main-content .blog-featured {
    margin: 0;
    padding: 0;
}

/* ---- Joomla-Artikel-Metadaten ausblenden ---- */
/* (alternativ in Joomla Backend: Artikel-Optionen → alle Infos auf "Verbergen") */
#main-content .page-header,
#main-content dl.article-info,
#main-content .article-info-term {
    display: none;
}

/* ============================================================
   INTRO-SECTION
   ============================================================ */
.intro-section {
    padding: 80px 0;
}

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

.section-eyebrow {
    font-family: var(--font-body);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.intro-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.intro-image .image-frame {
    position: relative;
    /* overflow: visible damit ::before-Rahmen sichtbar ist */
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
    /* Abstand rechts/unten damit der verschobene Rahmen nicht abgeschnitten wird */
    margin-right: 25px;
    margin-bottom: 25px;
}

/* Dekorativer Rahmen versetzt (20px rechts, 20px unten) */
.intro-image .image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    z-index: -1;
    pointer-events: none;
}

/* Bild füllt den Frame aus und hat eigenes Overflow-Hidden für Border-Radius */
.intro-image .image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

/* ============================================================
   INFO-BOX  (Öffnungszeiten, Hinweise, Kontaktinfo)
   ============================================================ */
.info-box {
    background-color: var(--bg-beige);
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    margin-top: 30px;
    border-radius: 0 4px 4px 0;
}

.info-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-box .btn { margin-top: 5px; }

/* ============================================================
   SERVICES-SECTION
   ============================================================ */
.services-section {
    padding: 80px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 50px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.service-card:hover .read-more {
    gap: 15px;
}

/* ============================================================
   PARALLAX-SECTION
   ============================================================ */
.parallax-section {
    padding: 120px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.parallax-section .container {
    position: relative;
    z-index: 2;
}

.parallax-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.4;
}

/* ============================================================
   HIGHLIGHTS-SECTION
   ============================================================ */
.highlights-section {
    padding: 80px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.highlight-item i,
.highlight-item em {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    font-style: normal;
}

.highlight-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Klickbare Highlight-Items – z. B. als Unterseiten-Links */
a.highlight-item {
    display: block;
    color: inherit;
    transition: transform var(--transition-fast);
}
a.highlight-item:hover {
    transform: translateY(-6px);
}
a.highlight-item:hover i,
a.highlight-item:hover em {
    color: var(--accent-color);
}

/* Responsive Content */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image {
        order: -1;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .parallax-section h2 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   FONT AWESOME IN <em> TAGS
   TinyMCE wandelt <i class="fas ..."> in <em class="fas ..."> um.
   FA's CSS setzt font-style: normal auf .fas, aber sicherheitshalber
   hier nochmal explizit für <em>.
   ============================================================ */
em[class*="fa-"] {
    font-style: normal;
}

/* ============================================================
   ANIMATIONEN
   ============================================================ */
.reveal-on-scroll {
    transition: opacity 0.8s ease, transform 0.8s ease;
}
/* Startzustand nur wenn JS aktiv ist – ohne JS bleibt Inhalt sichtbar */
.js .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

.fade-in-up { animation: fadeInUp 1s ease forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ============================================================
   BACK-TO-TOP
   ============================================================ */
.cd-top {
    display: inline-block;
    height: 40px; width: 40px;
    position: fixed;
    bottom: 40px; right: 10px;
    z-index: 900;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: rgba(139,69,19,0.9) url('../images/cd-top-arrow.svg') no-repeat center 50%;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-top.cd-is-visible { visibility: visible; opacity: 0.9; }
.cd-top:hover { background-color: var(--primary-color); opacity: 1; }

@media (min-width: 768px)  { .cd-top { right: 20px; bottom: 20px; } }
@media (min-width: 1024px) { .cd-top { height: 60px; width: 60px; right: 30px; bottom: 30px; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .main-nav {display: none;}

    .mobile-menu-toggle { display: block; }

    .hero-content h1 { font-size: 2.5rem; }

    .hero-buttons .btn-secondary { margin-left: 0; }
}

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

p#language_picker_des_124 {
    display: none;
}


/* =====================================================
   SPEISEKARTE
   ===================================================== */

.menu-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 50px;
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.menu-section-source {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px dotted rgba(139,69,19,0.15);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.menu-item-sizes {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-item-sizes span {
    background: var(--bg-beige);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid rgba(139,69,19,0.12);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    padding-top: 2px;
}

.menu-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.menu-badge.vegan       { background: #2d6a4f; color: #fff; }
.menu-badge.vegetarisch { background: var(--accent-color); color: #fff; }
.menu-badge.bio         { background: #4e7c35; color: #fff; }

.menu-toppings {
    background: var(--bg-beige);
    border-radius: 6px;
    padding: 20px 25px;
    margin-top: 10px;
    border: 1px solid rgba(139,69,19,0.1);
}

.menu-toppings h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.menu-toppings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-toppings li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
    border-bottom: 1px dotted rgba(139,69,19,0.12);
    font-size: 0.9rem;
}

.menu-toppings li:last-child {
    border-bottom: none;
}

.menu-toppings li span {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.menu-note {
    background: var(--bg-beige);
    border-left: 3px solid var(--accent-color);
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

@media (max-width: 600px) {
    .menu-item { gap: 12px; }
    .menu-item-sizes { flex-direction: column; gap: 4px; }
    .menu-section-title { font-size: 1.2rem; }
}

/* =============================================================
   GALERIE & LIGHTBOX
   ============================================================= */

/* --- Thumbnail-Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    background: #e0d8cc;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

/* --- Lightbox Overlay --- */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lb-overlay.active {
    display: flex;
}

.lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lb-close:hover { opacity: 1; }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    user-select: none;
}

.lb-nav:hover  { opacity: 1; }
.lb-prev       { left: 0.5rem; }
.lb-next       { right: 0.5rem; }

.lb-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .lb-nav { font-size: 2.2rem; padding: 0.4rem 0.6rem; }
}

nav.pagenavigation {
    display: none;
}

/* ----- Externe Inhalte erst nach Klick laden (Google Maps, YouTube) ----- */
.consent-embed {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 2rem;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    background-color: var(--text-dark);
    background-size: cover;
    background-position: center;
}
.consent-embed::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(20, 14, 8, 0.55), rgba(20, 14, 8, 0.78));
}
.consent-embed p { margin: 0; max-width: 480px; line-height: 1.6; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.consent-embed .consent-embed-icon { font-size: 3rem; line-height: 1; color: var(--secondary-color); }
.consent-embed .consent-embed-note { font-size: 0.85rem; }
.consent-embed .consent-embed-note a { color: var(--white); text-decoration: underline; }

/* ==========================================================
   Audit 09.10.2026 (Pruefbericht F-01, F-23, F-24, F-28)
   Block kann zum Zuruecknehmen komplett entfernt werden.
   ========================================================== */
@media (max-width: 600px){
main [style*="grid-template-columns"]:not(.gallery-grid){grid-template-columns:1fr !important}
main [style*="grid-template-columns"] > *, main .highlights-grid > *{min-width:0}
main, footer{overflow-wrap:break-word}
main h1, main h2, main h3{hyphens:auto;overflow-wrap:break-word}
main .menu-toppings li > span:first-child{white-space:normal !important;min-width:0}
main table{max-width:100%}
}
@media (max-width: 480px){
main table{font-size:.85rem}
main table th, main table td{padding:.5rem .3rem !important;font-size:inherit;hyphens:auto}
}
.footer-bottom p, .footer-bottom p a{color:#a3a3a3}
@media (max-width: 900px){
.mobile-menu-toggle{min-width:44px;min-height:44px}
footer .footer-col li a{display:inline-block;padding:4px 0}
}
@media (prefers-reduced-motion: reduce){
*, *::before, *::after{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
.reveal-on-scroll{opacity:1 !important;transform:none !important}
}
