/* ==========================================================================
   Landhotel Kaserer – Seitentitel im Headerbild der Unterseiten
   Variante A (.kh-a): Text unten links auf dem Bild, wie Vorlage 2027
   Variante B (.kh-b): Milchglas-Karte mittig auf dem Bild
   ========================================================================== */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/playfair-display-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-600-italic.woff2") format("woff2"); }

.kh-hero-text {
  position: absolute; inset: 0; z-index: 4;
  display: flex; pointer-events: none;
  font-family: Dosis, sans-serif;
}
.kh-hero-text .kh-in { pointer-events: auto; }
.kh-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.kh-eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.kh-title { font-family: "Playfair Display", Georgia, serif !important; font-weight: 700; font-size: clamp(36px, 5.4vw, 68px) !important; line-height: 1.05 !important; letter-spacing: -.01em; margin: 0 0 14px !important; }
.kh-title em { font-style: italic; font-weight: 600; }
.kh-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 640px; margin: 0; }

/* ---------- Variante A: wie Vorlage ---------- */
.kh-a {
  align-items: flex-end;
  background:
    linear-gradient(to top, rgba(31, 24, 88, .78) 0%, rgba(31, 24, 88, .35) 42%, rgba(31, 24, 88, 0) 72%),
    linear-gradient(to right, rgba(31, 24, 88, .45) 0%, rgba(31, 24, 88, 0) 60%);
}
.kh-a .kh-in { width: min(1200px, 100% - 32px); margin: 0 auto; padding-bottom: clamp(78px, 10vw, 140px); color: #fff; }
.kh-a .kh-eyebrow { color: #ffed00; }
.kh-a .kh-title { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.kh-a .kh-title em { color: #ffed00; }
.kh-a .kh-lead { color: #f3f1ff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }

/* ---------- Variante B: Milchglas-Karte ---------- */
.kh-b { align-items: center; justify-content: center; padding: 0 16px clamp(60px, 8vw, 110px); }
.kh-b .kh-in {
  position: relative; text-align: center; max-width: 720px;
  background: rgba(255, 255, 255, .80);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 30px;
  padding: 34px 44px 30px;
  box-shadow: 0 30px 60px -20px rgba(31, 24, 88, .45);
  color: #312783;
}
.kh-b .kh-in::before { content: ""; position: absolute; left: 50%; top: -30px; width: 58px; height: 50px; transform: translateX(-50%) rotate(-8deg); background: url("wp-content/uploads/2025/03/schmetterling-vector.svg") center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15)); }
.kh-b .kh-eyebrow { color: #e5a22a; justify-content: center; }
.kh-b .kh-eyebrow::after { content: ""; width: 30px; height: 2px; background: currentColor; }
.kh-b .kh-title { color: #312783 !important; }
.kh-b .kh-title em { color: #e5a22a; }
.kh-b .kh-lead { color: #4a4280; margin: 0 auto; }

/* alte Überschrift unter dem Bild ausblenden, wenn der Titel im Bild steht */
.kh-hide { display: none !important; }

/* ---------- Eigenes Headerbild für Seiten ohne Slider ---------- */
.kh-own { position: relative; height: 500px; overflow: hidden; background: #3a3470 center / cover no-repeat; }
.kh-own-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 190px; z-index: 5; pointer-events: none;
  background: url("wp-content/uploads/2025/03/welle-header-bottom_optimized.png") 50% 100% / 100% auto no-repeat; }
.kh-own-fly { position: absolute; right: 8%; bottom: 18px; width: 200px; height: auto; z-index: 6; pointer-events: none; }
.kh-credit { position: absolute; top: 104px; left: 16px; z-index: 6; background: rgba(0, 0, 0, .5); color: #fff; font: 500 12px/1.3 Dosis, sans-serif; padding: 4px 9px; border-radius: 6px; pointer-events: none; }
/* Abstand des Inhalts nach dem neuen Headerbild */
.kh-after-own { margin-top: 40px !important; }
@media (max-width: 1024px) { .kh-own-wave { background-size: 1400px auto; } }

@media (max-width: 767px) {
  /* Headerbild am Handy höher, damit der Text Platz hat */
  .e-con:has(> .kh-hero-text) .elementor-slides-wrapper,
  .e-con:has(> .kh-hero-text) .swiper-slide { height: 420px !important; }
  /* Schmetterling kleiner und an den Rand */
  .e-con:has(> .kh-hero-text) .elementor-widget-image { width: 70px !important; max-width: 70px !important; right: 6px !important; left: auto !important; bottom: 10px !important; top: auto !important; }
  .e-con:has(> .kh-hero-text) .elementor-widget-image img { width: 70px !important; height: auto !important; }
  .kh-own { height: 420px; }
  .kh-own-wave { background-size: 1000px auto; }
  .kh-own-fly { width: 70px; right: 6px; bottom: 10px; }
  .kh-credit { top: 56px; left: 8px; font-size: 10px; }
  .kh-after-own { margin-top: 24px !important; }
  .kh-eyebrow { font-size: 12px; letter-spacing: .14em; margin-bottom: 8px; }
  .kh-a .kh-in { padding-bottom: 84px; }
  .kh-b { padding-bottom: 70px; }
  .kh-b .kh-in { padding: 24px 20px 20px; border-radius: 22px; }
  .kh-b .kh-in::before { width: 44px; height: 38px; top: -24px; }
  .kh-lead { font-size: 16px; }
}
