/* TravelAddon cards + static hero — brand tokens, WCAG-minded contrast, CLS-safe media */
:root {
  --sr-ink: #1a1c20;
  --sr-ink-soft: #3a3d45;
  --sr-muted: #5c5e66; /* ≥4.5:1 on white */
  --sr-paper: #ffffff;
  --sr-paper-soft: #f7f7f7;
  --sr-line: rgba(26, 28, 32, 0.1);
  --sr-orange: #e77600;
  --sr-orange-deep: #b85a00; /* WCAG AA for white text on CTA */
  --sr-cyan: #36d2d3;
  --sr-cyan-deep: #0e8f90; /* text link / focus ring on light */
  --sr-sky: #1ebbf0;
  --sr-radius: 14px;
  --sr-shadow: 0 10px 28px -12px rgba(26, 28, 32, 0.22);
  --sr-shadow-hover: 0 18px 40px -16px rgba(26, 28, 32, 0.28);
}

.sr-hero {
  background: linear-gradient(135deg, #1a1c20 0%, #21759b 45%, #1ebbf0 100%);
  color: #f7f7f7;
  padding: 7.5rem 1.5rem 5rem;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-hero__inner { max-width: 820px; margin: 0 auto; }
.sr-hero__title {
  margin: 0 0 0.85rem;
  color: #ffffff !important;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.sr-hero__text {
  margin: 0 auto 1.6rem;
  max-width: 38rem;
  color: #f7f7f7 !important;
  font-size: 1.125rem;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.sr-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.sr-hero__btn,
.sr-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.sr-hero__btn--primary,
.sr-cta--primary .sr-cta__btn {
  background: var(--sr-orange-deep);
  color: #fff;
}
.sr-hero__btn--primary:hover,
.sr-cta--primary .sr-cta__btn:hover {
  background: #9a4c00;
  color: #fff;
}
.sr-hero__btn--secondary {
  background: var(--sr-cyan);
  color: var(--sr-ink);
}
.sr-hero__btn--secondary:hover {
  background: #2bb8b9;
  color: var(--sr-ink);
}

/* —— Card grid —— */
.sr-cards {
  display: grid;
  gap: 1.35rem;
  margin: 1.75rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  contain: layout style;
}
.sr-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sr-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .sr-cards--cols-3,
  .sr-cards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-hero { min-height: 340px; padding-top: 5.5rem; }
}
@media (max-width: 640px) {
  .sr-cards--cols-2,
  .sr-cards--cols-3,
  .sr-cards--cols-4 { grid-template-columns: 1fr; }
  .sr-cards { gap: 1.1rem; }
}

.sr-card {
  background: var(--sr-paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-line);
  box-shadow: var(--sr-shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}
.sr-card:hover,
.sr-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sr-shadow-hover);
}
@media (prefers-reduced-motion: reduce) {
  .sr-card,
  .sr-hero__btn,
  .sr-cta__btn,
  .sr-card__cta { transition: none; }
  .sr-card:hover,
  .sr-card:focus-within { transform: none; }
}

/* CLS: reserved media box before image paints */
.sr-card__media {
  display: block;
  line-height: 0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eaee 0%, #d5d8de 100%);
  aspect-ratio: 16 / 10;
}
.sr-card__img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  /* SR-101 — keep top-right Sakkara watermark visible (avoid center crop clip) */
  object-position: right top;
  aspect-ratio: 16 / 10;
  display: block;
  vertical-align: middle;
}
.sr-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(26, 28, 32, 0.45), transparent);
  pointer-events: none;
}

.sr-card__body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  background: var(--sr-paper);
}
.sr-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sr-card__title a {
  color: var(--sr-ink);
  text-decoration: none !important;
}
.sr-card__title a:hover,
.sr-card__title a:focus-visible {
  color: var(--sr-cyan-deep);
}
.sr-card__excerpt {
  margin: 0;
  color: var(--sr-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-card__meta {
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--sr-ink-soft);
}
.sr-card__duration,
.sr-card__price {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--sr-paper-soft);
  border: 1px solid var(--sr-line);
}
.sr-card__price {
  color: var(--sr-orange-deep);
  font-weight: 800;
  background: #fff6eb;
  border-color: rgba(184, 90, 0, 0.22);
}

/* Dual CTAs — order / contact first on mobile */
.sr-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding-top: 0.35rem;
}
.sr-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.sr-card__cta:focus-visible {
  outline: 3px solid var(--sr-sky);
  outline-offset: 2px;
}
.sr-card__cta--primary {
  background: var(--sr-orange-deep);
  color: #ffffff;
  order: 1;
}
.sr-card__cta--primary:hover {
  background: #9a4c00;
  color: #ffffff;
}
.sr-card__cta--secondary {
  background: transparent;
  color: var(--sr-ink);
  border-color: rgba(26, 28, 32, 0.18);
  order: 2;
}
.sr-card__cta--secondary:hover {
  background: rgba(54, 210, 211, 0.18);
  border-color: var(--sr-cyan);
  color: var(--sr-ink);
}

@media (max-width: 640px) {
  .sr-card__actions {
    grid-template-columns: 1fr;
  }
  .sr-card__cta--primary { order: -1; } /* Anfragen first */
  .sr-card__cta {
    min-height: 52px;
    font-size: 1rem;
  }
}

.sr-cta { margin: 1.25rem 0; }
.sr-cards__empty { color: var(--sr-muted); }

