/* CF Homes 5.0.220 – Design 2027
 * Eine gemeinsame Gestaltungsebene über allen Frontend-Modulen.
 * Greift nur mit der Body-Klasse .cfh-d27 (Schalter im Backend), alles andere bleibt unverändert.
 */
body.cfh-d27{
  --d27-navy:#0b2f5e;--d27-ink:#16324c;--d27-text:#4b6478;--d27-muted:#7f95a6;
  --d27-teal:#0898b0;--d27-teal-d:#06788e;--d27-sea:#eaf6f9;--d27-sea-2:#d6eef4;--d27-sand:#fbf8f3;
  --d27-line:rgba(11,47,94,.09);--d27-line-2:rgba(11,47,94,.14);
  --d27-r:18px;--d27-r-sm:12px;
  --d27-sh-1:0 1px 2px rgba(11,47,94,.05),0 8px 22px -10px rgba(11,47,94,.16);
  --d27-sh-2:0 2px 6px rgba(11,47,94,.06),0 22px 44px -16px rgba(11,47,94,.28);
  --d27-ease:cubic-bezier(.2,.7,.2,1);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}

/* ---------- 1. Theme-Buttons nicht mehr in Karten durchschlagen lassen ----------
 * Die Karten sind <button>-Elemente; das Theme setzt auf Buttons GROSSBUCHSTABEN + Sperrung.
 */
body.cfh-d27 .cf-home-event-card-open,
body.cfh-d27 .cfv-card-open,
body.cfh-d27 .cf-act-card-open,
body.cfh-d27 .cfv-market-open{
  text-transform:none!important;letter-spacing:normal!important;font-family:inherit!important;
}

