/*
Theme Name: Four Keys Apartments
Theme URI: https://4keys.ch
Author: 4 Keys Apartments
Description: Schlankes, massgeschneidertes Theme fuer Ferienapartments mit Smoobu-Direktbuchung.
Version: 1.0.0
Text Domain: fourkeys
*/

:root {
  --fk-ink: #123a5a;
  --fk-ink-dark: #0b2940;
  --fk-ivory: #f8f5ee;
  --fk-sand: #e9e0d2;
  --fk-sage: #7f8b69;
  --fk-text: #26343c;
  --fk-white: #fff;
  --fk-border: rgba(18, 58, 90, .14);
  --fk-shadow: 0 18px 50px rgba(19, 41, 55, .10);
  --fk-serif: Iowan Old Style, Baskerville, Georgia, serif;
  --fk-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fk-text); background: var(--fk-ivory); font: 17px/1.65 var(--fk-sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.fk-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: relative; z-index: 20; background: rgba(248,245,238,.96); border-bottom: 1px solid var(--fk-border); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--fk-ink); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--fk-sage); border-radius: 50%; font: 700 19px/1 var(--fk-serif); }
.brand-name { font: 600 clamp(21px,2vw,29px)/1.1 var(--fk-serif); letter-spacing: .01em; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-size: 15px; font-weight: 650; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--fk-ink); font-weight: 700; }

.button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 1px solid var(--fk-ink); border-radius: 3px; background: var(--fk-ink); color: white; text-decoration: none; font-weight: 750; transition: .2s ease; }
.button:hover, .wp-block-button__link:hover { background: var(--fk-ink-dark); transform: translateY(-1px); }
.button-light { background: var(--fk-white); color: var(--fk-ink); }
.button-ghost { background: transparent; color: var(--fk-ink); }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; background: linear-gradient(90deg, rgba(248,245,238,.98) 0 36%, rgba(248,245,238,.58) 55%, rgba(11,41,64,.10)), var(--hero-image, linear-gradient(135deg,#e7ddcf,#a9b2a3)); background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 1; max-width: 620px; padding: 90px 0; }
.eyebrow { color: var(--fk-sage); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1,h2,h3 { color: var(--fk-ink); font-family: var(--fk-serif); font-weight: 500; line-height: 1.08; }
h1 { margin: 16px 0 22px; font-size: clamp(54px,7vw,92px); }
h2 { margin: 0 0 18px; font-size: clamp(38px,5vw,58px); }
h3 { font-size: 28px; }
.hero p { max-width: 520px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.trust-bar { background: var(--fk-white); border-block: 1px solid var(--fk-border); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.trust-item { padding: 28px 32px; text-align: center; font-size: 15px; font-weight: 700; }
.trust-item + .trust-item { border-left: 1px solid var(--fk-border); }

.section { padding: 96px 0; }
.section-white { background: var(--fk-white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading p { max-width: 520px; margin: 0; }
.apartment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.apartment-card { overflow: hidden; background: var(--fk-white); border: 1px solid var(--fk-border); box-shadow: var(--fk-shadow); }
.apartment-card-media { aspect-ratio: 4/3; background: linear-gradient(135deg,var(--fk-sand),#bdc5b4); overflow: hidden; }
.apartment-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.apartment-card:hover img { transform: scale(1.025); }
.apartment-card-body { padding: 26px; }
.apartment-card h3 { margin: 6px 0 10px; }
.apartment-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #59686f; font-size: 14px; }
.text-link { color: var(--fk-ink); font-weight: 800; text-underline-offset: 5px; }

.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; }
.story-image { background: linear-gradient(145deg,#b9c5bf,#7292a0); background-size: cover; background-position: center; }
.story-copy { display: grid; align-content: center; padding: clamp(48px,7vw,100px); background: var(--fk-ivory); }
.story-copy p { max-width: 540px; }

.booking-panel { padding: 72px 0; color: white; background: var(--fk-ink); }
.booking-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.booking-panel h2 { color: white; margin-bottom: 8px; }
.booking-panel p { margin: 0; color: rgba(255,255,255,.78); }
.content-main { min-height: 50vh; padding: 72px 0 100px; }
.content-main > * { max-width: 820px; }
.site-footer { padding: 64px 0 30px; color: rgba(255,255,255,.78); background: var(--fk-ink-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: white; margin-bottom: 20px; }
.site-footer h3 { color: white; font: 700 14px/1.2 var(--fk-sans); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { text-decoration: none; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .primary-nav ul { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 24px; background: var(--fk-ivory); border-bottom: 1px solid var(--fk-border); flex-direction: column; }
  .primary-nav.is-open ul { display: flex; }
  .primary-nav > .button { display: none; }
  .hero { min-height: 580px; background-position: 64% center; }
  .hero-content { max-width: 520px; }
  .apartment-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-image { min-height: 390px; }
  .booking-inner, .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .fk-wrap { width: min(100% - 28px,1180px); }
  .brand-name { font-size: 20px; }
  .hero { min-height: 600px; background-position: 70% center; }
  .hero::before { content: ""; position: absolute; inset: 82px 0 0; background: rgba(248,245,238,.72); }
  .hero-content { position: relative; padding: 70px 0; }
  h1 { font-size: 52px; }
  .trust-grid, .apartment-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--fk-border); }
  .section { padding: 70px 0; }
}
