/* ==========================================================================
   Swiss Guide — Design System v3 (Boxed Layout)
   Fester zentrierter Inhaltsbereich (max. 760px) mit Weissraum links/rechts —
   auf jedem Screen, vom Ultrawide bis zum Handy. App-Look: weiss, App-Rot,
   runde Karten, Pills, Poppins. Bilder 1:1-tauglich.
   ========================================================================== */

:root {
  --sg-red:       #E0242B;
  --sg-red-dark:  #C41E24;
  --sg-red-soft:  #FDECEC;
  --sg-ink:       #1E2330;
  --sg-ink-soft:  #8A8F9C;
  --sg-bg-soft:   #F6F7F9;
  --sg-line:      #ECEDF0;
  --sg-font:      'Poppins', system-ui, sans-serif;
  --sg-r-card:    16px;
  --sg-r-pill:    999px;
  --sg-shadow:    0 6px 24px rgba(30, 35, 48, 0.08);
  --sg-shadow-sm: 0 2px 10px rgba(30, 35, 48, 0.07);
  --sg-shell:     760px;   /* DIE Box: alles lebt in dieser zentrierten Spalte */
}

/* ==========================================================================
   DIE BOX — Herzstueck des Layouts.
   Jede Detailseite steckt in .sg-page > .sg-shell: zentriert, begrenzt,
   responsive. Explizite Regeln, damit kein Theme-CSS dazwischenfunkt.
   ========================================================================== */
.sg-page {
  width: 100%;
  background: #fff;
  font-family: var(--sg-font);
  overflow-x: hidden;
}
.sg-shell {
  width: 100%;
  max-width: var(--sg-shell);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 20px 48px;
  box-sizing: border-box;
}
.sg-shell *, .sg-shell *::before, .sg-shell *::after { box-sizing: border-box; }

.sg-shell h1, .sg-shell h2, .sg-shell h3 {
  font-family: var(--sg-font);
  font-weight: 700;
  color: var(--sg-ink);
  letter-spacing: -0.01em;
}

/* ---------- Badges / Pills ---------- */
.sg-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sg-red);
  background: var(--sg-red-soft);
  border-radius: var(--sg-r-pill);
  padding: 5px 14px;
  margin: 0 0 12px;
}
.sg-eyebrow--red { background: var(--sg-red); color: #fff; }
.sg-eyebrow--onimage { background: rgba(255,255,255,0.92); color: var(--sg-red); margin-bottom: 8px; }

.sg-locationpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sg-red);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--sg-r-pill);
  padding: 9px 18px;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(224, 36, 43, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.sg-locationpill:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 36, 43, 0.42);
}
.sg-locationpill__chev {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.sg-rating {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: var(--sg-r-pill);
  box-shadow: var(--sg-shadow-sm);
  padding: 6px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sg-ink);
}
.sg-rating::first-letter { color: #F5A623; }
.sg-lock { font-size: 0.55em; vertical-align: middle; }

/* ==========================================================================
   APP-HERO: Bild oben in der Box, Titel AUF dem Bild (wie App-Detailscreen)
   ========================================================================== */
.sg-appero { margin: 24px 0 0; }
.sg-appero__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sg-shadow);
  background: var(--sg-bg-soft);
}
.sg-appero__media > img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 3;         /* 1:1-Quelle wird sanft mittig beschnitten */
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .sg-appero__media > img { aspect-ratio: 1 / 1; }  /* mobil: quadratisch wie in der App */
}
/* Titelblock UNTER dem Bild — zentriert, funktioniert mit jedem Bild */
.sg-appero__header {
  text-align: center;
  padding: 22px 10px 8px;
}
.sg-single .sg-prose { margin-top: 30px; }
.sg-appero__title {
  color: var(--sg-ink);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.sg-appero__header .sg-eyebrow { margin-bottom: 10px; }
.sg-appero__rating { position: absolute; top: 16px; right: 16px; }

/* Premium: Bild unkenntlich */
.sg-appero--premium .sg-appero__media > img {
  filter: blur(22px) saturate(0.65) brightness(0.95);
  transform: scale(1.18);
}

/* ==========================================================================
   INFO-TILES (Best time / Duration / Canton) — zentrierte Reihe
   ========================================================================== */
.sg-infotiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}
.sg-infotile {
  flex: 0 1 150px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-card);
  padding: 14px 12px;
  text-align: center;
}
/* Label OBEN, fett — Wert DARUNTER, duenner (auf Wunsch umgedreht) */
.sg-infotile__label { font-weight: 700; color: var(--sg-ink); font-size: 0.8rem; }
.sg-infotile__value { font-size: 0.85rem; color: var(--sg-ink-soft); margin-top: 3px; white-space: pre-line; }

