:root {
    --wm-burgundy: #7b211d;
    --wm-burgundy-dark: #551512;
    --wm-gold: #c7923f;
    --wm-gold-dark: #9a6a24;

    --wm-cream: #fbf5ea;
    --wm-cream-light: #fffaf1;
    --wm-paper: #ffffff;

    --wm-charcoal: #242321;
    --wm-text: #342b24;
    --wm-muted: #786b61;
    --wm-border: #e3d2bd;

    --wm-shadow-soft: 0 10px 28px rgba(55, 35, 24, 0.08);
    --wm-shadow-card: 0 18px 45px rgba(62, 45, 31, 0.10);

    --wm-radius: 20px;
    --wm-radius-small: 12px;

    --container: 1180px;
}

/* =========================================================
   1. Basis
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-walli {
    margin: 0;
    color: var(--wm-text);
    background: var(--wm-cream);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body,
button,
input,
textarea,
select {
    font: inherit;
}

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

a {
    color: var(--wm-burgundy);
    text-decoration: none;
}

a:hover {
    color: var(--wm-gold-dark);
}

p {
    margin-top: 0;
}

.container {
    width: min(var(--container), calc(100% - 36px));
    margin-inline: auto;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--wm-charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--wm-gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   2. Buttons
   ========================================================= */

.btn,
.readmore a,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--wm-gold);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.readmore a:hover,
button.btn:hover {
    background: var(--wm-burgundy);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--wm-gold);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--wm-burgundy);
}

.btn-light:hover {
    background: var(--wm-gold);
    color: #fff;
}

/* =========================================================
   3. Header / Topbar
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--wm-cream);
}

/* obere rote Kontaktleiste */
.topline {
    background: linear-gradient(90deg, #551512 0%, #7b211d 58%, #8d2a23 100%);
    color: #fff4e8;
    font-size: 0.86rem;
}

.topline-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.wm-topline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.wm-topline-left,
.wm-topline-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.wm-topline span,
.wm-topline a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff4e8;
    text-decoration: none;
    line-height: 1.2;
}

.wm-topline a:hover {
    color: #ffffff;
}

.wm-topline .bi,
.wm-topline i {
    color: #f1c27d;
    font-size: 0.95rem;
}

/* Hauptheader */
.main-header {
    position: relative;
    top: auto;
    z-index: 99;
    background:
        linear-gradient(
            to right,
            #fbf5ea 0%,
            #fffaf1 28%,
            #f5eadb 52%,
            #fffaf1 76%,
            #fbf5ea 100%
        );
    border-bottom: 1px solid #eadcca;
    box-shadow: var(--wm-shadow-soft);
}

.main-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo .moduletable,
.header-logo .mod-custom,
.header-logo .custom,
.header-logo p {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--wm-burgundy);
    background: transparent;
    text-decoration: none;
}

.brand:hover {
    color: var(--wm-burgundy);
    text-decoration: none;
}

.wm-logo-img,
.brand img {
    display: block;
    width: auto;
    max-height: 64px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-text {
    max-width: 310px;
    color: var(--wm-burgundy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.08;
}

/* Hauptmenü + Suche */
.header-nav-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-width: 0;
}

.main-menu {
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
}

.main-menu .moduletable,
.main-menu .mod-custom,
.main-menu .custom {
    margin: 0;
    padding: 0;
}

.main-menu ul,
.main-menu .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.main-menu li {
    position: relative;
    margin: 0;
}

.main-menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #3d342f;
    background: transparent;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-menu a:hover,
.main-menu .active > a,
.main-menu .current > a {
    color: var(--wm-burgundy);
    background: rgba(199, 146, 63, 0.14);
}

/* Dropdown-Pfeil */
.main-menu .parent > a::after,
.main-menu .deeper > a::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 0.72rem;
    color: var(--wm-burgundy);
    margin-left: 3px;
}

/* Dropdown */
.main-menu li ul {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--wm-border);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(36, 35, 33, 0.13);
    z-index: 999;
}

.main-menu li:hover > ul,
.main-menu li:focus-within > ul {
    display: block;
}

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

.main-menu li ul a {
    width: 100%;
    min-height: 38px;
    justify-content: flex-start;
    padding: 9px 12px;
    color: #4f4640;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: 10px;
}

.main-menu li ul a:hover {
    color: var(--wm-burgundy);
    background: var(--wm-cream);
}