/* —— Stitch + UI/UX Pro Max pass (2026-10-31) —— */
:root {
  --sr-space-xxl: 4rem;
  --sr-radius: 14px;
  --sr-shadow: 0 2px 8px -2px rgba(26, 28, 32, 0.05), 0 1px 3px 0 rgba(26, 28, 32, 0.03);
  --sr-shadow-hover: 0 12px 24px -6px rgba(26, 28, 32, 0.08), 0 4px 8px -2px rgba(26, 28, 32, 0.04);
}
.sr-cards {
  gap: 1.5rem;
  margin: var(--sr-space-xxl) 0;
}
.sr-card {
  border: 1px solid rgba(26, 28, 32, 0.08);
  box-shadow: var(--sr-shadow);
}
.sr-card:hover,
.sr-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(26, 28, 32, 0.14);
  box-shadow: var(--sr-shadow-hover);
}
.sr-card__title {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.sr-card__cta {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


/* Pro Max checklist pass */
.sr-card__cta,
.sr-card__media,
.sr-card__title a { cursor: pointer; }
.sr-card__img { max-width: 100%; height: auto; }
.sr-card__actions { gap: 0.75rem; } /* >=8px touch spacing */
@media (prefers-reduced-motion: reduce) {
  .sr-card:hover,
  .sr-card:focus-within { transform: none; }
}


/* Pro Max pressed feedback (no layout shift) */
.sr-card__cta:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}
.sr-card__cta--primary:active { background: #8a4400; }
.sr-card__cta--secondary:active { background: rgba(54, 210, 211, 0.28); }
.sr-hero__btn:active,
.sr-cta__btn:active {
  transform: translateY(1px) scale(0.98);
}

/* —— Hub destination CTAs (Elementor cover parity, SR-67 / SR-182) —— */
.sr-hub-cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sr-hub-cards--cols-1 { grid-template-columns: 1fr; }
.sr-hub-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-hub-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .sr-hub-cards--cols-2,
  .sr-hub-cards--cols-3 {
    grid-template-columns: 1fr;
  }
}

.sr-hub-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  padding: 2.25rem 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  background-color: #1a1c20;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  box-shadow: 0 10px 28px -14px rgba(15, 17, 20, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sr-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Match Elementor cover overlay #38323261 → hover #0B2524CF */
  background: rgba(56, 50, 50, 0.38);
  pointer-events: none;
  transition: background 0.35s ease;
}
.sr-hub-card:hover::before,
.sr-hub-card:focus-visible::before {
  background: rgba(11, 37, 36, 0.81);
}
.sr-hub-card:hover,
.sr-hub-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(15, 17, 20, 0.42);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sr-hub-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  max-width: 22rem;
}
.sr-hub-card__title {
  display: block;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.sr-hub-card__sub {
  display: block;
  margin: 0 0 0.85rem;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.sr-hub-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  margin-top: 0.35rem;
  border-radius: 10px;
  /* Staging Elementor CTA button #36D2D3 */
  background: #36d2d3;
  border: 1px solid #36d2d3;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 6px 16px -6px rgba(54, 210, 211, 0.45);
  transition: filter 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.sr-hub-card:hover .sr-hub-card__btn,
.sr-hub-card:focus-visible .sr-hub-card__btn {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .sr-hub-card {
    aspect-ratio: auto;
    min-height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sr-hub-card,
  .sr-hub-card__btn,
  .sr-hub-card::before {
    transition: none;
  }
  .sr-hub-card:hover,
  .sr-hub-card:focus-visible {
    transform: none;
  }
}

/* Legacy Elementor tour cards rebuilt as 3-col grid (SR-70) */
.sr-cards--legacy {
  margin: 1.75rem 0 2.25rem;
}
/* SR-101 — 4/3 matches most -ink tour photos; 1/1 was clipping side watermarks */
.sr-card--legacy .sr-card__media {
  aspect-ratio: 4 / 3;
  background: #e8eaee;
}
.sr-card--legacy .sr-card__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: right top;
}
.sr-card__actions--single {
  grid-template-columns: 1fr;
}
.sr-card__actions--single .sr-card__cta--primary {
  width: 100%;
  order: 0;
}

/* Leaf tour galleries: never full-bleed 641px stacks when Elementor CSS is off */
body.sr-is-tour .entry-content > p > img,
body.sr-is-tour .entry-content > img,
body.sr-is-tour .entry-content > a:has(> img) {
  max-width: 100%;
}
body.sr-is-tour .entry-content .gallery,
body.sr-is-tour .entry-content .wp-block-gallery,
body.sr-is-tour .entry-content .sr-tour-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
@media (max-width: 640px) {
  body.sr-is-tour .entry-content .gallery,
  body.sr-is-tour .entry-content .wp-block-gallery,
  body.sr-is-tour .entry-content .sr-tour-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.sr-is-tour .entry-content .gallery img,
body.sr-is-tour .entry-content .wp-block-gallery img,
body.sr-is-tour .entry-content .sr-tour-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: right top;
  border-radius: 10px;
}

/* Sticky must not cover legacy card CTAs — extra bottom padding on hubs/lists */
body:not(.sr-has-tour-sticky) .sr-cards--legacy {
  padding-bottom: 0.5rem;
}
body.sr-has-tour-sticky .entry-content .sr-cards--legacy,
body.sr-has-tour-sticky .entry-content {
  padding-bottom: 5.5rem;
}

/* Sitewide mobile readability — modest body/content bump (TravelAddon cards CSS is front-wide) */
@media (max-width: 781px) {
  html {
    font-size: 106.25%; /* ~17px when UA default is 16px */
  }
  body {
    font-size: 1.0625rem;
    line-height: 1.65;
  }
  .entry-content,
  .ast-article-single .entry-content,
  .site-content .entry-content,
  .entry-content p,
  .entry-content li {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
}