/* ---------- Text ---------- */
.sg-section-title { font-size: 1.2rem; margin: 36px 0 12px; }
.sg-prose {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #4B5160;
  text-align: center;
}
.sg-prose ul { text-align: left; display: inline-block; }
.sg-prose strong { color: var(--sg-ink); font-weight: 600; }
.sg-prose h3, .sg-prose h4 { margin: 1.4em 0 0.5em; }
.sg-prose ul { padding-left: 1.2em; }
.sg-prose--narrow { margin: 28px 0; }

/* ---------- Galerie: quadratische Kacheln ---------- */
.sg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}
.sg-gallery-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.sg-gallery-grid--centered .sg-gallery-grid__item {
  flex: 0 1 calc(33.333% - 7px);
  max-width: 280px;
  min-width: 120px;
}
@media (max-width: 520px) {
  .sg-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-gallery-grid--centered .sg-gallery-grid__item {
    flex-basis: calc(50% - 5px);
    max-width: 220px;
  }
}
.sg-gallery-grid figure { margin: 0; }
.sg-gallery-grid img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--sg-r-card);
  display: block;
}

/* ==========================================================================
   CARDS (Places / Spots in Grids) — 2 Spalten in der Box, 1 auf Mobil
   ========================================================================== */
.sg-relation-grid { margin: 36px 0 0; }
.sg-relation-grid h2 { font-size: 1.2rem; margin: 0 0 14px; }
.sg-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 14px 0 8px;
}
@media (max-width: 520px) { .sg-card-grid { grid-template-columns: 1fr; } }
.sg-card {
  background: #fff;
  border-radius: var(--sg-r-card);
  box-shadow: var(--sg-shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sg-card:hover { transform: translateY(-3px); box-shadow: var(--sg-shadow); }
.sg-card a { text-decoration: none; color: inherit; display: block; }
.sg-card__image { position: relative; overflow: hidden; }
.sg-card__image img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.sg-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--sg-ink);
}
.sg-card--premium .sg-card__image--locked img,
.sg-card--premium .sg-card__image img {
  filter: blur(18px) saturate(0.65);
  transform: scale(1.2);
}
.sg-card__lock {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--sg-red); color: #fff;
  border-radius: var(--sg-r-pill);
  font-size: 0.85rem;
  padding: 6px 9px; line-height: 1;
  box-shadow: var(--sg-shadow-sm);
}
.sg-card__premium-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sg-red);
}

/* ==========================================================================
   ROTER APP-BANNER — ganz unten, in der Box, App-Look
   ========================================================================== */
.sg-app-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(115deg, var(--sg-red) 0%, var(--sg-red-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  margin: 40px 0 0;
  box-shadow: 0 10px 30px rgba(224, 36, 43, 0.28);
}
.sg-app-cta h3 { color: #fff !important; margin: 0 0 5px; font-size: 1.15rem; font-weight: 700; }
.sg-app-cta p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.sg-app-cta__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.sg-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: var(--sg-red) !important;
  border-radius: var(--sg-r-pill);
  padding: 11px 22px;
  text-decoration: none !important;
  margin-left: 0;
  box-shadow: var(--sg-shadow-sm);
  transition: transform 0.15s ease;
}
.sg-badge:hover { transform: scale(1.04); }
@media (max-width: 560px) {
  .sg-app-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Premium-Box ---------- */
.sg-premium-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sg-shadow);
  padding: 36px 30px;
  margin: 28px 0 0;
  text-align: center;
}
.sg-premium-box h2 { margin: 10px 0 12px; font-size: 1.35rem; }
.sg-premium-box p { color: var(--sg-ink-soft); line-height: 1.7; }
.sg-premium-box .sg-app-cta { margin-top: 22px; text-align: left; }

