/*
Theme Name: WestAlp Westendorf
Theme URI: https://westalp-westendorf.at
Author: Oliver Eigenbrodt
Author URI: https://eigenbroduction.de
Description: Schlankes One-Pager-Theme für die Ferienwohnungen WestAlp Westendorf. Dreisprachig (DE, EN, NL) mit Polylang, Buchungskalender über das Plugin WestAlp Booking, lokale Schriften, WebP-Bilder.
Version: 1.5.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: westalp
*/

@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
	--wa-green: #2F4B3C;
	--wa-green-dark: #1F3328;
	--wa-wood: #C8955A;
	--wa-wood-text: #8A5A2B;
	--wa-wood-light: #E6C79E;
	--wa-cream: #F7F4EE;
	--wa-sand: #EFE9DE;
	--wa-ink: #1F2622;
	--wa-text: #3D4842;
	--wa-muted: #55605A;
	--wa-line: #E4DED2;
	--wa-head: "Outfit", system-ui, sans-serif;
	--wa-body: "Figtree", system-ui, sans-serif;
	--wa-pad: max(20px, calc((100% - 1280px) / 2));
	--wa-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--wa-cream); color: var(--wa-ink); font: 400 17px/1.65 var(--wa-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wa-green); }
a:hover { color: var(--wa-green-dark); }
h1, h2, h3, h4 { font-family: var(--wa-head); color: var(--wa-ink); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-weight: 600; font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.02em; }
h2 { font-weight: 600; font-size: clamp(28px, 3vw, 40px); }
h3 { font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--wa-wood); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wa-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.wa-skip:focus { left: 16px; }

/* Header */
.wa-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .96); border-bottom: 1px solid var(--wa-line); backdrop-filter: saturate(1.2) blur(6px); }
.admin-bar .wa-header { top: 32px; }
.wa-header-inner { padding: 12px var(--wa-pad); display: flex; align-items: center; gap: 24px; }
.wa-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-logo-img { display: block; max-height: 48px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 520px) { .wa-logo-img { max-height: 40px; max-width: 160px; } }
.wa-logo-text { display: flex; flex-direction: column; line-height: 1; }
.wa-logo-text span { font: 600 22px/1 var(--wa-head); color: var(--wa-green); }
.wa-logo-text small { font: 500 10.5px/1 var(--wa-head); letter-spacing: 3px; color: var(--wa-muted); margin-top: 4px; }
.wa-lang { list-style: none; margin: 0 0 0 -10px; padding: 0; display: flex; align-items: center; gap: 2px; order: 2; }
.wa-lang a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; opacity: .55; transition: opacity .15s, background .15s; }
.wa-lang a:hover, .wa-lang a:focus-visible { opacity: 1; background: rgba(47, 75, 60, .08); }
.wa-lang a.is-current { opacity: 1; background: rgba(47, 75, 60, .12); }
.wa-lang svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.wa-nav-wrap { order: 1; }
.wa-nav-wrap { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.wa-nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 500; font-size: 15px; }
.wa-nav a { color: var(--wa-ink); text-decoration: none; }
.wa-nav a:hover { color: var(--wa-green); text-decoration: underline; text-underline-offset: 4px; }
.wa-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--wa-green); color: #fff; font: 600 16px/1.1 var(--wa-body); text-decoration: none; border: 1.5px solid var(--wa-green); text-align: center; }
.wa-btn:hover, .wp-block-button__link:hover { background: var(--wa-green-dark); border-color: var(--wa-green-dark); color: #fff; }
.wa-header .wa-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wa-green); }
.is-style-outline > .wp-block-button__link:hover { background: var(--wa-green); color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wa-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--wa-ink); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1100px) {
	.wa-menu-toggle { display: inline-flex; order: 3; margin-left: 4px; }
	.wa-lang { margin-left: auto; }
	.wa-nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wa-cream); border-bottom: 1px solid var(--wa-line); padding: 16px var(--wa-pad) 24px; flex-direction: column; align-items: flex-start; gap: 18px; }
	.wa-nav-wrap.is-open { display: flex; }
	.wa-nav { flex-direction: column; gap: 4px; font-size: 18px; width: 100%; }
	.wa-nav a { display: block; padding: 10px 0; }
	.wa-header .wa-btn { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .wa-header { top: 46px; } }

/* Seiten allgemein */
.wa-page { max-width: 820px; margin: 0 auto; padding: 72px 20px 96px; }
.wa-page-title { margin-bottom: 32px; }
.wa-onepager .wa-content > * { margin: 0; }

