/* 3D tour on the service pages (story stage below the static banner). Base styles: stage.css.
   Markup: <!-- nws:tour --> block (Generator tour.py, nur lokal beim Umbau), logic: js/nws/tour.js. */

/* The tour starts at the top of the page with its start screen (chapter 0, as in Site Tests).
   Desktop: the stage begins below the fixed navigation, the start screen fills the visible area.
   Phones/tablets: the stage slides under the navigation, the cards sit in the lower part. */
.nws-stage.is-story {
  margin-top: 0;
}
@media (min-width: 1069px) {
  .nws-stage--start {
    padding-top: calc(var(--nws-bar-top) + var(--nws-topbar-h));
  }
  .nws-stage--start .nws-chapter:first-of-type {
    min-height: calc(100vh - var(--nws-bar-top) - var(--nws-topbar-h));
    min-height: calc(100svh - var(--nws-bar-top) - var(--nws-topbar-h));
    padding-top: 24px;
  }
}
/* The template pushes #content down by 50 px up to 992 px width (for its old mobile header). */
@media (max-width: 992px) {
  .nws-stage--start.is-story {
    margin-top: -50px;
  }
}

/* Start screen (Site Tests style): kicker, title, breadcrumbs, quote, lead, CTA. */
.nws-start h1 {
  margin: 0;
  color: var(--nws-c-stage-fg);
  font-family: var(--nws-font-heading);
  font-size: clamp(2.375rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nws-start .nws-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--nws-c-stage-fg-2);
  font-size: 0.875rem;
  line-height: 1.4;
}
.nws-start .nws-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nws-start .nws-crumbs li + li::before {
  content: '›';
  opacity: 0.6;
}
.nws-start .nws-crumbs a {
  color: var(--nws-c-stage-fg-2);
  text-decoration: none;
}
.nws-start .nws-crumbs a:hover {
  color: var(--nws-c-stage-fg);
}
.nws-start .nws-crumbs .active {
  color: var(--nws-c-stage-fg);
  font-weight: 600;
}
.nws-start .nws-start__quote {
  color: var(--nws-c-stage-fg-2);
  font-family: var(--nws-font-heading);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
}
.nws-start .nws-start__lead {
  max-width: 38ch;
  color: var(--nws-c-stage-fg-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.nws-start .nws-start__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 6px;
}
.nws-start .nws-start__actions .nws-btn,
.nws-start .nws-start__actions .nws-btn:hover {
  color: #fff;
}
.nws-start .nws-start__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nws-c-stage-fg-2);
  font-size: 0.9375rem;
}
.nws-start .nws-start__hint svg {
  animation: nws-hint-bounce 1.8s ease-in-out infinite;
}
@keyframes nws-hint-bounce {
  50% {
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nws-start .nws-start__hint svg {
    animation: none;
  }
}
/* Phones/tablets: the bottom bar already says where you are; the button fills the width. */
@media (max-width: 1068px) {
  .nws-start .nws-crumbs,
  .nws-start .nws-start__hint {
    display: none;
  }
  .nws-start h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
  .nws-start .nws-start__quote {
    font-size: 1.0625rem;
  }
  .nws-start .nws-start__lead {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .nws-start .nws-start__actions .nws-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Cards: neutralise the template's large headings and loose line height inside the glass cards. */
.nws-chapter-card h2,
.nws-chapter-card h4,
.nws-chapter-card p {
  margin: 0;
  letter-spacing: normal;
}
.nws-chapter-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.2;
  text-wrap: balance;
}
.nws-chapter-card h4 {
  color: var(--nws-c-stage-fg);
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
  line-height: 1.3;
}
.nws-chapter-card p {
  color: var(--nws-c-stage-fg-2);
  font-size: 1rem;
  line-height: 1.65;
}
.nws-chapter-card .nws-chapter-kicker {
  color: var(--nws-c-brand);
  font-family: var(--nws-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme='dark'] .nws-chapter-card .nws-chapter-kicker {
  color: #8db0ee;
}
.nws-chapter-card .nws-chapter-tagline {
  padding: 14px 18px;
  border-left: 3px solid var(--nws-c-primary);
  border-radius: 4px var(--nws-radius-s) var(--nws-radius-s) 4px;
  background: rgba(var(--nws-c-primary-rgb), 0.1);
  color: var(--nws-c-stage-fg);
  font-weight: 600;
}
.nws-chapter-card .svc-icon-tile {
  margin: 0;
}

@media (max-width: 1068px) {
  .nws-chapter-card h2 {
    font-size: 1.375rem;
  }
  .nws-chapter-card h4 {
    font-size: 1.1875rem;
  }
  .nws-chapter-card p {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* While the tour fills the screen, the floating cookie and TableServ icons are hidden (they would cover
   the cards) and appear again outside the tour – no jumping (visual only; their logic and the cookie
   banner itself are untouched). Class set by js/nws/tour.js. */
body.nws-in-tour .nw-cookie-button,
body.nws-in-tour .nw-ts-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
/* Overview page: section headings with icon, sub-cards, table of contents, buttons inside cards. */
.nws-chapter-card h3,
.nws-chapter-card h5 {
  margin: 0;
  color: var(--nws-c-stage-fg);
  letter-spacing: normal;
}
.nws-chapter-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
}
.nws-chapter-card h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.nws-chapter-card h3 i,
.nws-chapter-card h5 i {
  color: var(--nws-c-primary);
}
.nws-chapter-card .svc-toc {
  display: grid;
  gap: 8px;
  margin: 0;
}
.nws-chapter-card .svc-toc a {
  color: var(--nws-c-stage-fg);
  font-weight: 600;
}
.nws-chapter-card p a,
.nws-chapter-card p b a {
  color: var(--nws-c-brand);
}
[data-theme='dark'] .nws-chapter-card p a,
[data-theme='dark'] .nws-chapter-card .svc-toc a {
  color: #8db0ee;
}
.nws-chapter-card .svc-btn-outline {
  justify-self: start;
}