/* ==========================================================================
   ARCHIV (Uebersichtsseiten) — breitere Box (Grids brauchen Platz)
   ========================================================================== */
.sg-shell--wide { max-width: 1080px; }
.sg-archive-header { padding: 36px 0 4px; }
.sg-archive-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.sg-filterbar { margin: 16px 0 6px; scroll-margin-top: 18px; }
.sg-filterbar__group { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.sg-chip {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 17px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-pill);
  background: #fff;
  color: var(--sg-ink);
  text-decoration: none;
  transition: all 0.15s ease;
}
.sg-chip:hover { border-color: var(--sg-red); color: var(--sg-red); }
.sg-chip.is-active { background: var(--sg-red); border-color: var(--sg-red); color: #fff; }
.sg-shell--wide .sg-card-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .sg-shell--wide .sg-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sg-shell--wide .sg-card-grid { grid-template-columns: 1fr; } }
.sg-card-grid__cta { grid-column: 1 / -1; }
/* ---------- Pagination (1 · 2 · Next) im App-Design ---------- */
.sg-pagination { margin: 34px 0 48px; }
.sg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* Jede Seiten-Zahl / Prev / Next als runde Pille */
.sg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-pill);
  background: #fff;
  color: var(--sg-ink);
  font-family: var(--sg-font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.sg-pagination a.page-numbers:hover {
  border-color: var(--sg-red);
  color: var(--sg-red);
  transform: translateY(-1px);
}
/* Aktive Seite: gefuellt in App-Rot */
.sg-pagination .page-numbers.current {
  background: var(--sg-red);
  border-color: var(--sg-red);
  color: #fff;
  box-shadow: 0 5px 16px rgba(224, 36, 43, 0.30);
}
/* "…"-Auslassung: kein Rahmen, nur Text */
.sg-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--sg-ink-soft);
  min-width: 24px;
  padding: 0 4px;
}
/* Prev / Next etwas breiter, in App-Rot als klare Richtungs-Aktion */
.sg-pagination .page-numbers.prev,
.sg-pagination .page-numbers.next {
  padding: 0 20px;
  color: var(--sg-red);
  border-color: var(--sg-red-soft);
  background: var(--sg-red-soft);
}
.sg-pagination .page-numbers.prev:hover,
.sg-pagination .page-numbers.next:hover {
  background: var(--sg-red);
  border-color: var(--sg-red);
  color: #fff;
}
/* Von Screenreadern vorgelesener Titel ("Seiten-Navigation") unsichtbar */
.sg-pagination .screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .sg-pagination .page-numbers { min-width: 38px; height: 38px; font-size: 0.85rem; }
  .sg-pagination .page-numbers.prev,
  .sg-pagination .page-numbers.next { padding: 0 15px; }
}

/* ---------- Travel Tips Header ---------- */
.sg-tip-header { padding: 36px 0 0; }
.sg-tip-header h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }

/* ---------- A11y / Motion ---------- */
a:focus-visible, .sg-chip:focus-visible, .sg-badge:focus-visible {
  outline: 2px solid var(--sg-red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .sg-card, .sg-badge { transition: none; }
}

/* ==========================================================================
   TRAVEL TIPS — Markdown-Elemente & Highlight-Bloecke
   ========================================================================== */
.sg-divider {
  border: 0;
  height: 1px;
  background: var(--sg-line);
  margin: 34px auto;
  width: 100%;
}
.sg-prose--tip { margin-top: 28px; }
.sg-prose h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.6em;
  color: var(--sg-ink);
}
.sg-prose h4 { font-size: 1.02rem; }
.sg-prose a { color: var(--sg-red); font-weight: 500; }
.sg-prose hr + h3, .sg-prose .sg-divider + h3 { margin-top: 0.4em; }

