/*
Theme Name: Bergheimat Alpin
Theme URI: https://bergheimat-tux.at/
Author: Bergheimat
Description: Schlankes, responsives WordPress-Theme für die Ferienwohnungen Bergheimat in Tux/Juns. Startseite vollständig im normalen Gutenberg-Seiteneditor bearbeitbar. Ohne Page-Builder.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.3
Text Domain: bergheimat-alpin
Tags: custom-logo, custom-menu, featured-images, editor-style, wide-blocks, block-patterns
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --bht-pine: #263f31;
    --bht-pine-dark: #1a3025;
    --bht-cream: #faf7f0;
    --bht-warm: #f0ebe1;
    --bht-paper: #fffdf8;
    --bht-ink: #24332b;
    --bht-muted: #62675e;
    --bht-gold: #a78355;
    --bht-border: #e2dccf;
    --bht-serif: Georgia, 'Times New Roman', serif;
    --bht-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bht-cream); color: var(--bht-ink); font: 400 16px/1.7 var(--bht-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--bht-pine); text-underline-offset: .22em; }
a:hover { color: #926c3f; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #b38c54; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1,h2,h3,h4,h5,h6 { color: var(--bht-pine-dark); font-family: var(--bht-serif); font-weight: 400; line-height: 1.17; letter-spacing: -.026em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
p { margin: 0 0 1.25em; }
.bht-skip-link { position: fixed; top: -100px; left: 10px; z-index: 9999; background: #fff; padding: 10px 16px; }
.bht-skip-link:focus { top: 10px; }
/* Header */
.bht-site-header { position: relative; z-index: 100; background: #fbf8f1; border-bottom: 1px solid #ebe4d7; }
.bht-header-inner { width: min(100% - 64px, 1310px); margin: auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.bht-brand-area { flex: 0 0 auto; }
.bht-brand { color: #352b21; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; letter-spacing: .10em; line-height: 1; }
.bht-brand:hover { color: var(--bht-pine); }
.bht-logo-mountains { width: 100px; height: 28px; display: block; margin-bottom: 2px; }
.bht-brand-title { font-family: var(--bht-serif); font-size: 27px; letter-spacing: .075em; }
.bht-brand-subtitle { font-size: 9px; font-weight: 700; letter-spacing: .32em; margin-top: 7px; }
.bht-brand-area .custom-logo { max-width: 240px; max-height: 90px; height: auto; width: auto; }
.bht-primary-nav { display: flex; gap: 38px; align-items: center; justify-content: flex-end; }
.bht-nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; }
.bht-nav-list li { padding: 0; margin: 0; }
.bht-nav-list a { text-decoration: none; color: var(--bht-ink); display: block; font-weight: 500; font-size: 14px; line-height: 1.5; padding: 10px 0; transition: color .2s ease; }
.bht-nav-list a:hover, .bht-nav-list .current-menu-item > a { color: #956b3e; }
.bht-nav-list .current-menu-item > a { text-decoration: underline; text-decoration-color: #a78355; text-underline-offset: 7px; }
.bht-nav-list li { position: relative; }
.bht-nav-list .sub-menu { display: none; position: absolute; left: 0; top: calc(100% - 3px); min-width: 170px; z-index: 40; margin: 0; padding: 10px 17px; list-style: none; background: #fffdf7; border: 1px solid var(--bht-border); box-shadow: 0 8px 22px #00000012; }
.bht-nav-list li:hover > .sub-menu, .bht-nav-list li:focus-within > .sub-menu { display: block; }
.bht-header-cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 11px; padding: 12px 23px; min-height: 46px; border-radius: 5px; color: #fff; background: var(--bht-pine); white-space: nowrap; font-size: 14px; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.bht-header-cta:hover { background: #365845; color: #fff; transform: translateY(-1px); }
.bht-header-cta span { font-size: 18px; font-weight: 400; }
.bht-nav-toggle { display: none; border: none; background: transparent; width: 45px; height: 45px; padding: 12px 8px; flex-direction: column; justify-content: space-evenly; }
.bht-nav-toggle span { width: 100%; height: 2px; background: var(--bht-pine); display: block; border-radius: 3px; }
/* Gutenberg homepage */
.bht-front-main { overflow: clip; }
.bht-front-content { margin: 0; }
.bht-front-content > *:last-child { margin-bottom: 0; }
.bht-hero { position: relative; display: flex; align-items: center; min-height: 630px; isolation: isolate; margin: 0; }
.bht-hero .wp-block-cover__image-background { object-fit: cover; object-position: center 49%; }
.bht-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(9, 24, 14, .85) 0%, rgba(9,24,14,.58) 35%, rgba(9,24,14,.16) 66%, rgba(9,24,14,.08) 100%) !important; opacity: 1 !important; }
.bht-hero .wp-block-cover__inner-container { width: min(100% - 96px, 1280px); margin-inline: auto; position: relative; z-index: 2; }
.bht-hero-inner { max-width: 620px; margin: 0; }
.bht-eyebrow { margin: 0 0 18px; font: 700 12px/1.35 var(--bht-sans); color: var(--bht-gold); text-transform: uppercase; letter-spacing: .24em; }
.bht-eyebrow-light { color: #f1e4c6; }
.bht-hero .bht-hero-title { color: #fffaf2; font-size: clamp(3.2rem, 5.9vw, 6.25rem); margin: 0 0 18px; line-height: 1.04; letter-spacing: -.045em; text-shadow: 0 1px 8px #00000020; }
.bht-hero .bht-hero-description { color: #fffdf6; font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.7; max-width: 495px; margin-bottom: 27px; text-shadow: 0 1px 5px #00000036; }
.bht-button .wp-block-button__link, .wp-block-button.bht-button .wp-block-button__link { min-height: 51px; padding: 13px 24px; border: 1px solid #fff9ed; background: var(--bht-pine); color: #fff; font-family: var(--bht-sans); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 4px; transition: transform .2s ease, background .2s ease; }
.bht-button .wp-block-button__link:hover { background: #3d634d; color: #fff; transform: translateY(-2px); }
.bht-button-inverse .wp-block-button__link, .wp-block-button.bht-button-inverse .wp-block-button__link { background: #fdf8ee; color: var(--bht-pine); }
.bht-button-inverse .wp-block-button__link:hover { background: #e8e0d1; color: var(--bht-pine); }
/* Feature row */
.bht-highlights { background: #f1ebdf; margin: 0; padding: 30px 24px; }
.bht-highlights-grid { width: min(100%, 1250px); margin: 0 auto !important; gap: 0 !important; }
.bht-highlights-grid > .wp-block-column { position: relative; padding: 6px 26px; margin: 0; }
.bht-highlights-grid > .wp-block-column + .wp-block-column { border-left: 1px solid #d9d1c2; }
.bht-highlights-grid h3 { font-size: 19px; letter-spacing: 0; margin: 0 0 4px; }
.bht-highlights-grid p { font-size: 13px; color: var(--bht-muted); margin: 0; line-height: 1.45; }
/* Intro and cards */
.bht-content-section { padding: 95px 24px 110px; margin: 0; }
.bht-content-section > :not(.alignfull) { max-width: 1250px; margin-left: auto; margin-right: auto; }
.bht-section-title { margin: 0 0 16px; font-size: clamp(2.5rem, 4vw, 4rem); }
.bht-section-intro { max-width: 620px !important; margin: 0 auto 48px; font-size: 17px; color: var(--bht-muted); line-height: 1.7; }
.bht-card-grid { max-width: 1250px; margin: 48px auto 0 !important; gap: 28px; align-items: stretch !important; }
.bht-card-grid > .wp-block-column { display: flex; min-width: 0; }
.bht-photo-card { background: var(--bht-paper); border-radius: 8px; overflow: hidden; box-shadow: 0 11px 30px rgba(36, 45, 30, .08); border: 1px solid #eee6d9; width: 100%; padding: 0 0 24px; display: flex; flex-direction: column; }
.bht-photo-card figure { margin: 0; width: 100%; overflow: hidden; }
.bht-photo-card img { width: 100%; height: 255px; object-fit: cover; display: block; transition: transform .35s ease; }
.bht-photo-card:hover img { transform: scale(1.025); }
.bht-photo-card h3 { font-size: clamp(1.65rem, 2.3vw, 2.2rem); margin: 22px 26px 10px; }
.bht-photo-card p { color: var(--bht-muted); font-size: 15px; line-height: 1.63; padding: 0 26px; margin: 0 0 20px; }
.bht-photo-card .bht-card-link { margin: auto 0 0; }
.bht-card-link a { font-size: 14px; font-weight: 700; color: var(--bht-pine); text-decoration: none; border-bottom: 1px solid var(--bht-gold); padding-bottom: 3px; }
.bht-card-link a:hover { color: var(--bht-gold); }
/* Mountain section */
.bht-landscape-section { background: #ebe7dc; margin: 0; }
.bht-landscape-grid { gap: 0 !important; margin: 0 !important; align-items: stretch !important; }
.bht-landscape-grid > .wp-block-column { min-width: 0; align-self: stretch; }
.bht-landscape-grid > .wp-block-column:first-child { display: flex; }
.bht-landscape-image, .bht-landscape-image img { width: 100%; height: 100%; margin: 0; display: block; }
.bht-landscape-image img { min-height: 480px; object-fit: cover; }
.bht-landscape-grid > .wp-block-column:last-child { display: flex; align-items: center; }
.bht-landscape-copy { max-width: 530px; padding: 75px clamp(36px, 7vw, 110px); box-sizing: content-box; }
.bht-landscape-copy h2 { margin: 0 0 21px; }
.bht-landscape-copy p:not(.bht-eyebrow):not(.bht-card-link) { color: #5c625b; font-size: 17px; line-height: 1.8; }
.bht-landscape-copy .bht-card-link { margin-top: 29px; }
/* CTA */
.bht-cta-section { background: var(--bht-pine); color: #fff8ec; padding: 86px 24px 98px; margin: 0; }
.bht-cta-section h2 { color: #fffaf0; }
.bht-cta-section .bht-section-intro { color: #e1e6df; margin-bottom: 30px; }
/* General pages */
.bht-page-main { min-height: 57vh; }
.bht-page-hero { background: #eee9df; text-align: center; padding: 76px 24px 80px; }
.bht-page-kicker { font-size: 12px; font-weight: 700; color: #9c7951; letter-spacing: .18em; }
.bht-page-hero h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); margin: 16px auto 14px; max-width: 930px; }
.bht-page-underline { width: 70px; height: 2px; background: #ad8956; margin: 25px auto 0; }
.bht-page-hero p { max-width: 600px; margin: 20px auto; }
.bht-page-content { width: min(100% - 48px, 980px); margin: 0 auto; padding: 62px 0 100px; overflow-wrap: anywhere; }
.bht-page-content > *:first-child { margin-top: 0; }
.bht-page-content h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 1.1em 0 .4em; }
.bht-page-content h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin: 1.1em 0 .35em; }
.bht-page-content p, .bht-page-content li { line-height: 1.8; }
.bht-page-content ul { padding-left: 22px; }
.bht-page-content li { margin-bottom: 7px; }
.bht-page-content figure img { border-radius: 5px; }
.bht-page-content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 15px; }
.bht-page-content .wp-block-gallery figure { flex: 1 1 240px; }
.bht-page-content table { border-collapse: collapse; width: 100%; }
.bht-page-content td,.bht-page-content th { border-bottom: 1px solid var(--bht-border); padding: 12px; text-align: left; }
.bht-post-preview { margin-bottom: 45px; padding-bottom: 30px; border-bottom: 1px solid var(--bht-border); }
.bht-post-preview h2 { margin: 0 0 14px; }
/* Contact Form 7 and its existing extensions: appearance only, no functionality overridden. */
.bht-page-content .wpcf7 { max-width: 850px; margin-inline: auto; }
.bht-page-content .wpcf7-form label { font-size: 15px; color: var(--bht-ink); font-weight: 600; }
.bht-page-content .wpcf7-form-control-wrap { display: inline-block; max-width: 100%; width: 100%; margin-top: 6px; }
.bht-page-content .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=image]),
.bht-page-content .wpcf7 select,
.bht-page-content .wpcf7 textarea { display: block; background: #fff; border: 1px solid #cfc7b9; border-radius: 5px; color: var(--bht-ink); padding: 12px 14px; margin: 4px 0 12px; width: 100%; max-width: 100%; min-height: 48px; }
.bht-page-content .wpcf7 textarea { min-height: 135px; }
.bht-page-content .wpcf7 input[type=submit] { background: var(--bht-pine); border: 1px solid var(--bht-pine); color: #fff; border-radius: 4px; padding: 13px 30px; min-height: 49px; font-weight: 600; cursor: pointer; }
.bht-page-content .wpcf7 input[type=submit]:hover { background: #375a45; }
.bht-page-content .wpcf7 input[type=checkbox], .bht-page-content .wpcf7 input[type=radio] { width: auto; min-height: 0; margin: 0 6px 0 0; }
.bht-page-content .wpcf7 .wpcf7-list-item { margin: 5px 12px 5px 0; }
.bht-page-content .wpcf7-response-output { padding: 12px 18px !important; border-radius: 4px; }
/* Footer */
.bht-site-footer { background: #172a21; color: #deded4; }
.bht-footer-inner { width: min(100% - 64px, 1240px); margin: auto; padding: 54px 0 45px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.bht-footer-mark { font-family: var(--bht-serif); color: #fff5e4; font-size: 30px; letter-spacing: .095em; }
.bht-footer-brand p { font-size: 13px; color: #b4c1b5; margin: 5px 0 0; }
.bht-footer-links { display: flex; flex-wrap: wrap; gap: 25px; }
.bht-footer-links a { font-size: 14px; color: #ecede5; text-decoration: none; }
.bht-footer-links a:hover { color: #dbc291; }
.bht-footer-bottom { padding: 18px 20px; text-align: center; border-top: 1px solid #2b4435; color: #b5c1b6; font-size: 12px; }
/* Standard core block styles */
.wp-block-quote { border-left: 3px solid var(--bht-gold); padding-left: 22px; font-family: var(--bht-serif); font-size: 1.45rem; }
.wp-block-separator { border: none; border-top: 1px solid var(--bht-border); }
.aligncenter { text-align: center; }
/* Responsive */
@media (max-width: 1100px) {
    .bht-header-inner { width: min(100% - 40px, 1310px); }
    .bht-primary-nav { gap: 20px; }
    .bht-nav-list { gap: 14px; }
    .bht-nav-list a { font-size: 13px; }
    .bht-header-cta { padding: 11px 15px; }
    .bht-brand-title { font-size: 23px; }
    .bht-highlights-grid > .wp-block-column { padding-inline: 14px; }
    .bht-card-grid { gap: 16px; }
    .bht-photo-card img { height: 205px; }
    .bht-photo-card h3 { margin-inline: 19px; }
    .bht-photo-card p { padding-inline: 19px; }
}
@media (max-width: 1100px) {
    .bht-header-inner { min-height: 82px; width: min(100% - 32px, 1310px); }
    .bht-logo-mountains { width: 77px; height: 22px; }
    .bht-brand-title { font-size: 23px; }
    .bht-brand-subtitle { font-size: 7px; }
    .bht-nav-toggle { display: flex; }
    .bht-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 18px 24px 25px; background: #fbf8f1; border-bottom: 1px solid var(--bht-border); box-shadow: 0 16px 24px #00000015; gap: 14px; }
    .bht-primary-nav.is-open { display: flex; }
    .bht-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .bht-nav-list a { padding: 9px 0; font-size: 16px; }
    .bht-nav-list .sub-menu { position: static; display: block; border: none; box-shadow: none; padding: 0 15px; min-width: 0; }
    .bht-primary-nav .bht-header-cta { align-self: flex-start; }
    .bht-hero .wp-block-cover__inner-container { width: min(100% - 54px, 1280px); }
    .bht-hero { min-height: 560px !important; }
    .bht-highlights-grid { flex-wrap: wrap !important; }
    .bht-highlights-grid > .wp-block-column { flex: 1 1 48% !important; border: none !important; padding: 16px 22px !important; }
    .bht-highlights-grid > .wp-block-column:nth-child(2n+1) { border-right: 1px solid #d9d1c2 !important; }
    .bht-card-grid { gap: 14px; }
    .bht-photo-card img { height: 170px; }
    .bht-photo-card h3 { font-size: 1.7rem; }
    .bht-photo-card p { font-size: 14px; }
    .bht-landscape-copy { padding: 54px 35px; }
    .bht-landscape-image img { min-height: 400px; }
}
@media (max-width: 700px) {
    .bht-hero { min-height: 660px !important; align-items: flex-end; }
    .bht-hero .wp-block-cover__image-background { object-position: 56% center; }
    .bht-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(9,24,14,.93) 0%, rgba(9,24,14,.75) 35%, rgba(9,24,14,.19) 85%, rgba(9,24,14,.04) 100%) !important; }
    .bht-hero .wp-block-cover__inner-container { width: calc(100% - 42px); margin: 0 auto; padding-bottom: 52px; }
    .bht-hero .bht-hero-title { font-size: clamp(2.8rem, 9.5vw, 4.8rem); }
    .bht-hero .bht-hero-description { max-width: 440px; font-size: 16px; line-height: 1.6; }
    .bht-eyebrow { font-size: 11px; }
    .bht-highlights { padding: 15px 10px; }
    .bht-highlights-grid > .wp-block-column { padding: 15px 12px !important; }
    .bht-highlights-grid h3 { font-size: 16px; }
    .bht-highlights-grid p { font-size: 12px; }
    .bht-content-section { padding: 72px 20px 80px; }
    .bht-section-title { font-size: 2.65rem; }
    .bht-section-intro { font-size: 16px; margin-bottom: 34px; }
    .bht-card-grid { flex-direction: column !important; gap: 23px; margin-top: 34px !important; }
    .bht-card-grid > .wp-block-column { flex-basis: auto !important; width: 100%; }
    .bht-photo-card img { height: clamp(210px, 57vw, 350px); }
    .bht-photo-card h3 { font-size: 2rem; margin-top: 22px; }
    .bht-photo-card p { font-size: 15px; }
    .bht-landscape-grid { flex-direction: column !important; }
    .bht-landscape-grid > .wp-block-column { flex-basis: auto !important; }
    .bht-landscape-image img { min-height: 290px; max-height: 385px; }
    .bht-landscape-copy { padding: 62px 24px 76px; }
    .bht-cta-section { padding: 76px 22px 84px; }
    .bht-page-hero { padding: 62px 20px 65px; }
    .bht-page-content { padding: 44px 0 75px; width: calc(100% - 36px); }
    .bht-footer-inner { width: calc(100% - 40px); padding: 44px 0; flex-direction: column; align-items: flex-start; gap: 21px; }
    .bht-footer-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Bergheimat: additional booking action, stable image boxes and legacy content. */
.bht-hero { background: var(--bht-pine-dark); }
.bht-hero .bht-hero-title { font-size: clamp(3.1rem, 5.5vw, 5.9rem); }
.bht-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.bht-button-outline .wp-block-button__link,
.wp-block-button.bht-button-outline .wp-block-button__link {
    background: transparent; border-color: #fff9ed; color: #fff9ed;
}
.bht-button-outline .wp-block-button__link:hover { background: #fff9ed; color: var(--bht-pine-dark); }
.bht-photo-card figure { aspect-ratio: 4 / 3; }
.bht-photo-card img { height: 100%; width: 100%; object-fit: cover; }
.bht-page-content iframe, .bht-page-content embed, .bht-page-content object { max-width: 100%; }
.bht-footer-contact { color: #deded4; font-size: 13px; text-decoration: none; }
.bht-footer-contact:hover { color: #fff; }
.bht-footer-links ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; }
.bht-footer-mark { font-size: clamp(25px, 3vw, 30px); }
@media (max-width: 700px) {
    .bht-hero .bht-hero-title { font-size: clamp(2.7rem, 10.5vw, 4.7rem); }
    .bht-hero .wp-block-cover__image-background { object-position: 62% center; }
    .bht-photo-card img { height: 100%; }
    .bht-brand-subtitle { letter-spacing: .2em; }
}

/* 1.0.2: contain floated third-party content without clipping calendars/popovers.
 * A flow root includes in-flow and floated content in the page height.
 * This does not resize cross-origin iframes or absolutely positioned widgets.
 */
.bht-page-content { display: flow-root; }
.bht-site-footer { clear: both; }
