/* ============================================================
   Zanzibar Life — Homepage v3.0 "Editorial Travel Magazine"
   Scope: body.home only. Loaded via functions.php on front page.
   Palette: Sand #F5EFE6 · Teal #0E7490 · Amber #D97706 · Navy #0F172A
   ============================================================ */
body.home {
  --zlh-sand: #F5EFE6;
  --zlh-teal: #0E7490;
  --zlh-amber: #D97706;
  --zlh-amber-deep: #B45309;   /* Buttons: weißer Text erreicht AA */
  --zlh-amber-text: #92400E;   /* Kicker auf hellen Flächen: AA */
  --zlh-amber-light: #fcd9a8;  /* Kicker auf dunklen Flächen */
  --zlh-navy: #0F172A;
  --zlh-white: #ffffff;
  --zlh-ivory: #FBF8F3;        /* v3.5.1: warmer Grundton statt kaltem Weiß (= zlp-Seiten) */
  --zlh-lagoon: #D9ECEC;       /* v3.5.2: helles, warmes Aqua als Akzentfläche (kräftiger auf User-Wunsch) */
  --zlh-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --zlh-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  background: var(--zlh-ivory);
}
/* Arabisch: Fraunces hat keine arabischen Glyphen — sauberer Fallback */
html[lang^="ar"] body.home { --zlh-serif: "Noto Naskh Arabic", Georgia, serif; }
/* Bidi: Marken-Headline ist LTR-Text — Punkt sonst falsch positioniert */
html[lang^="ar"] body.home .zlh-hero h1 { direction: ltr; unicode-bidi: isolate; }

/* ---------- Transparenter Header über dem Hero ---------- */
body.home .wp-site-blocks > header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent;
}
body.home .wp-site-blocks > header a,
body.home .wp-site-blocks > header .wp-block-site-title a,
body.home .wp-site-blocks > header button {
  color: var(--zlh-white);
}
/* WP-Core setzt auf Nav-Links color:inherit mit (0,3,0) — Weiß über den Container liefern */
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container:not(.is-menu-open) {
  color: var(--zlh-white);
}
/* … und direkt auf Link-Ebene, weil Global-Styles eine direkte Farbe setzen */
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content,
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item a {
  color: var(--zlh-white);
}
/* Masthead als Serif-Nameplate */
body.home .wp-site-blocks > header .wp-block-site-title,
body.home .wp-site-blocks > header .wp-block-site-title a {
  font-family: var(--zlh-serif); font-weight: 600; letter-spacing: -0.01em;
}
body.home .wp-site-blocks > header a,
body.home .wp-site-blocks > header .wp-block-site-title a { text-shadow: 0 1px 10px rgba(15,23,42,.45); }
body.home .wp-site-blocks > header svg { fill: var(--zlh-white); }
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container-open {
  background: rgba(15,23,42,.45); border-radius: 10px; padding: 10px; color: var(--zlh-white);
}
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container-open svg { fill: var(--zlh-white); }
/* style.css zeichnet die Burger-Balken per ::before in Navy — auf Weiß umfärben */
body.home .wp-site-blocks > header .wp-block-navigation__responsive-container-open::before {
  background: var(--zlh-white);
  box-shadow: 0 7px 0 var(--zlh-white), 0 14px 0 var(--zlh-white);
}
body.home .wp-site-blocks > header svg.wc-block-customer-account__account-icon,
body.home .wp-site-blocks > header svg.wc-block-customer-account__account-icon * { color: var(--zlh-white) !important; stroke: var(--zlh-white); }
body.home .wp-site-blocks > header svg.wc-block-customer-account__account-icon path[fill] { fill: var(--zlh-white); }
/* Mobile-Navigation geöffnet: TT4-Standard (weißes Panel, dunkle Links) — Links dort NICHT weiß färben */
body.home .wp-block-navigation__responsive-container.is-menu-open a { color: inherit; text-shadow: none; }