/* Highlight-Block: heller roter Kasten mit Cards */
.sg-highlights {
  background: var(--sg-red-soft);
  border-radius: 20px;
  padding: 22px 20px;
  margin: 30px 0;
}
.sg-highlights__label {
  font-weight: 700;
  color: var(--sg-red);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.sg-highlights .sg-card-grid { margin: 0; }
.sg-highlights .sg-card { box-shadow: var(--sg-shadow-sm); }

/* ==========================================================================
   HOMEPAGE-BAUSTEINE
   ========================================================================== */
.sg-card--tip .sg-card__body { padding: 14px 16px 16px; }
.sg-card--tip .sg-card__image img { aspect-ratio: 16 / 10; }
.sg-card--tip .sg-card__title { padding: 6px 0 0; }
.sg-card__cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sg-red);
  background: var(--sg-red-soft);
  border-radius: var(--sg-r-pill);
  padding: 3px 10px;
}
.sg-card__excerpt {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--sg-ink-soft);
  line-height: 1.6;
}
.sg-statsbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-family: var(--sg-font);
  font-size: 0.95rem;
  color: var(--sg-ink-soft);
}
.sg-statsbar strong { color: var(--sg-ink); font-weight: 700; }
.sg-statsbar__sep { opacity: 0.5; }
.sg-filterbar__group--home { justify-content: center; }

/* ==========================================================================
   HOMEPAGE-TEMPLATE
   ========================================================================== */