/* Sektionen: Inhalt auf 1280 px zentriert, Hintergrund volle Breite */
.wa-section { padding: 104px var(--wa-pad); }
.wa-section.wa-narrow { padding-left: max(20px, calc((100% - 880px) / 2)); padding-right: max(20px, calc((100% - 880px) / 2)); }
.wa-bg-white { background: #fff; }
.wa-bg-sand { background: var(--wa-sand); }
.wa-bg-green { background: var(--wa-green); color: #fff; }
.wa-bg-green h2 { color: #fff; }
.wa-eyebrow { font: 600 13px/1 var(--wa-body); letter-spacing: 2px; text-transform: uppercase; color: var(--wa-wood-text); margin: 0 0 16px; }
.wa-lead, .wa-intro { font-size: 18px; color: var(--wa-text); }
.wa-intro { max-width: 760px; margin-bottom: 40px; }
.wa-section > h2 { max-width: 760px; }

/* Hero: kompakte Kachel unten links, das Bild bleibt sichtbar */
.wa-hero { position: relative; min-height: min(780px, 90vh); display: flex; align-items: flex-end; padding: 120px var(--wa-pad) 40px; overflow: hidden; }
.wa-hero .wa-hero-img { position: absolute; inset: 0; margin: 0; }
.wa-hero .wa-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.wa-hero-card { position: relative; max-width: 470px; background: rgba(247, 244, 238, .94); border-radius: 16px; padding: 22px 26px 24px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); margin: 0 !important; }
.wa-hero-card h1 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; margin: 12px 0 10px; }
.wa-hero-card .wa-lead { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.wa-hero-card .wp-block-button__link { min-height: 44px; padding: 0 20px; font-size: 15px; }
.wa-hero-card .wp-block-buttons { gap: 10px; }
.wa-badge { display: inline-block; font: 600 11px/1 var(--wa-body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--wa-wood-text); background: #F1E4D2; padding: 7px 10px; border-radius: 999px; margin: 0; }
@media (max-width: 640px) {
	.wa-hero { display: block; min-height: 0; padding: 0 0 8px; }
	.wa-hero .wa-hero-img { position: relative; height: 56vh; min-height: 320px; }
	.wa-hero-card { margin: -56px 12px 0 !important; padding: 20px; background: var(--wa-cream); }
	.wa-hero .wa-hero-img img { object-position: 62% center; }
}

/* Das Haus */
.wa-split { gap: 64px; align-items: center; margin: 0; }
.wa-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wa-facts li { background: #fff; border-radius: 16px; padding: 24px; font: 600 18px/1.3 var(--wa-head); min-height: 120px; display: flex; align-items: flex-end; border-top: 4px solid var(--wa-green); }
@media (max-width: 520px) { .wa-facts { grid-template-columns: 1fr; } .wa-facts li { min-height: 0; } }

/* Wohnungen */
.wa-apts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 32px; margin: 0 !important; }
.wa-apts > * { margin: 0 !important; }
.wa-apt { background: var(--wa-cream); border-radius: var(--wa-radius); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 32px; scroll-margin-top: 96px; }
.wa-apt > * { margin-left: 32px !important; margin-right: 32px !important; }
.wa-apt > .wa-slider { margin: 0 0 24px !important; }
.wa-apt h3 { margin: 0 0 14px; }
.wa-apt-cta { margin-top: auto !important; padding-top: 20px; border-top: 1px solid var(--wa-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wa-apt-cta > * { margin: 0 !important; }
.wa-price { font: 400 15px/1.2 var(--wa-body); color: var(--wa-muted); white-space: nowrap; }
.wa-price strong { font: 600 26px/1 var(--wa-head); color: var(--wa-ink); margin: 0 2px; }
.wa-apt-cta .wp-block-buttons { gap: 10px; }
.wa-apt-cta .wp-block-button__link { min-height: 46px; padding: 0 20px; font-size: 15px; }
/* Altbestand (Theme 1.0): Einzelbild statt Slider */
.wa-apt > .wa-apt-img { margin: 0 0 24px !important; }
.wa-apt > .wa-apt-img img { width: 100%; height: 340px; object-fit: cover; }
.wa-specs { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.wa-specs li { background: #fff; padding: 9px 12px; border-radius: 999px; font: 500 14px/1 var(--wa-body); }
.wa-apt p:not(.wa-price) { color: var(--wa-text); font-size: 16px; }
@media (max-width: 520px) { .wa-apt > * { margin-left: 20px !important; margin-right: 20px !important; } }

/* Foto-Slider je Wohnung (core/gallery, per JS erweitert) */
.wa-slider { position: relative; }
.wa-apt .wa-gallery.wp-block-gallery { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 !important; aspect-ratio: 3 / 2; max-height: 400px; background: #E7E2D7; }
.wa-apt .wa-gallery::-webkit-scrollbar { display: none; }
.wa-apt .wa-gallery.wp-block-gallery > .wp-block-image { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; scroll-snap-align: start; height: 100%; }
.wa-apt .wa-gallery.wp-block-gallery > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; cursor: zoom-in; }
.wa-slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: var(--wa-ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; z-index: 2; }
.wa-slide-btn:hover { background: #fff; }
.wa-slide-btn[disabled] { opacity: 0; pointer-events: none; }
.wa-slide-prev { left: 12px; }
.wa-slide-next { right: 12px; }
.wa-slide-count { position: absolute; right: 12px; bottom: 12px; background: rgba(31, 38, 34, .78); color: #fff; font: 500 13px/1 var(--wa-body); padding: 7px 10px; border-radius: 999px; z-index: 2; pointer-events: none; }
.wa-slide-zoom { position: absolute; left: 12px; bottom: 12px; background: rgba(31, 38, 34, .78); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }

/* Lightbox */
.wa-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(15, 20, 17, .96); color: #fff; }
.wa-lightbox::backdrop { background: rgba(15, 20, 17, .96); }
.wa-lightbox[open] { display: flex; flex-direction: column; }
.wa-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px 8px; touch-action: pan-y; }
.wa-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.wa-lb-stage.is-plan img { background: #fff; padding: 12px; }
.wa-lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px 20px; font-size: 15px; color: #D5DED8; }
.wa-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wa-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.wa-lb-close { top: 12px; right: 12px; }
.wa-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.wa-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.wa-lb-btn[hidden] { display: none; }
@media (max-width: 640px) { .wa-lb-stage { padding: 60px 8px 8px; } .wa-lb-prev, .wa-lb-next { top: auto; bottom: 64px; transform: none; } }
html.wa-noscroll { overflow: hidden; }

/* Ausstattung */
.wa-features { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 36px 32px; }
.wa-features li { display: flex; flex-direction: column; gap: 6px; color: #D5DED8; font-size: 15px; padding-top: 18px; border-top: 2px solid var(--wa-wood-light); }
.wa-features strong { color: #fff; font: 600 18px/1.3 var(--wa-head); }

/* Lage */
.wa-rounded img { border-radius: var(--wa-radius); width: 100%; height: 300px; object-fit: cover; }
.wa-rounded { margin: 0 0 20px; }
.wa-distances { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.wa-distances li { flex: 1 1 220px; background: #fff; border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; color: var(--wa-muted); font-size: 15px; }
.wa-distances strong { font: 600 28px/1.1 var(--wa-head); color: var(--wa-green); }

/* Buchen */
.wa-card { background: #fff; border-radius: var(--wa-radius); padding: 28px 32px; margin-top: 32px !important; }
.wa-prices { overflow-x: auto; margin: 0 0 16px; }
.wa-prices table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; table-layout: auto; }
.wa-prices table, .wa-prices th, .wa-prices td, .wa-prices thead { border: 0; }
.wa-prices th { text-align: left; color: var(--wa-muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--wa-line) !important; }
.wa-prices td { padding: 12px 8px; border-bottom: 1px solid #F0EBE2 !important; }
.wa-prices td:nth-child(n+4), .wa-prices th:nth-child(n+4) { text-align: right; }
.wa-prices tr:nth-child(4) td { background: #F4F8F5; font-weight: 600; }
.wa-note { font-size: 14px; color: var(--wa-muted); margin: 0; }
.wab { margin-top: 8px; }

/* FAQ */
.wa-faq { border-top: 1px solid #DDD6C9; margin-top: 32px !important; }
.wa-faq .wp-block-details { border-bottom: 1px solid #DDD6C9; padding: 20px 0; margin: 0 !important; }
.wa-faq summary { font: 600 19px/1.35 var(--wa-head); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wa-faq summary::-webkit-details-marker { display: none; }
.wa-faq summary::after { content: "+"; color: var(--wa-green); font-weight: 600; }
.wa-faq details[open] summary::after { content: "−"; }
.wa-faq details p { margin: 12px 0 0; color: var(--wa-text); }

/* Kontakt */
.wa-address { font-size: 18px; line-height: 1.75; }
.wa-address strong { font: 600 20px/1.6 var(--wa-head); }

/* Footer */
.wa-footer { background: var(--wa-ink); color: #D5DED8; font-size: 14px; }
.wa-footer-inner { padding: 40px var(--wa-pad); }
.wa-footer a { color: #D5DED8; }
.wa-footer a:hover { color: #fff; }
.wa-sister { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #3A443E; }
.wa-sister-title { font: 600 13px/1 var(--wa-body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--wa-wood-light); }
.wa-sister a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.wa-sister strong { font: 600 17px/1.2 var(--wa-head); color: #fff; }
.wa-footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.wa-footer-brand { font: 600 18px/1 var(--wa-head); color: #fff; }
.wa-footer-brand span { font-weight: 400; color: #D5DED8; }
.wa-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* Mobil */
@media (max-width: 781px) {
	.wa-section { padding-top: 72px; padding-bottom: 72px; }
	.wa-split { gap: 32px; }
	.wa-card { padding: 20px; }
}
