[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

button, summary {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover, summary:hover {
  filter: brightness(0.94);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links > a:not([data-button]) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.nav-links > a:not([data-button]):hover {
  color: var(--ink);
  box-shadow: inset 0 -0.2rem var(--brand-yellow);
}

.nav-links > a:not([data-button])[aria-current=page] {
  box-shadow: inset 0 -0.2rem var(--brand-yellow);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #000;
  background: #fff;
}

.menu-toggle:hover, .menu-toggle:active {
  color: #000;
  background: #f4f4f4;
}

[data-button]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hero {
  background: linear-gradient(135deg, #eef5f7 0 72%, #fff6d5 72%);
  overflow: hidden;
}

.hero-grid {
  min-height: min(700px, 100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero-grid:has(.route-art-sablinien-svg) {
  gap: clamp(0.5rem, 1vw, 1rem);
}

h1 {
  max-width: 16ch;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 + p, .nav-page-hero-content > p:last-child {
  max-width: 62ch;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
}

.route-art {
  min-height: 26rem;
  position: relative;
  isolation: isolate;
}

.route-art span {
  position: absolute;
  display: block;
}

.route-art-sablinien-svg {
  display: grid;
  width: calc(100% + clamp(8rem, 16vw, 18rem));
  margin-left: clamp(-6rem, -6vw, -2.5rem);
  place-items: center start;
}

.route-art-sablinien-svg img {
  width: 100%;
  height: auto;
  max-width: none;
}

.route-art-classic span:nth-child(n+4) {
  display: none;
}

.route-art-classic span {
  width: 70%;
  height: 35%;
  border: 14px solid var(--brand-blue);
  border-left: 0;
  border-radius: 0 8rem 8rem 0;
}

.route-art-classic span:nth-child(1) {
  top: 5%;
  left: -15%;
  border-color: var(--brand-blue);
}

.route-art-classic span:nth-child(2) {
  top: 35%;
  left: 5%;
  border-color: var(--brand-red);
}

.route-art-classic span:nth-child(3) {
  top: 65%;
  left: 25%;
  border-color: var(--brand-yellow);
}

.route-art-metro span:nth-child(-n+3) {
  left: 4%;
  width: 94%;
  height: 13px;
  border-radius: 99rem;
  transform-origin: left center;
}

.route-art-metro span:nth-child(1) {
  top: 27%;
  background: var(--brand-blue);
  transform: rotate(31deg);
}

.route-art-metro span:nth-child(2) {
  top: 52%;
  background: var(--brand-red);
  transform: rotate(-22deg);
}

.route-art-metro span:nth-child(3) {
  top: 76%;
  background: var(--brand-yellow);
  transform: rotate(-58deg);
}

.route-art-metro span:nth-child(n+4) {
  width: 2rem;
  height: 2rem;
  border: 0.42rem solid var(--white);
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 0.18rem currentColor;
  color: var(--brand-blue);
}

.route-art-metro span:nth-child(4) {
  top: 25%;
  left: 28%;
}

.route-art-metro span:nth-child(5) {
  top: 51%;
  right: 18%;
  color: var(--brand-red);
  background: var(--brand-red);
}

.route-art-metro span:nth-child(6) {
  bottom: 16%;
  left: 46%;
  color: #d79b00;
  background: var(--brand-yellow);
}

.route-map {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  overflow: visible;
}

.route-map .route-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-map .route-blue {
  color: var(--brand-blue);
}

.route-map .route-red {
  color: var(--brand-red);
}

.route-map .route-yellow {
  color: var(--brand-yellow);
}

.route-map .route-stop {
  r: 6px;
  fill: var(--white);
  stroke: currentColor;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.route-map .route-transfer {
  r: 12px;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.route-map .route-transfer-core {
  r: 4px;
  fill: var(--brand-yellow);
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.route-art-network-branch .route-map, .route-art-network-grid .route-map {
  inset: 2%;
  width: 96%;
  height: 96%;
}

.service-shortcuts, .assistant-panel {
  position: relative;
  margin-top: -2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 59, 112, 0.12);
}

.assistant-panel {
  margin-top: 1.5rem;
}

.assistant-panel h2, .content-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input, select, textarea {
  min-height: 46px;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8b9aa4;
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.nav-page-shell {
  padding-top: 0;
}

.nav-page-hero {
  overflow: hidden;
  border: 0;
}

.nav-page-hero-content {
  display: flex;
  min-height: clamp(18rem, 38vw, 25rem);
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.nav-page-hero-fahrgastservice {
  background: linear-gradient(118deg, #eef5f7 0 67%, #fff6d5 67%);
}

.nav-page-hero-karriere {
  background: linear-gradient(147deg, #fff6d5 0 31%, #eef5f7 31%);
}

.nav-page-hero-faq {
  background: linear-gradient(64deg, #eef5f7 0 63%, #fff6d5 63%);
}

.nav-page-hero-fundsachen {
  background: linear-gradient(161deg, #fff6d5 0 28%, #eef5f7 28%);
}

.nav-page-hero-feedback {
  background: linear-gradient(103deg, #eef5f7 0 74%, #fff6d5 74%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  margin: 1.5rem auto 0;
}

.card-grid--numbered {
  padding: 0;
  list-style: none;
  counter-reset: guidance;
}

.numbered-guidance__item {
  position: relative;
  min-height: 9rem;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem 1.25rem 1.25rem 4.75rem;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 650;
  line-height: 1.45;
  isolation: isolate;
  counter-increment: guidance;
}

.numbered-guidance__item::before {
  content: counter(guidance, decimal);
  position: absolute;
  top: 50%;
  left: 0.45rem;
  z-index: -1;
  transform: translateY(-50%);
  color: rgba(28, 67, 135, 0.1);
  font-size: clamp(5.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.09em;
}

.card-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 48rem;
}

.card-grid:has(> :nth-child(3):last-child),
.card-grid:has(> :nth-child(5):last-child),
.card-grid:has(> :nth-child(6):last-child),
.card-grid:has(> :nth-child(9):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid:has(> :nth-child(5):last-child),
.card-grid:has(> :nth-child(6):last-child),
.card-grid:has(> :nth-child(9):last-child) {
  max-width: 62rem;
}

.card-grid:has(> :nth-child(4):last-child),
.card-grid:has(> :nth-child(7):last-child),
.card-grid:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef5f7, #fff6d5);
}
.contact-panel__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-panel__item {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
}
.contact-panel__item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.contact-panel__item p {
  margin: 0;
  color: var(--muted);
}
.contact-panel__phone {
  display: inline-block;
  color: var(--brand-blue);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
}
.contact-panel__actions {
  display: flex;
  min-width: min(100%, 15rem);
  flex-direction: column;
  gap: 0.75rem;
}

#career-cta {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef5f7, #fff6d5);
}

#career-cta h2 {
  max-width: 18ch;
  margin-top: 0;
}

#career-cta .lead-copy {
  max-width: 60ch;
}

.career-page .page-hero h1 {
  max-width: 13ch;
}

.career-page .block-text {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.career-page .block-text .lead-copy {
  margin-inline: auto;
}

.career-jobs {
  margin-block: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: 1rem;
  background: var(--surface);
}

.career-jobs > h2, .career-jobs > .eyebrow {
  text-align: center;
}

.career-jobs .card {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.career-jobs .card:hover {
  border-color: #91a0aa;
  color: var(--ink);
}

.career-page .block-cards {
  border-bottom: 0;
}

.career-page .block-cards > h2, .career-page .block-cards > .lead-copy,
.career-page .block-steps > h2, .career-page .block-steps > .lead-copy {
  margin-inline: auto;
  text-align: center;
}

.career-page .block-steps {
  max-width: 54rem;
  margin-inline: auto;
}

.career-page .block-steps .steps {
  margin-inline: auto;
}

.career-page .block-faq {
  max-width: 54rem;
  margin-inline: auto;
}

.career-page .block-cta {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef5f7, #fff6d5);
  text-align: center;
}

.career-page .block-cta .button-row {
  justify-content: center;
}

.faq-list {
  margin: 1rem 0;
}

.faq-list .collapse {
  border-radius: 0;
}

.faq-list .collapse-title {
  min-height: 0;
  padding: 0.75rem 2.5rem 0.75rem 0;
}

.faq-list .collapse-content {
  padding-inline: 0;
}

.faq-list .collapse[open] > .collapse-content {
  padding-bottom: 0.75rem;
}

iframe {
  display: block;
  overflow: hidden;
}

.block-form {
  padding-block: clamp(1rem, 2.5vw, 2rem);
}

.embed-shell iframe {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--white);
}

:root[data-theme=sabtours-public] footer a {
  color: #f2f6f8;
}

:root[data-theme=sabtours-public] footer a:hover {
  color: var(--brand-yellow);
}

@media (prefers-reduced-motion: reduce) {
  a, button, summary {
    transition: none;
  }
}
@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: flex;
    position: absolute;
    inset: 4.5rem 0 auto;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100%);
    transform: translateY(-0.35rem);
    pointer-events: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: clip-path 0.18s ease-out, opacity 0.14s ease-out, transform 0.18s ease-out, visibility 0s linear 0.18s;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .route-art {
    min-height: 10rem;
  }
  .route-art-sablinien-svg {
    width: calc(100% + 4rem);
    margin-left: -2rem;
  }
  .card-grid:has(> :nth-child(n+2):nth-child(-n+9):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .contact-panel__actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .card-grid:has(> :nth-child(n+2):nth-child(-n+9):last-child) {
    grid-template-columns: 1fr;
  }
  .contact-panel__details {
    grid-template-columns: 1fr;
  }
  .contact-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-grid {
    padding-block: 3rem;
  }
  .route-art {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .nav-links {
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