.sg-home-hero {
  position: relative;
  min-height: min(64vh, 560px);
  background: linear-gradient(135deg, #1E2330 0%, #3A4254 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sg-home-hero__scrim {
  position: absolute; inset: 0;
  background: rgba(20, 24, 33, 0.45);
}
.sg-home-hero__inner {
  position: relative;
  max-width: 680px;
  padding: 70px 24px;
  font-family: var(--sg-font);
}
.sg-home-hero__inner h1 {
  color: #fff !important;
  font-family: var(--sg-font);
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.sg-home-hero__sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.02rem;
  margin: 0 0 18px;
}
.sg-home-hero .sg-statsbar { color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.sg-home-hero .sg-statsbar strong { color: #fff; }
.sg-home-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.sg-home-section { margin: 52px 0 0; }
.sg-home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.sg-home-section__title {
  font-family: var(--sg-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sg-ink);
  margin: 0 0 12px;
}
.sg-home-section__more {
  font-family: var(--sg-font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sg-red);
  text-decoration: none;
  white-space: nowrap;
}
.sg-home-section__more:hover { color: var(--sg-red-dark); }


/* ==========================================================================
   APP-KACHELN (Querformat-Rows wie in der App) + Sektions-Header
   ========================================================================== */
.sg-rowlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 8px;
  width: 100%;
}
.sg-rowlist > .sg-row { width: 100%; }
.sg-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #fff;
  border-radius: var(--sg-r-card);
  box-shadow: var(--sg-shadow-sm);
  padding: 10px 16px 10px 10px;
  text-decoration: none !important;
  color: var(--sg-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.sg-row:hover { transform: translateY(-2px); box-shadow: var(--sg-shadow); color: var(--sg-ink); }
.sg-row__media { flex: none; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--sg-bg-soft); }
.sg-row__media img, img.sg-row__img {
  width: 96px !important; height: 96px !important;
  object-fit: cover; display: block; border-radius: 14px;
}
@media (max-width: 480px) {
  .sg-row__media { width: 78px; height: 78px; }
  .sg-row__media img, img.sg-row__img { width: 78px !important; height: 78px !important; }
}
.sg-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.sg-row__title { font-family: var(--sg-font); font-weight: 600; font-size: 0.98rem; color: var(--sg-ink); }
.sg-row__sub { font-size: 0.8rem; color: var(--sg-ink-soft); }
.sg-row__chev { flex: none; font-size: 1.5rem; color: var(--sg-ink-soft); line-height: 1; }
.sg-row--premium .sg-row__media--locked img { filter: blur(10px) saturate(0.65); transform: scale(1.25); }
.sg-row--premium .sg-row__sub { color: var(--sg-red); font-weight: 600; }
.sg-row__lock {
  flex: none;
  background: var(--sg-red); color: #fff;
  border-radius: var(--sg-r-pill);
  font-size: 0.8rem; padding: 6px 9px; line-height: 1;
}

/* Sektions-Header: Titel links, "See all" rechts (wie in der App) */
.sg-sectionhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 2px;
}
.sg-sectionhead h2 {
  font-family: var(--sg-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sg-ink);
  margin: 0;
  text-align: left;
}
.sg-sectionhead a {
  font-family: var(--sg-font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sg-red);
  text-decoration: none;
  white-space: nowrap;
}
/* Auf Detailseiten ("Places in Grindelwald", "Nearby") gibt es keinen
   "See all"-Link — dort steht die Ueberschrift zentriert, nicht linksbuendig. */
.sg-sectionhead--center {
  justify-content: center;
  text-align: center;
}
.sg-sectionhead--center h2 { text-align: center; }

/* Clean-Seiten (eigener Header/Footer): Grundfarben absichern.
   WICHTIG: html + body ROT, damit der Overscroll-/Rubber-Band-Bereich am
   iPhone/iPad (Ziehen ueber den Rand) rot ist statt weiss — oben UND unten.
   Der eigentliche Inhalt bleibt weiss (siehe .sg-page unten). Die html-Regel
   greift auf ALLEN Seiten (dieses CSS ist global geladen), also auch Home,
   Explore, Suche, Kategorien, Kantone usw. */
/* Exakt die Hero-Farbe rgb(222,36,36) — NICHT das Design-System-Rot
   (#E0242B), damit der Overscroll nahtlos zum Hero/Header/Footer passt. */
html { background-color: #DE2424 !important; }
body.sg-clean { background: #DE2424; margin: 0; }
.sg-empty { text-align: center; color: var(--sg-ink-soft); padding: 40px 0; }

/* ==========================================================================
   AJAX-FILTER: Lade-Overlay + Spinner ueber der Ergebnisliste.
   Die alte Liste bleibt sichtbar (leicht ueberdeckt), damit die Scroll-
   Position NICHT springt — es wird nur die Liste ausgetauscht.
   ========================================================================== */
#sg-archive-results { position: relative; min-height: 140px; }
.sg-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  z-index: 6;
  animation: sgFadeIn 0.12s ease;
}
@keyframes sgFadeIn { from { opacity: 0; } to { opacity: 1; } }
.sg-spin {
  width: 34px;
  height: 34px;
  border: 3px solid var(--sg-red-soft);
  border-top-color: var(--sg-red);
  border-radius: 50%;
  animation: sgSpin 0.7s linear infinite;
}
@keyframes sgSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sg-spin, .sg-loader-overlay { animation: none; }
}
.sg-archive-header { text-align: center; }

/* ==========================================================================
   ZURUECK-BUTTON — Pill "‹ Back to …", eine Ebene hoeher (ueber dem Breadcrumb)
   ========================================================================== */
.sg-backlink {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 18px auto 0;   /* zentriert wie der restliche Seiteninhalt */
  padding: 9px 18px 9px 13px;
  border-radius: var(--sg-r-pill);
  background: var(--sg-red-soft);
  color: var(--sg-red);
  font-family: var(--sg-font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sg-red-soft);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sg-backlink:hover {
  background: var(--sg-red);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 5px 16px rgba(224, 36, 43, 0.28);
}
.sg-backlink__arrow { font-size: 1.25rem; line-height: 1; margin-top: -1px; }
/* Steht der Button direkt ueber dem Breadcrumb, Abstand dazwischen straffen. */
.sg-backlink + .sg-breadcrumbs { padding-top: 8px; }

/* ==========================================================================
   BREADCRUMBS — einziger Rueckweg auf Seiten ohne Navigation
   ========================================================================== */
.sg-breadcrumbs {
  font-family: var(--sg-font);
  font-size: 0.82rem;
  color: var(--sg-ink-soft);
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;   /* zentriert */
}
.sg-breadcrumbs a { color: var(--sg-ink-soft); text-decoration: none; }
.sg-breadcrumbs a:hover { color: var(--sg-red); }
.sg-breadcrumbs span[aria-current] { color: var(--sg-ink); font-weight: 500; }
.sg-breadcrumbs__sep { opacity: 0.4; }

/* ==========================================================================
   HERO-SUCHE: schöne Suchbox mit sanfter Fokus-Animation + Live-Vorschau
   ========================================================================== */
.sg-searchbox-wrap {
  position: relative;
  max-width: 560px;
  margin: 28px auto 0;
}

/* Auf der Suchergebnis-Seite (breite Box) das Suchfeld so breit wie die
   Kacheln darunter ziehen — nicht mehr die schmale Hero-Breite. */
.sg-shell--wide .sg-searchbox-wrap {
  max-width: 100%;
}

/* Die dekorative Berge-/Zoom-Banner-Ebene ueberlappt mit ihrer durchsichtigen
   Flaeche das Suchfeld und faengt dort Klicks ab ("kann nicht tippen"). Da der
   Banner rein dekorativ ist, lassen wir Klicks hindurch — das Suchfeld bleibt
   bedienbar, OHNE an der Ebenen-Reihenfolge (z-index) zu schrauben. Etwaige
   interaktive Elemente im Banner bleiben klickbar. */
.zoom-banner { pointer-events: none; }
.zoom-banner a,
.zoom-banner button,
.zoom-banner input { pointer-events: auto; }

/* Explore-Hero: Der Titel-/Untertitel-Block traegt eine EIGENE Parallax
   (.text-box .parallax-active) — Flatsome setzt darauf ein Inline-transform
   (translate3d), wodurch sich der Block mit dem Finger verschieben laesst.
   Wir frieren NUR diesen Textblock ein (transform:none schlaegt das Inline-
   transform per !important; verifiziert). Die HINTERGRUND-Parallax ist ein
   ANDERES Element (.banner-bg.parallax-active) und bleibt aktiv. */
.scroll-zoom .text-box .parallax-active,
.text-box .parallax-active[data-parallax] { transform: none !important; }

.sg-searchbox {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.18);
  padding: 8px 8px 8px 24px;
  height: 66px;
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
  animation: sgSearchAttract 1.7s ease 0.6s 2;
}
@keyframes sgSearchAttract {
  0%, 100% { box-shadow: 0 14px 44px rgba(0,0,0,0.18); }
  50%      { box-shadow: 0 14px 44px rgba(0,0,0,0.18), 0 0 0 8px rgba(224, 36, 43, 0.12); }
}
.sg-searchbox:focus-within {
  border-color: rgba(224, 36, 43, 0.4);
  box-shadow: 0 18px 50px rgba(224, 36, 43, 0.22);
  transform: translateY(-2px);
}
.sg-searchbox__icon {
  flex: none;
  width: 20px; height: 20px;
  color: var(--sg-ink-soft);
  transition: color 0.2s ease;
}
.sg-searchbox:focus-within .sg-searchbox__icon { color: var(--sg-red); }

/* Input: Flatsome setzt global Rahmen/Hintergrund/Höhe auf <input> — hier
   mit hoher Spezifität + !important komplett neutralisieren, damit das Feld
   nahtlos in der Pille sitzt und exakt mittig ausgerichtet ist. */
.sg-searchbox input.sg-searchbox__input,
.sg-searchbox input[type="search"].sg-searchbox__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: var(--sg-font) !important;
  font-size: 1.02rem !important;
  line-height: 1 !important;
  color: var(--sg-ink) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.sg-searchbox__input::-webkit-search-decoration,
.sg-searchbox__input::-webkit-search-cancel-button,
.sg-searchbox__input::-webkit-search-results-button,
.sg-searchbox__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.sg-searchbox__input::placeholder { color: var(--sg-ink-soft) !important; opacity: 1; }

.sg-searchbox__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  margin: 0 !important;
  background: var(--sg-red);
  color: #fff;
  border: 0;
  border-radius: 100px;
  font-family: var(--sg-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 5px 16px rgba(224, 36, 43, 0.35);
}
.sg-searchbox__btn:hover {
  transform: translateY(-1px);
  background: var(--sg-red-dark);
  box-shadow: 0 8px 22px rgba(224, 36, 43, 0.45);
}
.sg-searchbox__btn:active { transform: translateY(0); }

@media (max-width: 520px) {
  .sg-searchbox { height: 60px; padding-left: 20px; }
  .sg-searchbox__btn { padding: 0 20px; height: 46px; font-size: 0.85rem; }
  .sg-searchbox__input { font-size: 0.95rem !important; }
}

/* Live-Vorschau-Dropdown — schwebendes Overlay unter dem Suchfeld.
   (Das Suchfeld sitzt in einem Flatsome-[text_box] mit fester Banner-Hoehe;
   dort kann eine In-Flow-Liste den folgenden Inhalt strukturell nicht
   wegdruecken — das Overlay fuellt stattdessen sauber den Hero-Bereich.) */
.sg-searchbox__results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 10px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  padding: 8px;
  text-align: left;
  z-index: 40;
  animation: sgSearchDropIn 0.18s ease;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}
