/* Sonnenschein — tokeni templata, scopovani na .sec-sonnenschein-faq. */

/* ============================================================
   DESIGN TOKENS — Template 3 "Sonnenschein"
   Niche variant: B — Pediatric / Family
   Shape language: SUPER-ELLIPSE cards + WAVE section dividers
   (T1 = organic blobs, T2 = arches + hairlines)
   Change ONLY this file to re-skin the whole template.
   ============================================================ */

.sec-sonnenschein-faq {
  /* ---------- Color ---------- */
  --c-bg:          #FEF9F3;   /* warm off-white */
  --c-bg-alt:      #FDF3E9;
  --c-white:       #FFFFFF;

  --c-primary:     #4A9B8E;   /* bright teal — fills, icons, shapes */
  --c-primary-dk:  #2F6E64;   /* AA-safe teal for TEXT and buttons (5.2:1) */
  --c-primary-lt:  #7FC0B4;
  --c-primary-08:  rgba(74, 155, 142, 0.08);
  --c-primary-14:  rgba(74, 155, 142, 0.14);

  --c-coral:       #F4A896;
  --c-coral-dk:    #B75740;   /* AA-safe coral for text (4.9:1) */
  --c-coral-soft:  #FDE7E1;

  --c-sun:         #FFD166;   /* small accents only */
  --c-sun-soft:    #FFF1D2;

  --c-mint:        #A8D8B9;
  --c-mint-soft:   #E6F4EB;

  --c-text:        #2A2A2A;
  --c-text-muted:  #5F5A55;   /* 6.4:1 on --c-bg */
  --c-text-invert: #FFFFFF;

  --c-line:        rgba(42, 42, 42, 0.10);
  --c-line-strong: rgba(42, 42, 42, 0.20);

  --c-whatsapp:    #128C7E;
  --c-whatsapp-dk: #0E6F63;
  --c-star:        #F2A83B;

  /* ---------- Elevation — soft, warm, slightly lifted ---------- */
  --sh-xs: 0 1px 2px rgba(70, 55, 40, 0.05);
  --sh-sm: 0 3px 10px rgba(70, 55, 40, 0.07);
  --sh-md: 0 10px 26px -8px rgba(70, 55, 40, 0.16);
  --sh-lg: 0 20px 44px -14px rgba(70, 55, 40, 0.20);
  --sh-xl: 0 34px 70px -20px rgba(70, 55, 40, 0.26);

  /* ---------- Radius — deliberately round, never browser-default ---------- */
  --r-xs:  10px;
  --r-sm:  16px;
  --r-md:  22px;
  --r-lg:  30px;
  --r-xl:  40px;
  --r-2xl: 52px;
  --r-pill: 999px;
  --r-circle: 50%;
  /* super-ellipse: uneven corners so cards read hand-drawn, not boxy */
  --r-squircle: 44% 56% 52% 48% / 50% 46% 54% 50%;

  /* ---------- Spacing — 8px base ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;
  --sp-9: 128px;

  --section-y: clamp(64px, 8.5vw, 120px);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1220px;

  /* ---------- Typography ---------- */
  --ff-display: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --ff-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-h4:   clamp(1.1875rem, 0.55vw + 1.06rem, 1.375rem);
  --fs-h3:   clamp(1.4375rem, 0.9vw + 1.22rem, 1.8125rem);
  --fs-h2:   clamp(1.9375rem, 2.3vw + 1.35rem, 2.875rem);
  --fs-h1:   clamp(2.375rem, 3.9vw + 1.3rem, 3.875rem);

  --lh-tight: 1.14;
  --lh-snug:  1.26;
  --lh-body:  1.66;

  --ls-tight: -0.015em;
  --ls-label:  0.1em;

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 640ms;

  /* ---------- Layout ---------- */
  --header-h: 78px;
  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 95;
  --z-lightbox: 200;
}

@media (max-width: 760px) { .sec-sonnenschein-faq { --header-h: 66px; } }

/* Sonnenschein — reset i zajedničke primitive (base.css). */

/* ============================================================
   BASE — Template 3 "Sonnenschein"
   reset · rounded typography · pill buttons · wave dividers
   ============================================================ */