/* ---------- Hero ---------- */
body.home .zlh-hero.wp-block-cover {
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: flex-end;
  padding: 0 0 9vh 0; margin-top: 0;
}
body.home .zlh-hero .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.08) 38%, rgba(15,23,42,.62) 100%) !important;
  opacity: 1 !important;
}
body.home .zlh-hero .wp-block-cover__image-background {
  animation: zlh-kenburns 36s ease-in-out infinite alternate;
}
@keyframes zlh-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
/* Hero-Rotation v2.1: per JS eingefügte Slides, Crossfade über dem Basisbild, unter dem Scrim */
body.home .zlh-hero .zlh-hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; z-index: 0;
  animation: zlh-kenburns 36s ease-in-out infinite alternate;
}
body.home .zlh-hero .zlh-hero-slide.zlh-slide-active { opacity: 1; }
body.home .zlh-hero .wp-block-cover__inner-container {
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
}
body.home .zlh-hero-kicker {
  font-family: var(--zlh-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--zlh-amber-light);
  margin: 0 0 14px;
}
body.home .zlh-hero h1 {
  font-family: var(--zlh-serif); font-weight: 600;
  font-size: clamp(2.9rem, 7.2vw, 5.4rem); line-height: 1.04;
  letter-spacing: -0.015em; color: var(--zlh-white); margin: 0 0 18px;
  max-width: 14ch; text-wrap: balance;
  background: none; -webkit-text-fill-color: currentColor; /* Gradient-Text aus style.css neutralisieren */
}
body.home .zlh-hero p:not(.zlh-hero-kicker) {
  font-family: var(--zlh-sans); font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6; color: rgba(255,255,255,.92); max-width: 52ch; margin: 0 0 30px;
}
body.home .zlh-hero .wp-block-buttons { gap: 14px; }