/* Suche */
.header-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-search .moduletable,
.header-search .mod-custom,
.header-search .custom,
.header-search p,
.header-search form {
    margin: 0;
    padding: 0;
}

.header-search a,
.header-search button,
.wm-search-link {
    width: 42px;
    height: 42px;
    border: 1px solid #dbc5aa;
    border-radius: 50%;
    background: #ffffff;
    color: var(--wm-burgundy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-search a:hover,
.header-search button:hover,
.wm-search-link:hover {
    background: var(--wm-burgundy);
    border-color: var(--wm-burgundy);
    color: #ffffff;
}

/* Mobile Menü Button */
.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--wm-border);
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--wm-burgundy);
    border-radius: 99px;
}

/* Icons sicher sichtbar */
.bi,
[class^="bi-"],
[class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

/* =========================================================
   4. Hero
   ========================================================= */

.hero {
    position: relative;
    background: #211a17;
    overflow: hidden;
}

.wm-hero-custom {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #242321;
}

.wm-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wm-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(1.05);
}

.wm-hero-custom::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(36, 35, 33, 0.82) 0%,
            rgba(36, 35, 33, 0.58) 42%,
            rgba(36, 35, 33, 0.18) 100%
        );
}

.wm-hero-overlay {
    position: relative;
    z-index: 3;
    max-width: 1180px;
    min-height: 460px;
    margin: 0 auto;
    padding: 70px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.wm-hero-overlay .section-kicker {
    color: #d9aa62;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.wm-hero-overlay h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4.1rem);
    line-height: 1.06;
    font-weight: 700;
}

.wm-hero-overlay p {
    max-width: 640px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    line-height: 1.7;
}

.wm-hero-overlay .btn {
    align-self: flex-start;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   5. Intro mit Basilika-Hintergrund
   ========================================================= */

.intro-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 2px;
    background: var(--wm-cream);
}

.intro-section .container,
.intro-inner,
.wm-intro {
    position: relative;
    z-index: 2;
}

.intro-section::after {
    content: "";
    position: absolute;
    right: 90px;
    top: 50%;
    width: 620px;
    height: 460px;
    transform: translateY(-50%);
    background-image: url("../images/basilika-goessweinstein-trans.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.20;
    mix-blend-mode: multiply;
    filter: sepia(0.18) saturate(0.85) contrast(0.92);
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 48%,
        rgba(0, 0, 0, 0.55) 64%,
        transparent 82%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 48%,
        rgba(0, 0, 0, 0.55) 64%,
        transparent 82%
    );
    pointer-events: none;
    z-index: 1;
}

.wm-intro {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.wm-intro .section-kicker {
    color: var(--wm-gold);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.wm-intro h2 {
    color: var(--wm-burgundy);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.wm-intro p {
    color: var(--wm-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

/* =========================================================
   6. Highlights / Feature-Cards
   ========================================================= */

.highlight-section {
    background: var(--wm-cream);
    padding: 38px 0 28px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.card-grid > .moduletable,
.card-grid > .mod-custom,
.card-grid > .custom {
    display: contents;
}

.wm-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fffdf8;
    border: 1px solid #dcc8ad;
    box-shadow: 0 18px 42px rgba(62, 45, 31, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wm-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(199, 146, 63, 0.75);
    box-shadow: 0 26px 60px rgba(62, 45, 31, 0.14);
}

.wm-feature-image {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: #d9d0c4;
}

.wm-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(36, 35, 33, 0.02) 0%,
        rgba(36, 35, 33, 0.08) 100%
    );
    pointer-events: none;
}

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

.wm-feature-card:hover .wm-feature-image img {
    transform: scale(1.06);
}

.wm-feature-icon {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    margin: -33px auto 0;
    border-radius: 50%;
    background: #fffdf8;
    border: 1px solid #d8bd96;
    box-shadow: 0 10px 28px rgba(62, 45, 31, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wm-gold);
    font-size: 1.75rem;
}

.wm-feature-icon .bi {
    color: var(--wm-gold);
    line-height: 1;
}

.wm-feature-body {
    padding: 22px 24px 28px;
    text-align: center;
}

.wm-feature-body h3 {
    margin: 0 0 12px;
    color: var(--wm-burgundy);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wm-feature-body p {
    min-height: 58px;
    margin: 0 0 20px;
    color: var(--wm-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.wm-feature-body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--wm-burgundy);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
}

.wm-feature-body a:hover {
    color: var(--wm-gold-dark);
}

.wm-feature-body a .bi {
    font-size: 0.8rem;
}

/* alte Highlight-Karten neutralisieren */
.wm-highlight-card {
    background: transparent;
}

/* =========================================================
   7. Content / Unterseiten
   ========================================================= */

.breadcrumb-area {
    padding: 13px 0;
    background: #fff;
    border-bottom: 1px solid var(--wm-border);
    color: var(--wm-muted);
    font-size: 0.92rem;
}

.main-top-section,
.main-bottom-section {
    padding: 36px 0;
    background: #fff;
}

.content-section {
    background: #fff;
    padding: 48px 0;
}

.content-layout {
    display: grid;
    gap: 30px;
    align-items: start;
}

.content-layout.has-left.has-right {
    grid-template-columns: 250px minmax(0, 1fr) 250px;
}

.content-layout.has-left.no-right {
    grid-template-columns: 270px minmax(0, 1fr);
}

.content-layout.no-left.has-right {
    grid-template-columns: minmax(0, 1fr) 290px;
}

.content-layout.no-left.no-right {
    grid-template-columns: minmax(0, 1fr);
}

.main-content {
    min-width: 0;
}

.main-content > *:first-child {
    margin-top: 0;
}

.main-content img {
    border-radius: 12px;
}

.sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 104px;
}

.sidebar .moduletable,
.sidebar .mod-custom {
    background: var(--wm-cream);
    border: 1px solid var(--wm-border);
    border-radius: 14px;
    padding: 18px;
}

.sidebar h3 {
    margin-top: 0;
    color: var(--wm-burgundy);
}

/* =========================================================
   8. Besuch planen / Visit
   ========================================================= */

.visit-section {
    background: var(--wm-cream);
    padding: 34px 0 4px;
}

.visit-box {
    width: min(1158px, calc(100% - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: stretch;
    background: #fffdf8;
    border: 1px solid rgba(227, 210, 189, 0.95);
    box-shadow: 0 8px 22px rgba(62, 45, 31, 0.035);
    overflow: hidden;
    padding: 0;
}

.visit-box.container {
    padding-left: 0;
    padding-right: 0;
}

.visit-info {
    padding: 34px 34px 30px 40px;
    background: linear-gradient(90deg, #fffdf8 0%, #fbf5ea 100%);
}

.wm-visit-panel {
    max-width: 430px;
}

.wm-visit-panel .section-kicker {
    margin: 0 0 8px;
    color: var(--wm-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wm-visit-panel h2 {
    margin: 0 0 24px;
    color: var(--wm-burgundy);
    font-size: clamp(1.75rem, 2.1vw, 2.45rem);
    line-height: 1.08;
}

/* Liste */
.wm-visit-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.wm-visit-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    align-items: flex-start;
}

.wm-visit-row > .bi {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wm-gold);
    border: 1px solid rgba(199, 146, 63, 0.65);
    font-size: 1rem;
}

.wm-visit-row h3 {
    margin: 0 0 3px;
    color: var(--wm-charcoal);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wm-visit-row p {
    margin: 0;
    color: var(--wm-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Button */
.wm-visit-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 10px 20px;
    background: var(--wm-gold);
    color: #fff;
    border-radius: 0;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.wm-visit-more:hover {
    background: var(--wm-burgundy);
    color: #fff;
}

.visit-image {
    min-height: 300px;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    border: 0;
    background-image:
        linear-gradient(
            0deg,
            rgba(36, 35, 33, 0.03),
            rgba(36, 35, 33, 0.03)
        ),
        url("/images/highlights/museum.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.visit-image::before,
.visit-image::after {
    display: none;
}

/* =========================================================
   9. Galerie / Impressionen als Cards
   ========================================================= */

.gallery-section {
    background: var(--wm-cream);
    padding: 62px 0 90px;
}

.gallery-wrap .moduletable,
.gallery-wrap .mod-custom,
.gallery-wrap .custom {
    margin: 0;
}

.wm-gallery-head {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.wm-gallery-head .section-kicker {
    color: var(--wm-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wm-gallery-head h2 {
    color: var(--wm-burgundy);
    margin: 0 0 16px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.wm-gallery-head p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--wm-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.wm-impression-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.wm-impression-card {
    min-height: 410px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    border: 1px solid #dcc8ad;
    box-shadow: 0 18px 42px rgba(62, 45, 31, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wm-impression-card:hover {
    transform: translateY(-5px);
    border-color: rgba(199, 146, 63, 0.75);
    box-shadow: 0 26px 60px rgba(62, 45, 31, 0.14);
}

.wm-impression-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #d9d0c4;
}

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

.wm-impression-card:hover .wm-impression-image img {
    transform: scale(1.05);
}

.wm-impression-icon {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    margin: -33px auto 0;
    border-radius: 50%;
    background: #fffdf8;
    border: 1px solid #d8bd96;
    box-shadow: 0 10px 28px rgba(62, 45, 31, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wm-gold);
    font-size: 1.75rem;
}

.wm-impression-icon .bi {
    color: var(--wm-gold);
    line-height: 1;
}

.wm-impression-body {
    min-height: 150px;
    padding: 22px 24px 28px;
    text-align: center;
}

.wm-impression-body h3 {
    margin: 0 0 12px;
    color: var(--wm-burgundy);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wm-impression-body p {
    margin: 0;
    color: var(--wm-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* =========================================================
   10. Footer oben: Route / Map / Info / Kontakt
   ========================================================= */
/* =========================================================
   Footer Map Bereich mit oberem und unterem Balken
   ========================================================= */

.location-section {
    position: relative;
    background: #211713;
    padding: 0;
}

.location-section::before,
.location-section::after {
    content: "";
    display: block;
    width: 100%;
    height: 16px;
    background:
        linear-gradient(
            90deg,
            #551512 0%,
            #7b211d 55%,
            #8d2a23 100%
        );
}

/* Map/Info-Bereich selbst */
.wm-footer-location {
    border-top: 1px solid rgba(199, 146, 63, 0.38);
    border-bottom: 1px solid rgba(199, 146, 63, 0.38);
}
.location-section {
    background: #211713;
    padding: 0;
}

.location-map {
    min-height: 0;
    background: transparent;
}

.location-map .moduletable,
.location-map .mod-custom,
.location-map .custom,
.location-map p {
    margin: 0;
    padding: 0;
}

.wm-footer-location {
    width: 100%;
    display: grid;
    grid-template-columns: 400px minmax(360px, 1fr) 470px 390px;
    min-height: 225px;
    background: #fffdf8;
}

/* links Adresse */
.wm-footer-route {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.10), transparent 12rem),
        linear-gradient(135deg, var(--wm-burgundy), var(--wm-burgundy-dark));
    color: #fff;
    padding: 34px 34px 30px 42px;
}

.wm-footer-route-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-footer-route-icon .bi {
    color: #fff;
    font-size: 1.35rem;
}

.wm-footer-contact::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 20px;
    width: 135px;
    height: 95px;

    background-image: url("/images/logo-wallfahrtsmuseum.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;

    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}
.wm-footer-contact .section-kicker,
.wm-footer-contact ul,
.wm-footer-social {
    position: relative;
    z-index: 2;
}
.wm-footer-route address {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.65;
}

.wm-footer-route address strong,
.wm-footer-route address span {
    display: block;
    white-space: nowrap;
}

.wm-route-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 9px 17px;
    border: 1px solid rgba(199, 146, 63, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-decoration: none;
}

.wm-route-button:hover {
    background: var(--wm-gold);
    border-color: var(--wm-gold);
    color: #fff;
}

/* Map */
.wm-footer-map {
    min-height: 225px;
    background: #dfe7d9;
}

.wm-footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 225px;
    display: block;
    border: 0;
    filter: saturate(0.82) contrast(0.96) brightness(1.04);
}

/* neuer Infobereich neben der Map */
.wm-footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
    background:
        linear-gradient(90deg, #fffdf8 0%, #fbf5ea 100%);
    border-right: 1px solid rgba(227, 210, 189, 0.75);
}

.wm-footer-info p {
    margin: 0 0 14px;
    color: var(--wm-text);
    font-size: 1.02rem;
    line-height: 1.65;
}

.wm-footer-inline-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(123, 33, 29, 0.45);
    font-size: 0.93rem;
    line-height: 1.55;
}

.wm-footer-inline-links a {
    color: var(--wm-burgundy);
    text-decoration: none;
    font-weight: 600;
}

.wm-footer-inline-links a:hover {
    color: var(--wm-gold-dark);
}

.wm-footer-inline-links span {
    color: rgba(123, 33, 29, 0.38);
}
/* Links im hellen Info-Bereich neben der Karte sichtbar machen */
.wm-footer-info .wm-footer-inline-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(123, 33, 29, 0.45);
    font-size: 0.93rem;
    line-height: 1.55;
}

.wm-footer-info .wm-footer-inline-links a {
    color: var(--wm-burgundy);
    font-weight: 700;
    text-decoration: none;
}

.wm-footer-info .wm-footer-inline-links a:hover {
    color: var(--wm-gold-dark);
}

.wm-footer-info .wm-footer-inline-links span {
    color: rgba(123, 33, 29, 0.45);
}
/* Kontakt rechts */
.wm-footer-contact {
    position: relative;
    overflow: hidden;
    padding: 34px 38px;
    background:
        radial-gradient(circle at 88% 45%, rgba(199, 146, 63, 0.13), transparent 12rem),
        #fffdf8;
}

.wm-footer-contact::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -34px;
    width: 170px;
    height: 170px;
    background-image: url("../images/basilika-freigestellt.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.075;
    pointer-events: none;
}

.wm-footer-contact ul {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 9px;
}

.wm-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--wm-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.wm-footer-contact li .bi {
    color: var(--wm-burgundy);
    margin-top: 3px;
    flex: 0 0 auto;
}

.wm-footer-contact a {
    color: var(--wm-muted);
    text-decoration: none;
}

.wm-footer-contact a:hover {
    color: var(--wm-burgundy);
}

.wm-footer-social {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.wm-footer-social a {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--wm-burgundy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wm-footer-social a:hover {
    background: var(--wm-gold);
    color: #fff;
}

.wm-footer-social .bi {
    color: #fff;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1450px) {
    .wm-footer-location {
        grid-template-columns: 360px minmax(320px, 1fr) 390px 360px;
    }

    .wm-footer-info {
        padding: 30px 30px;
    }

    .wm-footer-route,
    .wm-footer-contact {
        padding: 30px 28px;
    }
}

@media (max-width: 1180px) {
    .wm-footer-location {
        grid-template-columns: 1fr 1fr;
    }

    .wm-footer-map,
    .wm-footer-map iframe {
        min-height: 260px;
    }
}

@media (max-width: 760px) {
    .wm-footer-location {
        grid-template-columns: 1fr;
    }

    .wm-footer-route {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .wm-footer-route address strong,
    .wm-footer-route address span {
        white-space: normal;
    }

    .wm-footer-info,
    .wm-footer-contact,
    .wm-footer-route {
        padding: 28px 22px;
    }
}

/* =========================================================
   11. Footer dunkel
   ========================================================= */
/* =========================================================
   11. Footer dunkel / final
   ========================================================= */
/* =========================================================
   11. Footer dunkel / volle Breite warm
   ========================================================= */
/* =========================================================
   11. Footer dunkel / warm
   ========================================================= */
/* =========================================================
   11. Footer dunkel / schlank
   ========================================================= */
/* =========================================================
   11. Footer dunkel / reduziert
   ========================================================= */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 95px;
    background:
        radial-gradient(circle at 82% 100%, rgba(199, 146, 63, 0.14), transparent 28rem),
        linear-gradient(135deg, #541b17 0%, #3d1714 45%, #281411 100%);
    color: #f1e5d4;
    margin-top: auto;
}

.site-footer::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -70px;
    width: 360px;
    height: 260px;
    background-image: url("../images/basilika-goessweinstein-trans.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.055;
    pointer-events: none;
    z-index: 1;
}

.footer-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 95px;
    display: flex;
    align-items: center;
    padding: 18px 34px;
}

.footer-grid > *:not(:first-child) {
    display: none;
}

.wm-footer-logo-block img {
    max-width: 210px;
    height: auto;
    display: block;
    filter: brightness(1.18) saturate(1.08);
}

.wm-footer-logo-block p {
    display: none;
}

.footer-bottom {
    display: none;
}
/* leere alte Module optisch neutral */
.site-footer h3,
.site-footer ul,
.wm-footer-links {
    margin: 0;
    padding: 0;
}

/* untere Zeile optional */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.10);
}

.footer-bottom-inner {
    min-height: 42px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 244, 232, 0.48);
    font-size: 0.84rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 34px 24px;
    }

    .wm-footer-logo-block img {
        margin: 0 auto;
        max-width: 210px;
    }

    .site-footer::after {
        right: -120px;
        opacity: 0.045;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        padding: 30px 20px;
    }

    .wm-footer-center p {
        font-size: 0.96rem;
    }

    .wm-footer-inline-links {
        font-size: 0.9rem;
    }

    .site-footer::after {
        display: none;
    }
}
/* =========================================================
   12. Joomla Basics / Formulare
   ========================================================= */

joomla-alert,
.alert {
    display: block;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--wm-border);
    border-radius: 12px;
    background: #fff8e8;
}

input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--wm-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--wm-text);
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(199, 146, 63, 0.24);
    border-color: var(--wm-gold);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--wm-border);
    padding: 10px 12px;
}

th {
    background: var(--wm-cream);
}

/* =========================================================
   13. Responsive
   ========================================================= */

@media (max-width: 1200px) {
    .wm-footer-location {
        grid-template-columns: 360px minmax(380px, 1fr) 390px;
    }

    .wm-footer-route,
    .wm-footer-contact {
        padding: 30px 28px;
    }
}

@media (max-width: 1180px) {
    .main-header-inner {
        gap: 22px;
    }

    .wm-logo-img,
    .brand img {
        max-height: 56px;
    }

    .main-menu a {
        padding: 8px 9px;
        font-size: 0.76rem;
        letter-spacing: 0.045em;
    }

    .header-nav-wrap {
        gap: 16px;
    }
}

@media (max-width: 1100px) {
    .card-grid,
    .wm-impression-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-feature-image {
        height: 190px;
    }

    .content-layout.has-left.has-right,
    .content-layout.has-left.no-right,
    .content-layout.no-left.has-right {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .visit-box {
        width: min(100% - 36px, var(--container));
        grid-template-columns: 1fr;
    }

    .visit-info {
        padding: 32px 28px;
    }

    .wm-visit-panel {
        max-width: none;
    }

    .visit-image {
        min-height: 260px;
    }

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

@media (max-width: 1050px) {
    .wm-footer-location {
        grid-template-columns: 1fr;
    }

    .wm-footer-route {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .wm-footer-route address strong,
    .wm-footer-route address span {
        white-space: normal;
    }

    .wm-footer-map,
    .wm-footer-map iframe {
        min-height: 260px;
    }
}

@media (max-width: 980px) {
    .main-header-inner {
        min-height: 74px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

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

    .header-nav-wrap {
        width: 100%;
        flex: 0 0 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding-top: 10px;
        border-top: 1px solid var(--wm-border);
    }

    .header-nav-wrap.is-open {
        display: flex;
    }

    .main-menu {
        width: 100%;
        margin-left: 0;
    }

    .main-menu ul,
    .main-menu .mod-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        justify-content: stretch;
    }

    .main-menu a {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        font-size: 0.9rem;
        letter-spacing: 0.04em;
    }

    .main-menu li ul {
        position: static;
        display: block;
        min-width: 0;
        padding: 2px 0 2px 18px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .main-menu li ul a {
        background: rgba(123, 33, 29, 0.04);
    }

    .header-search {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .wm-hero-custom {
        min-height: 420px;
    }

    .wm-hero-overlay {
        min-height: 420px;
        padding: 55px 20px;
    }

    .wm-hero-overlay p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 760px) {
    .topline-inner {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .wm-topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wm-topline-left,
    .wm-topline-right {
        gap: 8px 14px;
    }

    .wm-topline-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-section,
    .highlight-section,
    .content-section,
    .visit-section,
    .gallery-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .intro-section::after {
        right: -120px;
        width: 360px;
        height: 320px;
        opacity: 0.14;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .card-grid,
    .wm-impression-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wm-feature-image {
        height: 210px;
    }

    .wm-feature-body p {
        min-height: 0;
    }

    .visit-box {
        width: min(100% - 24px, var(--container));
    }

    .visit-info {
        padding: 28px 22px;
    }

    .visit-image {
        min-height: 220px;
    }

    .wm-impression-image {
        height: 220px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 12px 0;
    }

    .wm-footer-logo-block img {
        max-width: 180px;
    }
}

@media (max-width: 560px) {
    .wm-footer-route {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .wm-footer-route-icon {
        width: 42px;
        height: 42px;
    }

    .wm-footer-contact {
        padding: 28px 22px;
    }

    .wm-footer-map,
    .wm-footer-map iframe {
        min-height: 230px;
    }

    .wm-footer-contact li {
        font-size: 0.86rem;
    }
}

@media (max-width: 520px) {
    .main-header-inner {
        gap: 14px;
    }

    .wm-logo-img,
    .brand img {
        max-height: 44px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .wm-topline {
        font-size: 0.8rem;
    }

    .wm-topline-right {
        display: none;
    }
}

@media (max-width: 420px) {
    .intro-section::after {
        display: none;
    }
}