/**
 * Standorte & Liefergebiete + Bayern.
 */

body.studio-body main#studio-main.studio-main.idm-standorte-main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* —— Hero —— */
.idm-standorte-hero.idm-page-hero--machine .idm-page-hero__img,
.idm-bayern-hero.idm-page-hero--machine .idm-page-hero__img {
  object-position: center 42%;
}

.idm-standorte-hero.idm-page-hero--machine .idm-page-hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(1, 22, 39, 0.78) 0%,
      rgba(1, 22, 39, 0.48) 34%,
      rgba(1, 22, 39, 0.22) 62%,
      rgba(1, 22, 39, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 22, 39, 0.28) 0%,
      transparent 38%,
      rgba(1, 22, 39, 0.72) 100%
    );
}

/* Flag hero is brighter — keep text readable on blue/white diamonds. */
.idm-bayern-hero.idm-page-hero--machine .idm-page-hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(1, 22, 39, 0.82) 0%,
      rgba(1, 22, 39, 0.62) 38%,
      rgba(1, 22, 39, 0.38) 68%,
      rgba(1, 22, 39, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 22, 39, 0.42) 0%,
      rgba(1, 22, 39, 0.22) 40%,
      rgba(1, 22, 39, 0.82) 100%
    );
}

.idm-standorte-hero__lead {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.idm-standorte-section-title {
  margin: 0 0 1rem;
  max-width: 34ch;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-standorte-lead,
.idm-standorte-intro__text,
.idm-bayern-intro__text {
  margin: 0 0 1rem;
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-standorte-standort,
.idm-standorte-regions,
.idm-bayern-intro,
.idm-bayern-example,
.idm-bayern-machines,
.idm-bayern-spectrum,
.idm-bayern-quality,
.idm-bayern-logistics,
.idm-bayern-materials,
.idm-bayern-model,
.idm-bayern-finish,
.idm-bayern-faq {
  padding-block: clamp(3rem, 7vw, 5rem);
}

/* Intro uses Stuttgart intro block (.idm-stg-intro) — keep one background. */
.idm-standorte-intro.idm-stg-intro {
  background: #f0f2f4;
}

.idm-standorte-standort {
  background: #fff;
}

.idm-standorte-regions,
.idm-bayern-intro,
.idm-bayern-spectrum,
.idm-bayern-logistics,
.idm-bayern-model {
  background: #f0f2f4;
}

.idm-standorte-standort__eyebrow {
  margin-bottom: 0.85rem;
}

/* —— Standort card —— */
.idm-standorte-standort__card {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
  margin: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid #d7dde3;
  border-radius: 0.35rem;
  background: #fff;
  font-style: normal;
  line-height: 1.55;
  color: var(--studio-text-strong, #011627);
  box-shadow: 0 8px 22px rgba(1, 22, 39, 0.04);
}

.idm-standorte-standort__name {
  font-size: 1.08rem;
  font-weight: 750;
}

.idm-standorte-standort__addr {
  margin: 0;
  color: var(--studio-muted, #4a5560);
}

.idm-standorte-standort__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

.idm-standorte-standort__card a {
  color: #0b5fff;
  text-decoration: none;
  font-weight: 600;
}

.idm-standorte-standort__card a:hover,
.idm-standorte-standort__card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.idm-standorte-standort__map {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  font-size: 0.92rem;
}

/* —— Liefergebiete: one clear composition per region —— */
.idm-standorte-regions {
  padding-block: clamp(4rem, 8.5vw, 6.25rem);
}

.idm-standorte-regions__header {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.idm-standorte-regions__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-standorte-regions__lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-standorte-regions__list {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.idm-standorte-feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 0.35rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .idm-standorte-feature {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.idm-standorte-feature__media {
  margin: 0;
  min-height: 16rem;
  background: #011627;
  overflow: hidden;
}

@media (min-width: 900px) {
  .idm-standorte-feature__media {
    min-height: 100%;
  }
}

.idm-standorte-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.idm-standorte-feature:hover .idm-standorte-feature__media img {
  transform: scale(1.03);
}

.idm-standorte-feature__copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.35rem, 3.5vw, 2.35rem);
}

.idm-standorte-feature__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-standorte-feature__text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-standorte-feature__places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.15rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid #e2e5e9;
}

.idm-standorte-feature__places li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--studio-text-strong, #011627);
}

.idm-standorte-feature__places li::before {
  content: "";
  width: 0.75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--studio-accent, #c10807);
}

.idm-standorte-feature__action {
  margin: 0.35rem 0 0;
}

.idm-standorte-regions__note {
  display: grid;
  gap: 1rem 2.5rem;
  align-items: end;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  padding: clamp(1.25rem, 2.8vw, 1.65rem) 0 0;
  border: 0;
  border-top: 1px solid #d7dde3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 820px) {
  .idm-standorte-regions__note {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.idm-standorte-regions__note-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.idm-standorte-regions__note-copy .idm-stg-region__eyebrow {
  margin: 0;
}

.idm-standorte-regions__note-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--studio-text-strong, #011627);
}

.idm-standorte-regions__note-text {
  margin: 0;
  max-width: 44rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-standorte-regions__note-action {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  justify-items: start;
}

@media (min-width: 820px) {
  .idm-standorte-regions__note-action {
    justify-items: end;
    text-align: right;
  }
}

.idm-standorte-regions__note-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--studio-accent, #c10807);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.idm-standorte-regions__note-link:hover,
.idm-standorte-regions__note-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
}

.idm-standorte-regions__note-mail {
  color: var(--studio-text-strong, #011627);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.idm-standorte-regions__note-mail:hover,
.idm-standorte-regions__note-mail:focus-visible {
  color: var(--studio-accent, #c10807);
  outline: none;
}

.idm-standorte-standort__route {
  margin: 1.35rem 0 0;
}

/* —— Bayern example —— */
.idm-bayern-example__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .idm-bayern-example__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

.idm-bayern-example__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #e8ecef;
  box-shadow: 0 10px 28px rgba(1, 22, 39, 0.08);
}

.idm-bayern-example__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— Tables —— */
.idm-standorte-table-scroll {
  overflow-x: auto;
  margin: 0 0 1.15rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.35rem;
  border: 1px solid #d7dde3;
  background: #fff;
}

.idm-standorte-table-scroll .idm-standorte-table {
  border: 0;
  margin: 0;
}

.idm-standorte-table {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d7dde3;
}

.idm-standorte-table th,
.idm-standorte-table td {
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid #e4e8ec;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.45;
}

.idm-standorte-table thead th {
  background: #eef2f5;
  color: var(--studio-text-strong, #011627);
  font-weight: 700;
  white-space: nowrap;
}

.idm-standorte-table tbody th {
  width: 34%;
  min-width: 8.5rem;
  color: var(--studio-text-strong, #011627);
  font-weight: 650;
  background: #f8fafb;
}

.idm-standorte-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.idm-standorte-table tbody tr:last-child th,
.idm-standorte-table tbody tr:last-child td {
  border-bottom: 0;
}

.idm-standorte-table--grid tbody th {
  width: auto;
  white-space: nowrap;
}

/* —— Lists / steps / FAQ —— */
.idm-bayern-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  max-width: 48rem;
  color: var(--studio-muted, #4a5560);
  line-height: 1.6;
}

.idm-bayern-list li + li {
  margin-top: 0.45rem;
}

.idm-bayern-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.idm-bayern-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d7dde3;
  border-radius: 0.35rem;
  background: #fff;
}

.idm-bayern-steps__num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #0b5fff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.idm-bayern-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-steps p {
  margin: 0;
  color: var(--studio-muted, #4a5560);
  line-height: 1.5;
}

.idm-bayern-faq__list {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}

.idm-bayern-faq__item {
  border: 1px solid #d7dde3;
  border-radius: 0.35rem;
  background: #fff;
}

.idm-bayern-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-faq__item summary::-webkit-details-marker {
  display: none;
}

.idm-bayern-faq__item summary:focus-visible {
  outline: 2px solid #0b5fff;
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.idm-bayern-faq__icon {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.idm-bayern-faq__item[open] .idm-bayern-faq__icon {
  transform: rotate(225deg);
}

.idm-bayern-faq__panel {
  padding: 0 1.1rem 1.05rem;
  color: var(--studio-muted, #4a5560);
  line-height: 1.6;
}

.idm-bayern-faq__panel p {
  margin: 0;
}

/* —— Bayern page rhythm —— */
.idm-bayern-intro__grid {
  display: grid;
  gap: 1.35rem  clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .idm-bayern-intro__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .idm-bayern-intro__aside {
    padding-top: 1.9rem;
  }
}

.idm-bayern-intro .idm-stg-intro__title,
.idm-bayern-intro .idm-stg-intro__lead,
.idm-bayern-intro .idm-stg-intro__body {
  max-width: none;
}

.idm-bayern-intro .idm-stg-intro__body + .idm-stg-intro__body {
  margin-top: 1rem;
}

.idm-bayern-intro .idm-stg-intro__facts {
  max-width: none;
  margin-top: clamp(1.75rem, 3.5vw, 2.35rem);
}

.idm-bayern-routes {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: #fff;
}

.idm-bayern-routes__header {
  display: block;
  max-width: 40rem;
  margin-bottom: 0.35rem;
}

.idm-bayern-routes__title,
.idm-bayern-plant__title,
.idm-bayern-quality__title,
.idm-bayern-finish__title {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-routes__title {
  max-width: 12em;
}

.idm-bayern-routes__lead,
.idm-bayern-plant__lead,
.idm-bayern-quality__lead,
.idm-bayern-finish__lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-bayern-routes__lead {
  margin: 0.9rem 0 0;
  color: var(--studio-text-strong, #011627);
  font-weight: 550;
}

.idm-bayern-routes__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: clamp(1.5rem, 3vw, 2.15rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e5e9;
}

@media (min-width: 860px) {
  .idm-bayern-routes__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.idm-bayern-routes__list li {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin: 0;
  padding: 1.05rem 1rem 1.1rem 0;
  border-bottom: 1px solid #e2e5e9;
}

@media (min-width: 860px) {
  .idm-bayern-routes__list li {
    padding: 1.2rem 1.35rem 0.15rem 0;
    border-bottom: 0;
  }

  .idm-bayern-routes__list li + li {
    padding-left: 1.35rem;
    border-left: 1px solid #e2e5e9;
  }
}

.idm-bayern-routes__city {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-routes__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--studio-muted, #4a5560);
}

.idm-bayern-routes__meta span:first-child {
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-routes__meta span + span::before {
  content: "·";
  margin-right: 0.85rem;
  color: #c5ccd3;
  font-weight: 700;
}

.idm-bayern-routes__freq {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--studio-muted, #4a5560);
}

.idm-bayern-routes__foot {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e5e9;
}

.idm-bayern-routes__cadence {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-routes__cadence::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 2px;
  margin-right: 0.55rem;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--studio-accent, #c10807);
}

.idm-bayern-routes__note,
.idm-bayern-plant__note {
  margin: 0;
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--studio-muted, #4a5560);
}

.idm-bayern-plant__note {
  margin-top: 1rem;
}

.idm-bayern-main .idm-bayern-example.idm-stg-series {
  background: #f0f2f4;
}

.idm-bayern-example .idm-stg-series__title {
  max-width: 16em;
}

.idm-bayern-example .idm-standorte-table-scroll {
  margin-bottom: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.idm-bayern-example .idm-standorte-table,
.idm-bayern-example .idm-standorte-table tbody th,
.idm-bayern-example .idm-standorte-table td {
  border-color: #e2e5e9;
  background: transparent;
}

.idm-bayern-example .idm-standorte-table {
  border: 0;
}

.idm-bayern-example .idm-standorte-table tbody th {
  width: 38%;
  padding-left: 0;
  font-weight: 750;
  background: transparent;
}

.idm-bayern-example .idm-standorte-table tbody tr:nth-child(even) td,
.idm-bayern-example .idm-standorte-table tbody tr:last-child th,
.idm-bayern-example .idm-standorte-table tbody tr:last-child td {
  background: transparent;
}

.idm-bayern-example .idm-stg-series__frame {
  aspect-ratio: 3 / 2;
  border-radius: 0.35rem;
  box-shadow: none;
  background: #e4e8ec;
}

.idm-bayern-example .idm-stg-series__frame::after {
  content: none;
}

.idm-bayern-example .idm-stg-series__frame img {
  object-position: center 42%;
}

@media (min-width: 992px) {
  .idm-bayern-example .idm-stg-series__grid--split {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  }

  .idm-bayern-example .idm-stg-series__media {
    position: relative;
    height: 100%;
    min-height: 0;
  }

  .idm-bayern-example .idm-stg-series__frame {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
  }
}

.idm-bayern-plant__after {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
  max-width: 46rem;
}

.idm-bayern-plant__after p {
  margin: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.08rem);
  line-height: 1.65;
  color: color-mix(in srgb, #011627 68%, #6a7380);
}

.idm-bayern-quality {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: #f0f2f4;
}

.idm-bayern-quality__header {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.idm-bayern-quality__title {
  max-width: 14em;
  margin-bottom: 0.85rem;
}

.idm-bayern-checks {
  display: grid;
  gap: 0.15rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .idm-bayern-checks {
    grid-template-columns: 1fr 1fr;
  }
}

.idm-bayern-checks li {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
  padding: 0.95rem 0;
  border-top: 1px solid #dde1e6;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-checks li::before {
  content: "";
  width: 0.85rem;
  height: 2px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--studio-accent, #c10807);
}

.idm-bayern-main .idm-bayern-model.idm-stg-process {
  background: #f0f2f4;
}

.idm-bayern-model .idm-stg-process__num {
  background: #f0f2f4;
}

.idm-bayern-model .idm-stg-process__title {
  max-width: 18em;
}

.idm-bayern-finish {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: #fff;
}

.idm-bayern-finish__header {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.idm-bayern-finish__title {
  max-width: 18em;
  margin-bottom: 0.85rem;
}

.idm-bayern-finish__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 860px) {
  .idm-bayern-finish__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.idm-bayern-finish__item {
  margin: 0;
  padding-top: 0.95rem;
  border-top: 2px solid var(--studio-accent, #c10807);
}

.idm-bayern-finish__name {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--studio-text-strong, #011627);
}

.idm-bayern-finish__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--studio-muted, #4a5560);
}

.idm-bayern-cta .idm-contact-cta__inner {
  max-width: 44rem;
  gap: 1.15rem;
}

.idm-bayern-cta__text {
  margin: 0;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Sticky CTA —— */
.idm-bayern-main {
  padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
}

.idm-bayern-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  justify-content: center;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0.94) 100%);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  visibility: visible;
}

.idm-bayern-sticky.is-hidden {
  opacity: 0;
  transform: translateY(0.85rem);
  visibility: hidden;
  pointer-events: none;
}

.idm-bayern-sticky__btn {
  pointer-events: auto;
  width: min(100%, 22rem);
  justify-content: center;
}


@media (min-width: 992px) {
  .idm-bayern-sticky {
    justify-content: flex-end;
    padding-right: clamp(1rem, 4vw, 2.5rem);
    background: transparent;
  }

  .idm-bayern-sticky__btn {
    width: auto;
  }

  .idm-bayern-main {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 719px) {
  .idm-standorte-hero__lead {
    font-size: 0.95rem;
  }

  .idm-standorte-table th,
  .idm-standorte-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .idm-bayern-steps li {
    grid-template-columns: auto 1fr;
    padding: 0.9rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idm-standorte-feature__media img,
  .idm-bayern-faq__icon,
  .idm-bayern-sticky,
  .idm-bayern-sticky__btn {
    transition: none;
  }

  .idm-standorte-feature:hover .idm-standorte-feature__media img {
    transform: none;
  }
}

/* Dark theme — Standorte & Bayern only */
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-intro,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-regions,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-example.idm-stg-series,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-quality,
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-faq,
html[data-bs-theme="dark"] .idm-bayern-main .idm-bayern-model.idm-stg-process {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-standort,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-routes,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-finish,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-plant.idm-auto-specs,
html[data-bs-theme="dark"] .idm-bayern-main .idm-auto-materials {
  background: var(--studio-surface, #121a24);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-intro__facts,
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-intro__facts li,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-feature__places,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-regions__note,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-routes__list,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-routes__list li,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-routes__foot,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-checks li,
html[data-bs-theme="dark"] .idm-standorte-main .idm-bayern-finish__item,
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-faq__list,
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-faq__item,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table th,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table td,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table-scroll,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-feature {
  border-color: var(--studio-border, #2a3441);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-feature {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table-scroll {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table thead th,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table tbody th,
html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table tbody tr:nth-child(even) td {
  background: #0f1620;
  color: var(--studio-text-strong, #fff);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-standorte-table td {
  color: var(--studio-text, #e8eaed);
}

html[data-bs-theme="dark"] .idm-bayern-example .idm-standorte-table,
html[data-bs-theme="dark"] .idm-bayern-example .idm-standorte-table tbody th,
html[data-bs-theme="dark"] .idm-bayern-example .idm-standorte-table td,
html[data-bs-theme="dark"] .idm-bayern-example .idm-standorte-table tbody tr:nth-child(even) td {
  background: transparent;
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-series__frame,
html[data-bs-theme="dark"] .idm-bayern-example .idm-stg-series__frame {
  background: #0a1018;
}

html[data-bs-theme="dark"] .idm-bayern-model .idm-stg-process__num {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-process__list li::before,
html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-process__list li::after {
  background: var(--studio-border, #2a3441);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-faq__item[open] {
  background: var(--studio-surface, #121a24);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-stg-faq__index {
  color: #8b949e;
}

html[data-bs-theme="dark"] .idm-bayern-plant__after p {
  color: var(--studio-muted, #9aa0a6);
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-auto-materials__item {
  background: #0f1620;
}

html[data-bs-theme="dark"] .idm-standorte-main .idm-auto-materials__item:hover {
  background: #161f2b;
}

html[data-bs-theme="dark"] .idm-bayern-sticky {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 24, 0.72) 42%, rgba(10, 16, 24, 0.94) 100%);
}

@media (min-width: 992px) {
  html[data-bs-theme="dark"] .idm-bayern-sticky {
    background: transparent;
  }
}