/* ---------- Buttons (Homepage-weit) ---------- */
body.home .zlh-btn-primary .wp-block-button__link {
  background: var(--zlh-amber-deep); color: #fff; border: none; border-radius: 999px;
  padding: 15px 34px; font-family: var(--zlh-sans); font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 22px rgba(180,83,9,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.home .zlh-btn-primary .wp-block-button__link:hover {
  background: var(--zlh-amber-text); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(180,83,9,.42);
}
body.home .zlh-btn-ghost .wp-block-button__link {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 999px; padding: 14px 32px; font-family: var(--zlh-sans); font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
body.home .zlh-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.14); border-color: #fff; }
body.home a:focus-visible, body.home button:focus-visible {
  outline: 3px solid var(--zlh-teal); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Sektions-Grundlagen ---------- */
body.home main .zlh-section { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); }
body.home .zlh-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; }
body.home .zlh-kicker {
  font-family: var(--zlh-sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--zlh-amber-text); margin: 0 0 12px;
}
/* Keine Layout-Gaps zwischen den alignfull-Sektionen (constrained layout) */
body.home .wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
body.home main h2,
body.home main h2.wp-block-heading,
body.home main .wp-block-group > h2.wp-block-heading {
  font-family: var(--zlh-serif); font-weight: 600; color: var(--zlh-navy);
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em;
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor;
  margin: 0 0 16px; text-wrap: balance;
}

/* ---------- 2. Editorial-Intro ---------- */
body.home .zlh-intro { text-align: center; }
body.home .zlh-intro .zlh-intro-line {
  font-family: var(--zlh-serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.25; color: var(--zlh-navy);
  max-width: 26ch; margin: 0 auto 22px; text-wrap: balance;
}
body.home .zlh-intro p:not(.zlh-intro-line) {
  font-size: 1.08rem; line-height: 1.75; color: #475569; max-width: 62ch; margin: 0 auto;
}

/* ---------- 3. Experiences-Grid (asymmetrisch) ---------- */
body.home .zlh-grid-cards { display: grid; gap: 22px; grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-areas: "tours hotels hotels" "tours transport shopping"; }
body.home .zlh-card-tours { grid-area: tours; }
body.home .zlh-card-hotels { grid-area: hotels; }
body.home .zlh-card-transport { grid-area: transport; }
body.home .zlh-card-shopping { grid-area: shopping; }
body.home .zlh-card.wp-block-cover {
  border-radius: 18px; overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.home .zlh-card-tours.wp-block-cover { min-height: 702px; }
body.home .zlh-card.wp-block-cover .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(15,23,42,0) 38%, rgba(15,23,42,.78) 100%) !important; opacity: 1 !important;
}
body.home .zlh-card .wp-block-cover__image-background { transition: transform .5s cubic-bezier(.2,.6,.2,1); }
body.home .zlh-card:hover .wp-block-cover__image-background { transform: scale(1.05); }
body.home .zlh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.22); }
body.home .zlh-card .zlh-kicker { color: var(--zlh-amber-light); margin-bottom: 6px; }
body.home .zlh-card h3 {
  font-family: var(--zlh-serif); font-weight: 600; color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin: 0 0 8px;
}
body.home .zlh-card p { color: rgba(255,255,255,.85); font-size: .98rem; line-height: 1.55; margin: 0 0 4px; max-width: 40ch; }
body.home .zlh-card .zlh-card-link {
  color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; border-bottom: 1.5px solid var(--zlh-amber);
}
/* Karte komplett klickbar */
body.home .zlh-card { position: relative; }
body.home .zlh-card .zlh-card-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- 4. Signature Experiences ---------- */
body.home .zlh-sig { background: var(--zlh-sand); }
body.home .zlh-sig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
body.home .zlh-sig-item {
  background: #fff; border-radius: 16px; padding: 26px;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
body.home .zlh-sig-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.13); }
body.home .zlh-sig-item h3 { font-family: var(--zlh-serif); font-size: 1.35rem; font-weight: 600; color: var(--zlh-navy); margin: 0 0 6px; }
body.home .zlh-sig-item .zlh-sig-meta { font-size: .85rem; color: #64748b; margin: 0 0 10px; }
body.home .zlh-sig-item .zlh-sig-price { font-family: var(--zlh-sans); font-weight: 800; color: var(--zlh-teal); font-size: 1.05rem; margin: 0; }
body.home .zlh-sig-all { margin-top: 30px; }
body.home .zlh-sig-all a { color: var(--zlh-teal); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* ---------- 5. From the Island (Community) ---------- */
body.home .zlh-island { position: relative; overflow: hidden; background: var(--zlh-lagoon); }
body.home .zlh-island .zlh-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
body.home .zlh-island figure { margin: 0; border-radius: 18px; overflow: hidden; }
body.home .zlh-island figure img { display: block; width: 100%; height: auto; }
body.home .zlh-island-word,
body.home .zlh-island p.zlh-island-word {
  position: absolute; top: 8px; right: -12px; z-index: 0; pointer-events: none;
  font-family: var(--zlh-serif); font-weight: 700; font-size: clamp(5rem, 13vw, 11rem);
  color: var(--zlh-sand); line-height: 1; user-select: none;
}
body.home .zlh-island blockquote {
  border-left: 3px solid var(--zlh-amber); margin: 26px 0 0; padding: 4px 0 4px 20px;
  font-family: var(--zlh-serif); font-size: 1.25rem; font-weight: 400; line-height: 1.45; color: var(--zlh-navy); font-style: italic;
}
body.home .zlh-island blockquote cite { display: block; margin-top: 8px; font-family: var(--zlh-sans); font-style: normal; font-size: .85rem; color: #64748b; }
body.home .zlh-island p:not(.zlh-island-word) { color: #475569; line-height: 1.75; }
body.home .zlh-island .wp-block-buttons { margin-top: 26px; }
body.home .zlh-btn-teal .wp-block-button__link {
  background: var(--zlh-teal); color: #fff; border-radius: 999px; padding: 14px 32px;
  font-weight: 700; transition: background .2s ease, transform .2s ease;
}
body.home .zlh-btn-teal .wp-block-button__link:hover { background: #155e75; transform: translateY(-2px); }

/* ---------- 6. Plan Your Trip ---------- */
body.home .zlh-plan { background: var(--zlh-navy); }
body.home .zlh-plan .zlh-kicker { color: var(--zlh-amber-light); }
body.home .zlh-plan h2, body.home .zlh-plan .wp-block-group > h2.wp-block-heading { color: #fff; -webkit-text-fill-color: #fff; }
body.home .zlh-plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
body.home .zlh-plan-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 30px; }
body.home .zlh-plan-card svg { width: 38px; height: 38px; stroke: var(--zlh-amber); margin-bottom: 14px; }
body.home .zlh-plan-card h3 { font-family: var(--zlh-serif); color: #fff; font-size: 1.4rem; font-weight: 600; margin: 0 0 10px; }
body.home .zlh-plan-card p { color: rgba(255,255,255,.78); line-height: 1.65; margin: 0; }
body.home .zlh-plan .wp-block-buttons { margin-top: 34px; }

/* ---------- 7. CTA-Band ---------- */
body.home .zlh-cta.wp-block-cover { min-height: 460px; display: flex; align-items: center; }
body.home .zlh-cta .wp-block-cover__inner-container { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 20px; }
body.home .zlh-cta .wp-block-cover__background { background: rgba(15,23,42,.55) !important; opacity: 1 !important; }
body.home .zlh-cta h2, body.home main .zlh-cta h2.wp-block-heading { color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
body.home .zlh-cta p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Reveal-Animationen (kurz und knackig, kein Float) ---------- */
body.home .zlh-reveal { opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.6,.2,1); }
body.home .zlh-reveal.zlh-in { opacity: 1; transform: none; }
body.home .zlh-reveal:nth-child(2) { transition-delay: .05s; }
body.home .zlh-reveal:nth-child(3) { transition-delay: .10s; }
body.home .zlh-reveal:nth-child(4) { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  body.home .zlh-hero .wp-block-cover__image-background { animation: none; }
  body.home .zlh-reveal { opacity: 1; transform: none; transition: none; }
  body.home .zlh-card .wp-block-cover__image-background,
  body.home .zlh-card, body.home .zlh-sig-item { transition: none; }
  body.home .zlh-card:hover .wp-block-cover__image-background { transform: none; }
  body.home .zlh-card:hover, body.home .zlh-sig-item:hover,
  body.home .zlh-btn-primary .wp-block-button__link:hover,
  body.home .zlh-btn-teal .wp-block-button__link:hover { transform: none; }
}

/* ---------- Footer-Altlasten auf der Homepage neutralisieren ---------- */
/* Gradient-Text-Regel aus style.css macht Footer-H2 navy-auf-navy unsichtbar */
body.home footer h2.wp-block-heading,
body.home footer .wp-block-group > h2.wp-block-heading {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: #fff; color: #fff;
  font-family: var(--zlh-sans);
}
/* 4-Farben-Gradient-Linie über dem Footer → eine ruhige Amber-Linie */
body.home footer::before { background: var(--zlh-amber) !important; }

/* ---------- TranslatePress an die Design-Sprache anpassen ---------- */
/* Floating-Switcher doppelt den Header-Switcher auf der Homepage → ausblenden */
body.home .trp-floating-switcher { display: none !important; }
body.home .trp-language-switcher { --text: #0F172A !important; --border-color: rgba(15,23,42,.14) !important; }

/* Touch-Target "See all experiences" auf >= 44px heben */
body.home .zlh-sig-all a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---------- Mobile (designed, not shrunk) ---------- */
@media (max-width: 920px) {
  body.home .zlh-grid-cards { grid-template-columns: 1fr 1fr; grid-template-areas: "tours tours" "hotels transport" "shopping shopping"; }
  body.home .zlh-card-tours.wp-block-cover { min-height: 440px; }
  body.home .zlh-island .zlh-wrap { grid-template-columns: 1fr; }
  body.home .zlh-plan-cols { grid-template-columns: 1fr; }
  /* Einspaltiges Layout: Deko-Wort kollidiert mit dem Inhalt */
  body.home .zlh-island-word, body.home .zlh-island p.zlh-island-word { display: none; }
}
@media (max-width: 640px) {
  body.home .zlh-hero.wp-block-cover { min-height: 78vh; min-height: 78svh; padding-bottom: 12vh; }
  /* Sonnenuntergang + Dhow im Hochformat sichtbar halten (gilt auch für Rotation-Slides) */
  body.home .zlh-hero .wp-block-cover__image-background,
  body.home .zlh-hero .zlh-hero-slide { object-position: 38% 28%; }
  body.home .zlh-hero h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  body.home .zlh-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  body.home .zlh-hero .wp-block-button__link { width: 100%; text-align: center; }
  body.home .zlh-grid-cards { grid-template-columns: 1fr; grid-template-areas: "tours" "hotels" "transport" "shopping"; }
  body.home .zlh-card.wp-block-cover { min-height: 300px; }
  body.home .zlh-card-tours.wp-block-cover { min-height: 420px; }
  /* Signature: horizontaler Scroll-Snap statt Stapel; Snap bündig zur Inhaltskante */
  body.home .zlh-sig-row { --zlh-pad: clamp(20px, 4vw, 48px); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; margin-inline: calc(-1 * var(--zlh-pad)); padding-inline: var(--zlh-pad); scroll-padding-inline: var(--zlh-pad); }
  body.home .zlh-sig-item { flex: 0 0 78%; scroll-snap-align: start; }
  /* v3.5 Wisch-Hinweis: Inhalt blendet an der Scrollkante leicht aus */
  body.home .zlh-sig-row { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), rgba(0,0,0,.35) 100%); mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), rgba(0,0,0,.35) 100%); }
  html[dir="rtl"] body.home .zlh-sig-row { -webkit-mask-image: linear-gradient(to left, #000 0%, #000 calc(100% - 28px), rgba(0,0,0,.35) 100%); mask-image: linear-gradient(to left, #000 0%, #000 calc(100% - 28px), rgba(0,0,0,.35) 100%); }
  body.home .zlh-cta.wp-block-cover { min-height: 380px; }
}