.sec-sonnenschein-faq *, .sec-sonnenschein-faq *::before, .sec-sonnenschein-faq *::after { box-sizing: border-box; }

.sec-sonnenschein-faq {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

.sec-sonnenschein-faq {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` instead of `hidden`: hidden makes body a scroll container in
     older engines, which breaks the position: sticky pin in .plx.
     The hidden line stays as the fallback for browsers without clip. */
  overflow-x: hidden;
  overflow-x: clip;
}

.sec-sonnenschein-faq img, .sec-sonnenschein-faq svg, .sec-sonnenschein-faq video { display: block; max-width: 100%; }
.sec-sonnenschein-faq img { height: auto; }

.sec-sonnenschein-faq h1, .sec-sonnenschein-faq h2, .sec-sonnenschein-faq h3, .sec-sonnenschein-faq h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-primary-dk);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-sonnenschein-faq h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.sec-sonnenschein-faq h2 { font-size: var(--fs-h2); line-height: 1.16; }
.sec-sonnenschein-faq h3 { font-size: var(--fs-h3); }
.sec-sonnenschein-faq h4 { font-size: var(--fs-h4); }

.sec-sonnenschein-faq p { margin: 0; text-wrap: pretty; }
.sec-sonnenschein-faq ul, .sec-sonnenschein-faq ol { margin: 0; padding: 0; list-style: none; }

.sec-sonnenschein-faq a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.sec-sonnenschein-faq button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sec-sonnenschein-faq :focus-visible { outline: 3px solid var(--c-primary-dk); outline-offset: 3px; border-radius: var(--r-xs); }
.sec-sonnenschein-faq :focus:not(:focus-visible) { outline: none; }
.sec-sonnenschein-faq ::selection { background: var(--c-sun); color: var(--c-text); }

/* ---------- Layout primitives ---------- */

.sec-sonnenschein-faq .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-sonnenschein-faq .u-section { position: relative; padding-block: var(--section-y); }

.sec-sonnenschein-faq .u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sec-sonnenschein-faq .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-180%);
  background: var(--c-primary-dk); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-sonnenschein-faq .u-skip-link:focus { transform: translateY(0); }

/* ---------- Section header ---------- */

/* Rounded pill label with a coloured dot — set --chip to recolour */
.sec-sonnenschein-faq .u-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--chip-bg, var(--c-mint-soft));
  color: var(--chip-fg, var(--c-primary-dk));
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase;
}
.sec-sonnenschein-faq .u-chip::before {
  content: "";
  width: 9px; height: 9px; flex: none;
  border-radius: var(--r-circle);
  background: var(--chip-dot, var(--c-primary));
}

.sec-sonnenschein-faq .u-head > * + * { margin-top: var(--sp-3); }
.sec-sonnenschein-faq .u-head--center { text-align: center; margin-inline: auto; }
.sec-sonnenschein-faq .u-head p { color: var(--c-text-muted); font-size: var(--fs-lg); }

/* Hand-drawn style underline on one word */
.sec-sonnenschein-faq .u-mark { position: relative; white-space: nowrap; }
.sec-sonnenschein-faq .u-mark::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%; bottom: -0.1em;
  height: 0.32em;
  border-radius: var(--r-pill);
  background: var(--mark, var(--c-sun));
  opacity: 0.55;
  z-index: -1;
}

/* ---------- Buttons ---------- */

.sec-sonnenschein-faq .u-btn {
  --btn-bg: var(--c-primary-dk);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 15px 28px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-bounce),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.sec-sonnenschein-faq .u-btn svg { flex: none; }
.sec-sonnenschein-faq .u-btn:hover { transform: translateY(-3px) scale(1.02); }
.sec-sonnenschein-faq .u-btn:active { transform: translateY(0) scale(0.99); transition-duration: 70ms; }

.sec-sonnenschein-faq .u-btn--solid { box-shadow: var(--sh-md); }
.sec-sonnenschein-faq .u-btn--solid:hover { --btn-bg: #26584F; box-shadow: var(--sh-lg); }

.sec-sonnenschein-faq .u-btn--sun { --btn-bg: var(--c-sun); --btn-fg: var(--c-text); box-shadow: var(--sh-sm); }
.sec-sonnenschein-faq .u-btn--sun:hover { --btn-bg: #FFC53D; box-shadow: var(--sh-md); }

.sec-sonnenschein-faq .u-btn--coral { --btn-bg: var(--c-coral); --btn-fg: var(--c-text); box-shadow: var(--sh-sm); }
.sec-sonnenschein-faq .u-btn--coral:hover { --btn-bg: #EE9481; box-shadow: var(--sh-md); }

.sec-sonnenschein-faq .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-primary-dk); --btn-bd: var(--c-line-strong); }
.sec-sonnenschein-faq .u-btn--line:hover { --btn-bd: var(--c-primary-dk); --btn-bg: var(--c-white); }

.sec-sonnenschein-faq .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-primary-dk); box-shadow: var(--sh-md); }
.sec-sonnenschein-faq .u-btn--white:hover { --btn-bg: var(--c-mint-soft); }

.sec-sonnenschein-faq .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; box-shadow: var(--sh-md); }
.sec-sonnenschein-faq .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); box-shadow: var(--sh-lg); }

.sec-sonnenschein-faq .u-btn--lg { min-height: 62px; padding: 19px 36px; font-size: var(--fs-lg); }
.sec-sonnenschein-faq .u-btn--block { width: 100%; }

/* ---------- Wave divider (signature device) ---------- */

.sec-sonnenschein-faq .u-wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: clamp(36px, 4.5vw, 72px);
  z-index: 1;
  pointer-events: none;
}
.sec-sonnenschein-faq .u-wave--top { top: -1px; }
.sec-sonnenschein-faq .u-wave--bottom { bottom: -1px; }

/* ---------- Scroll reveal ---------- */

/* Hidden start state is gated on .has-js (set by app.js) so a script
   failure can never leave a blank hole where content should be. */
.sec-sonnenschein-faq.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-sonnenschein-faq.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-sonnenschein-faq { scroll-behavior: auto; }
  .sec-sonnenschein-faq *, .sec-sonnenschein-faq *::before, .sec-sonnenschein-faq *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sec-sonnenschein-faq.has-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .sec-sonnenschein-faq .site-head, .sec-sonnenschein-faq .mobile-bar, .sec-sonnenschein-faq .cta, .sec-sonnenschein-faq .plx, .sec-sonnenschein-faq .ig { display: none !important; }
  .sec-sonnenschein-faq { background: #fff; }
}

/* ============================================================
   MEDIA SLOTS — every image slot also takes a <video>

   Each slot rule is written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing, crop and radius stay identical:

     <img   src="_shared/img/hero.svg" width="900" height="1120" alt="…">
     <video src="_shared/video/hero.mp4" poster="_shared/img/hero.svg"
            width="900" height="1120" data-inline muted loop playsinline
            aria-label="…"></video>

   `data-inline` hands the element to app.js, which plays it only
   while it is on screen, pauses it when the tab is hidden, adds a
   pause control (WCAG 2.2.2) and skips autoplay entirely under
   prefers-reduced-motion — the poster stays in that case.

   Keep width/height (or let the slot's aspect-ratio do it) so the
   layout does not shift while the file loads.
   ============================================================ */

/* Baseline for slots that never sized their <img> explicitly. */
.sec-sonnenschein-faq video { width: 100%; height: auto; }

/* Parent of an inline video: only promoted when it is static, so a
   slot that already positions itself is left alone. */
.sec-sonnenschein-faq .has-inline-video { position: relative; }

.sec-sonnenschein-faq .u-mediactl {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease);
}
.sec-sonnenschein-faq .u-mediactl:hover { background: #fff; }
.sec-sonnenschein-faq .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-sonnenschein-faq .u-mediactl__ic::before, 
.sec-sonnenschein-faq .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-sonnenschein-faq .u-mediactl__ic::before { left: 0; }
.sec-sonnenschein-faq .u-mediactl__ic::after { right: 0; }

/* paused -> the icon becomes a play triangle */
.sec-sonnenschein-faq .u-mediactl[aria-pressed="true"] .u-mediactl__ic::before {
  left: 1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sec-sonnenschein-faq .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }

/* Small slots (avatars, thumbnails) do not get room for a label. */
.sec-sonnenschein-faq .u-mediactl--compact { padding: 0; width: 44px; justify-content: center; }
.sec-sonnenschein-faq .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija faq. */

/* ============================================================
   SECTION: FAQ — two-column grid of colour tiles
   ============================================================ */

.sec-sonnenschein-faq .faq { background: var(--c-bg); }

.sec-sonnenschein-faq .faq__head { max-width: 42rem; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-sonnenschein-faq .faq__head h2 .u-mark { --mark: var(--c-coral); }

/* The grid is masonry-ish on purpose: tiles keep their natural
   height so an open answer never stretches its neighbour. */
.sec-sonnenschein-faq .faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(14px, 1.8vw, 22px);
}

.sec-sonnenschein-faq .qa {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.sec-sonnenschein-faq .qa:hover { box-shadow: var(--sh-md); }
.sec-sonnenschein-faq .qa.is-open { box-shadow: var(--sh-md); }

.sec-sonnenschein-faq .qa--white { background: var(--c-white); }
.sec-sonnenschein-faq .qa--mint { background: var(--c-mint-soft); }
.sec-sonnenschein-faq .qa--sun { background: var(--c-sun-soft); }
.sec-sonnenschein-faq .qa--coral { background: var(--c-coral-soft); }

.sec-sonnenschein-faq .qa__q { margin: 0; font-size: inherit; }
.sec-sonnenschein-faq .qa__q button {
  display: flex; align-items: center; gap: var(--sp-4);
  width: 100%;
  min-height: 72px;
  padding: 20px clamp(18px, 2.2vw, 26px);
  text-align: left;
  border-radius: var(--r-lg);
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 700;
  line-height: 1.38;
  color: var(--c-primary-dk);
}
.sec-sonnenschein-faq .qa__q button > span:first-child { flex: 1; }

/* plus / minus from two bars */
.sec-sonnenschein-faq .qa__sign {
  position: relative;
  width: 34px; height: 34px; flex: none;
  border-radius: var(--r-circle);
  background: var(--c-white);
  box-shadow: var(--sh-xs);
  transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-bounce);
}
.sec-sonnenschein-faq .qa--white .qa__sign { background: var(--c-mint-soft); }
.sec-sonnenschein-faq .qa__sign::before, .sec-sonnenschein-faq .qa__sign::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2.5px; border-radius: 3px;
  background: var(--c-primary-dk);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out);
}
.sec-sonnenschein-faq .qa__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.sec-sonnenschein-faq .qa__q button[aria-expanded="true"] .qa__sign { background: var(--c-primary-dk); transform: rotate(180deg); }
.sec-sonnenschein-faq .qa__q button[aria-expanded="true"] .qa__sign::before, 
.sec-sonnenschein-faq .qa__q button[aria-expanded="true"] .qa__sign::after { background: var(--c-white); }
.sec-sonnenschein-faq .qa__q button[aria-expanded="true"] .qa__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

/* panel: 0fr -> 1fr, no max-height guessing */
.sec-sonnenschein-faq .qa__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-out);
}
.sec-sonnenschein-faq .qa.is-open .qa__panel { grid-template-rows: 1fr; }
.sec-sonnenschein-faq .qa__in { overflow: hidden; }
.sec-sonnenschein-faq .qa__in > p {
  padding: 0 clamp(18px, 2.2vw, 26px) 24px;
  font-size: var(--fs-base);
  color: var(--c-text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t-base) var(--ease) 70ms, transform var(--t-base) var(--ease-out) 70ms;
}
.sec-sonnenschein-faq .qa.is-open .qa__in > p { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */

@media (max-width: 820px) { .sec-sonnenschein-faq .faq__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sec-sonnenschein-faq .qa__q button { gap: var(--sp-3); padding: 18px var(--sp-4); font-size: var(--fs-base); min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) { .sec-sonnenschein-faq .qa__panel { transition: none; } }