.sg-searchbox__results[hidden] { display: none; }
@keyframes sgSearchDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sg-searchbox__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--sg-ink);
  transition: background 0.12s ease;
}
.sg-searchbox__item:hover,
.sg-searchbox__item.is-active { background: var(--sg-bg-soft); }
.sg-searchbox__item-media {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sg-bg-soft);
}
.sg-searchbox__item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-searchbox__placeholder-img { display: block; width: 100%; height: 100%; }
.sg-searchbox__item-body { flex: 1; min-width: 0; }
.sg-searchbox__item-title {
  display: block;
  font-family: var(--sg-font);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sg-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sg-searchbox__item-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--sg-ink-soft);
}
.sg-searchbox__item-chev { flex: none; color: var(--sg-ink-soft); font-size: 1.2rem; }
.sg-searchbox__empty {
  padding: 14px 12px;
  font-family: var(--sg-font);
  font-size: 0.86rem;
  color: var(--sg-ink-soft);
  text-align: center;
}

/* Definitionssatz im Hero: eigener, ruhiger Absatz — kein "lead"-Fliesstext-Look */
.sg-hero-lede {
  max-width: 560px;
  margin: 12px auto 0;
  font-family: var(--sg-font);
  font-size: 1rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .sg-searchbox, .sg-searchbox__results { animation: none; transition: none; }
}