/* ---------- 2. Abschnitts-Köpfe ---------- */
body.cfh-d27 .cf-home-section{padding-top:52px!important;padding-bottom:52px!important}
body.cfh-d27 .cf-home-section-heading,
body.cfh-d27 .cfv-market-section .cfv-market-heading{margin-bottom:26px!important;align-items:flex-end!important}
body.cfh-d27 .cf-home-section-kicker,
body.cfh-d27 .cfv-market-section .cfv-market-heading-copy .cfv-market-kicker,
body.cfh-d27 .cfh-heute__eyebrow{
  color:var(--d27-teal)!important;font-size:.7rem!important;font-weight:700!important;letter-spacing:.18em!important;margin-bottom:8px!important;
}
body.cfh-d27 .cf-home-section h2,
body.cfh-d27 .cfv-market-section .cfv-market-heading-copy h2,
body.cfh-d27 .cfh-heute__heading h2{
  color:var(--d27-navy)!important;font-weight:700!important;letter-spacing:-.028em!important;line-height:1.08!important;
  font-size:clamp(1.55rem,1.1rem + 1.4vw,2.25rem)!important;
}
body.cfh-d27 .cf-home-section-heading p,
body.cfh-d27 .cf-home-fewo-heading p,
body.cfh-d27 .cfv-market-section .cfv-market-heading-copy p{color:var(--d27-text)!important;font-size:.95rem!important;line-height:1.55!important;max-width:680px}
body.cfh-d27 .cf-home-section-icon,
body.cfh-d27 .cfv-market-section .cfv-market-heading-icon{
  width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:14px!important;
  background:linear-gradient(145deg,#f1fafc,var(--d27-sea-2))!important;color:var(--d27-teal-d)!important;
  box-shadow:inset 0 0 0 1px rgba(8,152,176,.12)!important;
}
/* „Mehr entdecken“ als ruhige Pille statt eckigem Großbuchstaben-Kasten */
body.cfh-d27 .cf-home-section-button{
  border:1px solid var(--d27-line-2)!important;border-radius:999px!important;background:#fff!important;
  color:var(--d27-navy)!important;text-transform:none!important;letter-spacing:0!important;
  font-size:.9rem!important;font-weight:600!important;padding:10px 18px 10px 20px!important;min-height:44px!important;
  box-shadow:0 1px 2px rgba(11,47,94,.06)!important;transition:background .25s var(--d27-ease),color .25s var(--d27-ease),border-color .25s,box-shadow .25s!important;
}
body.cfh-d27 .cf-home-section-button:hover,
body.cfh-d27 .cf-home-section-button:focus-visible{background:var(--d27-navy)!important;border-color:var(--d27-navy)!important;color:#fff!important;box-shadow:0 10px 24px -12px rgba(11,47,94,.55)!important}
body.cfh-d27 .cf-home-section-button.cf-home-gyg-button{background:var(--d27-teal)!important;border-color:var(--d27-teal)!important;color:#fff!important}
body.cfh-d27 .cf-home-section-button.cf-home-gyg-button:hover{background:var(--d27-teal-d)!important}

/* ---------- 3. Eine Kartenfamilie für alle Module ---------- */
body.cfh-d27 .cf-home-card,
body.cfh-d27 .cf-home-event-card,
body.cfh-d27 .cfv-card,
body.cfh-d27 .cf-act-card{
  border:1px solid var(--d27-line)!important;border-radius:var(--d27-r)!important;background:#fff!important;
  box-shadow:var(--d27-sh-1)!important;overflow:hidden;
  transition:transform .35s var(--d27-ease),box-shadow .35s var(--d27-ease),border-color .35s!important;
}
@media (hover:hover){
  body.cfh-d27 .cf-home-card:hover,
  body.cfh-d27 .cf-home-event-card:hover,
  body.cfh-d27 .cfv-card:hover,
  body.cfh-d27 .cf-act-card:hover{transform:translateY(-4px);box-shadow:var(--d27-sh-2)!important;border-color:var(--d27-line-2)!important}
  body.cfh-d27 .cf-home-card:hover .cf-home-card-image img,
  body.cfh-d27 .cf-act-card:hover .cf-act-card-media{transform:scale(1.045)}
}
body.cfh-d27 .cf-home-card-image,
body.cfh-d27 .cf-act-card-open{overflow:hidden}
body.cfh-d27 .cf-home-card-image img,
body.cfh-d27 .cf-act-card-media{transition:transform .8s var(--d27-ease)!important}

/* Bildkarten (Region, Restaurants, Ferienhäuser) */
body.cfh-d27 .cf-home-card-body{padding:14px 46px 16px 16px!important}
body.cfh-d27 .cf-home-card-body h3,
body.cfh-d27 .cf-home-fewo-card-copy h3{color:var(--d27-navy)!important;font-weight:700!important;font-size:1rem!important;letter-spacing:-.01em!important;line-height:1.25!important;margin-bottom:4px!important}
body.cfh-d27 .cf-home-card-body p,
body.cfh-d27 .cf-home-fewo-card-copy p{color:var(--d27-text)!important;font-size:.82rem!important;line-height:1.45!important}

/* Pfeil-Kreise: dezent, beim Überfahren der Karte gefüllt */
body.cfh-d27 .cf-home-card-arrow,
body.cfh-d27 .cf-home-event-more,
body.cfh-d27 .cf-act-card-arrow,
body.cfh-d27 .cf-home-fewo-arrow{
  border:0!important;background:var(--d27-sea)!important;color:var(--d27-teal-d)!important;
  box-shadow:none!important;transition:background .3s var(--d27-ease),color .3s,transform .3s var(--d27-ease)!important;
}
@media (hover:hover){
  body.cfh-d27 .cf-home-card:hover .cf-home-card-arrow,
  body.cfh-d27 .cf-home-event-card:hover .cf-home-event-more,
  body.cfh-d27 .cf-act-card:hover .cf-act-card-arrow,
  body.cfh-d27 .cf-home-fewo-card:hover .cf-home-fewo-arrow{background:var(--d27-teal)!important;color:#fff!important;transform:translateX(2px)}
}

/* Merken-Herz */
body.cfh-d27 .cfm360-external-flag{
  background:rgba(255,255,255,.92)!important;border:0!important;box-shadow:0 4px 14px -6px rgba(11,47,94,.35)!important;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}

/* ---------- 4. Veranstaltungs- und Marktkarten ---------- */
body.cfh-d27 .cf-home-event-hero,
body.cfh-d27 .cfv-card-hero{background:#fff!important}
body.cfh-d27 .cf-home-event-hero::before,body.cfh-d27 .cf-home-event-hero::after,
body.cfh-d27 .cfv-card-hero::before,body.cfh-d27 .cfv-card-hero::after{display:none!important}
body.cfh-d27 .cf-home-event-icon-shell,
body.cfh-d27 .cfv-event-icon-shell{
  border-radius:14px!important;background:linear-gradient(145deg,var(--d27-teal),var(--d27-teal-d))!important;
  box-shadow:0 8px 18px -10px rgba(6,120,142,.8)!important;
}
body.cfh-d27 .cf-home-event-category,
body.cfh-d27 .cfv-card-topline > span:first-child{
  color:var(--d27-teal-d)!important;font-size:.66rem!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase!important;
}
body.cfh-d27 .cf-home-event-title,
body.cfh-d27 .cfv-title{color:var(--d27-navy)!important;font-weight:700!important;font-size:1.02rem!important;line-height:1.25!important;letter-spacing:-.012em!important}
body.cfh-d27 .cf-home-event-description,
body.cfh-d27 .cfv-card-description,
body.cfh-d27 .cf-act-card-description{
  text-transform:none!important;letter-spacing:normal!important;color:var(--d27-text)!important;
  font-size:.85rem!important;line-height:1.5!important;font-weight:400!important;
}
body.cfh-d27 .cf-home-event-divider,
body.cfh-d27 .cfv-card-divider{background:var(--d27-line)!important;opacity:1!important}
body.cfh-d27 .cf-home-event-primary-row,
body.cfh-d27 .cf-home-event-primary-row span,
body.cfh-d27 .cfv-card-primary-row,
body.cfh-d27 .cfv-card-primary-row span{
  text-transform:none!important;letter-spacing:0!important;color:var(--d27-ink)!important;font-size:.8rem!important;font-weight:600!important;line-height:1.4!important;
}
body.cfh-d27 .cf-home-event-primary-row svg,
body.cfh-d27 .cfv-card-primary-row i{color:var(--d27-teal)!important}
body.cfh-d27 .cfv-market-day-pill{border-radius:999px!important;background:#fff4e0!important;color:#9a5b00!important;letter-spacing:.06em!important}

/* Aktionen unter den Karten auf der Veranstaltungsseite */
body.cfh-d27 .cfh-finder-actions{border-top:1px solid var(--d27-line)!important;background:#fbfdfe!important;gap:0!important}
body.cfh-d27 .cfh-finder-action{
  background:transparent!important;color:var(--d27-teal-d)!important;text-transform:none!important;letter-spacing:0!important;
  font-size:.8rem!important;font-weight:650!important;border:0!important;border-radius:0!important;min-height:44px!important;
}
body.cfh-d27 .cfh-finder-action + .cfh-finder-action{border-left:1px solid var(--d27-line)!important}
body.cfh-d27 .cfh-finder-action:hover{background:var(--d27-sea)!important;color:var(--d27-navy)!important}

/* Aktivitätenkarten */
body.cfh-d27 .cf-act-card-cat{color:var(--d27-teal-d)!important;font-size:.64rem!important;letter-spacing:.14em!important;font-weight:700!important}
body.cfh-d27 .cf-act-card-copy strong{color:var(--d27-navy)!important;text-transform:none!important;letter-spacing:-.01em!important;font-size:.98rem!important;line-height:1.25!important;font-weight:700!important}
body.cfh-d27 .cf-act-place-badge{border-radius:999px!important;background:rgba(11,47,94,.72)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);letter-spacing:.06em!important}

/* Wochenmarkt-Hinweis */
body.cfh-d27 .cfv-market-section .cfv-market-note{background:var(--d27-sand)!important;border:1px solid rgba(154,91,0,.12);color:#6b5a43!important}

/* ---------- 5. „Was machen wir heute?“ ---------- */
body.cfh-d27 .cfh-heute__decision-bar{border-radius:var(--d27-r)!important;border-color:var(--d27-line)!important;box-shadow:var(--d27-sh-1)!important}
body.cfh-d27 .cfh-heute__intents button,
body.cfh-d27 .cfh-heute__intents a{border-radius:14px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important;border-color:var(--d27-line-2)!important;transition:background .25s,border-color .25s,transform .25s var(--d27-ease)!important}
body.cfh-d27 .cfh-heute__intents button:hover,
body.cfh-d27 .cfh-heute__intents a:hover{background:var(--d27-sea)!important;border-color:rgba(8,152,176,.35)!important;transform:translateY(-1px)}

/* ---------- 6. Popups ---------- */
body.cfh-d27 .cfv-market-dialog,
body.cfh-d27 .cfv-modal-dialog{border-radius:24px!important;box-shadow:0 40px 90px -30px rgba(6,24,48,.55)!important;border:0!important}
body.cfh-d27 .cfv-market-backdrop,
body.cfh-d27 .cfv-modal-backdrop{background:rgba(8,26,48,.48)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* ---------- 7. Tastatur-Fokus sichtbar ---------- */
body.cfh-d27 .cf-home-card-link:focus-visible,
body.cfh-d27 .cf-home-event-card-open:focus-visible,
body.cfh-d27 .cfv-card-open:focus-visible,
body.cfh-d27 .cf-act-card-open:focus-visible{outline:3px solid rgba(8,152,176,.55)!important;outline-offset:2px;border-radius:var(--d27-r)}

/* ---------- 4b. Feinschliff Karten (am Live-System abgestimmt) ---------- */
body.cfh-d27 .cf-home-event-hero,body.cfh-d27 .cfv-card-hero{min-height:0!important;padding-bottom:8px!important}
body.cfh-d27 .cf-home-event-description,body.cfh-d27 .cfv-card-description{min-height:0!important;margin-top:2px!important}
body.cfh-d27 .cf-home-event-body,body.cfh-d27 .cfv-body{min-height:0!important}
body.cfh-d27 .cf-home-event-primary,body.cfh-d27 .cfv-card-primary{margin-top:auto!important}
body.cfh-d27 .cf-home-event-title,body.cfh-d27 .cfv-title{overflow-wrap:break-word!important}
body.cfh-d27 .cf-home-section-heading p,body.cfh-d27 .cfv-market-section .cfv-market-heading-copy p{max-width:860px!important}
body.cfh-d27 .cfv-market-section .cfv-market-heading-main{flex:1 1 100%!important}
body.cfh-d27 .cfv-market-section .cfv-market-heading-copy{flex:1 1 auto!important}
body.cfh-d27 .cfv-market-section .cfv-market-card .cf-home-event-icon-shell{border-radius:14px!important}
body.cfh-d27 .cfv-market-section .cfv-market-card .cfv-market-day-pill{border-radius:999px!important;background:#fff1d6!important;color:#8a5200!important;letter-spacing:.04em!important;font-weight:700!important}

/* Region/Restaurants (6 Spalten): Text nicht in schmale Spalte quetschen */
body.cfh-d27 .cf-home-card-grid-6 .cf-home-card-body{padding:12px 14px 44px!important;min-height:0!important}
body.cfh-d27 .cf-home-card-grid-6 .cf-home-card-body p{display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.cfh-d27 .cf-home-card-grid-6 .cf-home-card-arrow{right:12px!important;bottom:12px!important}

/* Heutiger Markt als Hauptkarte */
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured{background:linear-gradient(165deg,#0b2f5e 0%,#0b5f80 62%,#0898b0 100%)!important;border:0!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-body,
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-hero,
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-card-open{background:transparent!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-body{padding:26px 26px 24px!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-title{color:#fff!important;font-size:clamp(1.35rem,1rem + 1vw,1.75rem)!important;letter-spacing:-.025em!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-category{color:#8fe3f0!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-description{color:rgba(255,255,255,.82)!important;font-size:.95rem!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-primary-row,
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-primary-row span{color:#fff!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-primary-row svg{color:#8fe3f0!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-divider{background:rgba(255,255,255,.16)!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-more{background:rgba(255,255,255,.16)!important;color:#fff!important}
body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-icon-shell{background:rgba(255,255,255,.14)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important}

/* GetYourGuide-Nachladen, Instagram */
body.cfh-d27 .cf-home-gyg-reload-button{border-radius:999px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important;font-size:.9rem!important;background:#fff!important;border:1px solid var(--d27-line-2)!important;color:var(--d27-navy)!important;max-width:320px;margin-left:auto!important;margin-right:auto!important;display:flex!important;justify-content:center}
body.cfh-d27 .cf-home-gyg-reload-button:hover{background:var(--d27-sea)!important}
body.cfh-d27 .cf-home-instagram-feed .sbi_item .sbi_photo_wrap,body.cfh-d27 .cf-home-instagram-feed .sbi_item a.sbi_photo{border-radius:16px!important;overflow:hidden!important}
body.cfh-d27 .cf-home-instagram-feed .sbi_item img{transition:transform .8s var(--d27-ease)!important}
body.cfh-d27 .cf-home-instagram-feed .sbi_item:hover img{transform:scale(1.04)}

/* ---------- 8. Mobil: Kartenreihen zum Wischen statt endloser Liste ---------- */
@media (max-width:767px){
  body.cfh-d27 .cf-home-section{padding-top:34px!important;padding-bottom:34px!important}
  body.cfh-d27 .cf-home-section-heading{align-items:flex-start!important;margin-bottom:18px!important}
  body.cfh-d27 .cf-home-section-button{padding:8px 14px 8px 16px!important;min-height:40px!important;font-size:.84rem!important}
  body.cfh-d27 .cf-home-section .cf-home-event-grid,
  body.cfh-d27 .cfv-market-section .cfv-market-grid,
  body.cfh-d27 .cf-home-section .cf-act-home-grid{
    display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:12px!important;
    overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-left:-16px!important;margin-right:-16px!important;padding:4px 16px 10px!important;scroll-padding-left:16px;scrollbar-width:none;
  }
  body.cfh-d27 .cf-home-section .cf-home-event-grid::-webkit-scrollbar,
  body.cfh-d27 .cfv-market-section .cfv-market-grid::-webkit-scrollbar,
  body.cfh-d27 .cf-home-section .cf-act-home-grid::-webkit-scrollbar{display:none}
  body.cfh-d27 .cf-home-section .cf-home-event-grid > *,
  body.cfh-d27 .cfv-market-section .cfv-market-grid > *,
  body.cfh-d27 .cf-home-section .cf-act-home-grid > *{
    flex:0 0 80%!important;max-width:320px!important;min-width:0!important;scroll-snap-align:start;
    grid-column:auto!important;grid-row:auto!important;
  }
  body.cfh-d27 .cf-home-section h2,body.cfh-d27 .cfv-market-section .cfv-market-heading-copy h2,body.cfh-d27 .cfh-heute__heading h2{font-size:1.42rem!important;line-height:1.15!important}
  body.cfh-d27 .cf-home-section-heading p,body.cfh-d27 .cfv-market-section .cfv-market-heading-copy p{font-size:.9rem!important}
  body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-title{font-size:1.18rem!important;hyphens:auto}
  body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-body{padding:18px 16px!important}
  body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-icon-shell{width:52px!important;height:52px!important}
  body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-hero-icon{position:static!important;margin-bottom:12px!important}
  body.cfh-d27 .cfv-market-section .cfv-market-grid .cfv-market-card.cfv-market-featured .cf-home-event-head-main{padding-left:0!important}
  /* Auf schmalen Geräten kein Hover-Sprung */
  body.cfh-d27 .cf-home-card,body.cfh-d27 .cf-home-event-card,body.cfh-d27 .cfv-card,body.cfh-d27 .cf-act-card{transform:none!important}
}

@media (prefers-reduced-motion:reduce){
  body.cfh-d27 *{transition:none!important}
}