/* ==========================================================================
   FAQ-AKKORDEON — zentriert, responsive, im App-Design
   ========================================================================== */
.sg-faq {
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
.sg-faq__item {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-card);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.sg-faq__q {
  font-family: var(--sg-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sg-ink);
  padding: 16px 28px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.sg-faq__q::-webkit-details-marker { display: none; }
.sg-faq__q::after {
  content: '+';
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--sg-red);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.sg-faq__item[open] .sg-faq__q::after { transform: translateY(-50%) rotate(45deg); }
.sg-faq__a {
  font-family: var(--sg-font);
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--sg-ink-soft);
  padding: 0 0 18px;
}
.sg-faq__a a { color: var(--sg-red); font-weight: 600; text-decoration: none; }

/* Section-Titel fuer FAQ zentriert, wie der Rest der Explore-Seite */
.sg-home-section .sg-faq { margin-top: 4px; }

/* ==========================================================================
   EXPLORE-SEKTIONEN (selbst-verschwindend via [sg_section]/[sg_categories])
   ========================================================================== */
.sg-explore-section {
  margin: 0 0 46px;
}
.sg-explore-section:last-child { margin-bottom: 0; }
.sg-explore-section--center { text-align: center; }
.sg-explore-section__title {
  font-family: var(--sg-font);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--sg-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.sg-explore-section--center .sg-filterbar__group { justify-content: center; }
/* Sektionskopf (Titel links, See all rechts) in der Explore-Liste */
.sg-explore-section .sg-sectionhead h2 { text-transform: uppercase; letter-spacing: 0.02em; }
