/* Werkstattprofil v2 — weißes Sections-Layout */
.rm-wp-profile {
  background: #fff;
  color: #111;
}
.rm-wp-profile .common_space {
  background: #fff;
  padding: 48px 0;
}
.rm-wp-section__head {
  margin-bottom: 28px;
}
.rm-wp-section__head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}
.rm-wp-section__head p {
  margin: 0;
  color: #5b6775;
  font-size: 1rem;
  line-height: 1.5;
}
.rm-wp-muted {
  color: #90a1b9;
}

/* Hero: Banner immer sichtbar (Desktop + Mobile) */
.rm-wp-profile .rm-wp-hero.hero_fullwidth_section {
  background: #fff;
  padding-bottom: 0 !important; /* kein Extra-Abstand vor Siegel */
}
.rm-wp-profile .rm-wp-hero .hero_fullwidth_image {
  border-radius: 0;
  position: relative;
  height: var(--hero-height, 500px);
  max-height: var(--hero-height, 500px);
  overflow: hidden;
}
.rm-wp-profile .rm-wp-hero .hero_fullwidth_image > img.rm-wp-hero__img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-image-position, center center);
}
/* Textbox ≠ Bannerbreite; darf größer als bisher (lange Firmennamen) */
.rm-wp-profile .rm-wp-hero__box.hero_text_box,
.rm-wp-profile .rm-wp-hero__box {
  max-width: min(960px, 100%);
}
.rm-wp-profile .rm-wp-hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
  border: 1px solid #e8edf3;
}
.rm-wp-profile .rm-wp-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rm-wp-profile .rm-wp-hero .hero_text_box h1,
.rm-wp-profile .rm-wp-hero h1 {
  font-size: 2.75rem !important; /* ~44px */
  margin: 0 0 14px !important;
  line-height: 1.12 !important;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
}
.rm-wp-profile .rm-wp-hero__rating {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.rm-wp-profile .rm-wp-hero__stars {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.rm-wp-profile .rm-wp-hero__stars img {
  width: 26px;
  height: 26px;
  display: block;
}
.rm-wp-profile .rm-wp-hero__rating-text {
  font-weight: 700;
  font-size: 1.35rem !important; /* ~22px */
  color: #111;
  white-space: nowrap;
}
.rm-wp-profile .rm-wp-hero__rating-count {
  font-weight: 500;
  color: #5b6775;
}
/* Pin + Straße + PLZ/Ort in einer Zeile */
.rm-wp-profile .rm-wp-hero__address {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px;
  margin: 0 !important;
  color: #333;
  font-size: 1.35rem !important; /* ~22px */
  line-height: 1.3 !important;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.rm-wp-profile .rm-wp-hero__address img {
  width: 22px;
  height: 22px;
  margin-top: 0 !important;
  flex-shrink: 0;
}
.rm-wp-profile .rm-wp-hero__address span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rm-wp-profile .rm-wp-hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.rm-wp-profile .rm-wp-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
  font-size: 1.25rem; /* ~20px */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rm-wp-profile .rm-wp-hero__btn--primary {
  background: #8ab933;
  color: #fff;
  border: 2px solid #8ab933;
}
.rm-wp-profile .rm-wp-hero__btn--primary:hover,
.rm-wp-profile .rm-wp-hero__btn--primary:focus {
  background: #7aa42c;
  border-color: #7aa42c;
  color: #fff;
}
.rm-wp-profile .rm-wp-hero__btn--outline {
  background: #fff;
  color: #8ab933;
  border: 2px solid #8ab933;
}
.rm-wp-profile .rm-wp-hero__btn--outline:hover,
.rm-wp-profile .rm-wp-hero__btn--outline:focus {
  background: #8ab933;
  color: #fff;
  border-color: #8ab933;
}
#rm-wp-config,
#rm-wp-standort {
  scroll-margin-top: 96px;
}

/* Mobile: Banner sichtbar lassen (sections.css blendet Standard-Hero-Bilder aus) */
@media (max-width: 768px) {
  .rm-wp-profile .rm-wp-hero .hero_fullwidth_image {
    height: 180px !important;
    max-height: 180px !important;
    overflow: hidden !important;
  }
  .rm-wp-profile .rm-wp-hero .hero_fullwidth_image > img.rm-wp-hero__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .rm-wp-profile .rm-wp-hero .hero_fullwidth_content {
    position: relative !important;
    inset: auto !important;
    padding: 20px 16px 28px;
    color: #000 !important;
  }
  .rm-wp-profile .rm-wp-hero .hero_text_box {
    background: transparent !important;
    max-width: 100%;
    padding: 0;
  }
  .rm-wp-profile .rm-wp-hero__logo {
    width: 80px;
    height: 80px;
  }
  .rm-wp-profile .rm-wp-hero .hero_text_box h1,
  .rm-wp-profile .rm-wp-hero h1 {
    font-size: 2.125rem !important; /* ~34px */
  }
  .rm-wp-profile .rm-wp-hero__rating-text,
  .rm-wp-profile .rm-wp-hero__address {
    font-size: 1.2rem !important;
  }
  .rm-wp-profile .rm-wp-hero__stars img {
    width: 22px;
    height: 22px;
  }
  .rm-wp-profile .rm-wp-hero__address img {
    width: 20px;
    height: 20px;
  }
}

/* Siegel — näher an den Hero ziehen */
.rm-wp-profile .rm-wp-seal.common_space {
  padding-top: 16px;
  padding-bottom: 40px;
}
.rm-wp-seal__panel {
  border: 1px solid #e3ecd4;
  background: linear-gradient(180deg, #f7fbf0 0%, #fff 48%);
  border-radius: 20px;
  padding: 28px;
}
.rm-wp-seal__head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.rm-wp-seal__badge {
  flex: 0 0 auto;
}
.rm-wp-seal__badge img {
  width: 140px;
  height: 140px;
  display: block;
}
.rm-wp-seal__meta {
  flex: 1 1 auto;
  min-width: 0;
}
.rm-wp-seal__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-bottom: 12px;
}
.rm-wp-seal__heading h2 {
  margin: 0;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.rm-wp-seal__intro {
  margin: 0 0 12px;
  color: #666666;
  font-size: 16px;
  line-height: 1.5;
}
.rm-wp-seal__facts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  font-size: 16px;
  color: #475569;
}
.rm-wp-seal__valid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d720a;
  font-weight: 600;
  font-size: 16px;
}
.rm-wp-seal__valid img {
  width: 18px;
  height: 18px;
}
.rm-wp-seal__more {
  font-size: 16px;
  color: #4d720a;
  text-decoration: underline;
}
.rm-wp-seal__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.rm-wp-seal__point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #eef2e6;
  border-radius: 16px;
}
.rm-wp-seal__point > img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.rm-wp-seal__point h3 {
  margin: 0 0 8px;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}
.rm-wp-seal__point p {
  margin: 0;
  font-size: 16px;
  color: #666666;
  line-height: 1.5;
}
.rm-wp-seal__mfg {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8edf3;
}
.rm-wp-seal__mfg h3 {
  margin: 0 0 16px;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.rm-wp-seal__mfg ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.rm-wp-seal__mfg li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #333;
}
.rm-wp-seal__mfg img {
  height: 40px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .rm-wp-seal__panel {
    padding: 20px 16px;
  }
  .rm-wp-seal__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "badge facts"
      "title title"
      "intro intro"
      "more more";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
    margin-bottom: 20px;
  }
  .rm-wp-seal__badge {
    grid-area: badge;
    align-self: center;
  }
  .rm-wp-seal__badge img {
    width: 72px;
    height: 72px;
  }
  .rm-wp-seal__meta,
  .rm-wp-seal__heading {
    display: contents;
  }
  .rm-wp-seal__heading h2 {
    grid-area: title;
    margin: 4px 0 0;
    font-size: 18px;
  }
  .rm-wp-seal__intro {
    grid-area: intro;
    margin: 0;
    font-size: 15px;
  }
  .rm-wp-seal__facts {
    grid-area: facts;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    align-self: center;
  }
  .rm-wp-seal__valid {
    font-size: 14px;
  }
  .rm-wp-seal__more {
    grid-area: more;
    font-size: 15px;
  }
  .rm-wp-seal__points {
    grid-template-columns: 1fr;
  }
}

/* Konfigurator: Panel/Überschrift wie „Über die Werkstatt“, Inhalt unverändert */
.rm-wp-config-section {
  padding-bottom: 10px !important;
  background: #fff;
}
/* Ohne „Geprüfte Werkstatt“: Konfigurator folgt direkt auf Hero → mehr Abstand */
.rm-wp-profile .rm-wp-hero + .rm-wp-config-section {
  padding-top: 40px;
}
.rm-wp-config-section .third_inner_left_section {
  margin-bottom: 0;
}
.rm-wp-config-section .slider_title,
.rm-wp-config-section .third_inner_left_section h2 {
  margin: 0;
  font-family: 'OpenSans-Bold', 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.rm-wp-config__body {
  /* wie Standort/Galerie: Abstand Titel → Inhalt (~27px bei „Über die Werkstatt“) */
  padding-top: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Global: #rm-configurator3 hat width:1200px — im Panel auf 100% begrenzen */
.rm-wp-config-section .rm-wp-config__panel {
  overflow: visible; /* Dropdowns dürfen raus */
  border: 2px solid #6ea514 !important; /* Markengrün – „Reparaturpreis prüfen“ hervorheben */
  box-shadow: 0 4px 18px rgba(110, 165, 20, 0.12);
}
.rm-wp-config-section #rm-configurator3,
.rm-wp-config-section .rm-configurator-root--horizontal-plain {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 24px 20px !important;
}
.rm-wp-config-section #rm-configurator3 .configurator-fields,
.rm-wp-config-section .rm-configurator-root--horizontal-plain .configurator-fields {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
.rm-wp-config-section #rm-configurator3 .configurator-fields > div,
.rm-wp-config-section .rm-configurator-root--horizontal-plain .configurator-fields > div {
  min-width: 0;
}

/* Legacy About / Standort / Galerie: Styles aus werkstattprofil.css + shopprofil.css */
.rm-wp-profile .fifth_section,
.rm-wp-profile .sixth_section {
  background: #fff;
}

/* Galerie: CSS-Carousel mit Peek (4. Bild halb sichtbar), ohne Owl */
.rm-wp-profile .gallery-fallback,
.rm-wp-profile .gallery-peek {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 20px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rm-wp-profile .gallery-fallback::-webkit-scrollbar,
.rm-wp-profile .gallery-peek::-webkit-scrollbar {
  display: none;
}
.rm-wp-profile .gallery-fallback .gallery-item,
.rm-wp-profile .gallery-peek .gallery-item {
  flex: 0 0 calc((100% - 48px) / 3.2);
  width: calc((100% - 48px) / 3.2);
  max-width: none;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
}
.rm-wp-profile .gallery-fallback .gallery-item img,
.rm-wp-profile .gallery-peek .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
@media (max-width: 991px) {
  .rm-wp-profile .gallery-fallback .gallery-item,
  .rm-wp-profile .gallery-peek .gallery-item {
    flex-basis: calc((100% - 16px) / 2.2);
    width: calc((100% - 16px) / 2.2);
    height: 240px;
  }
}
@media (max-width: 575px) {
  .rm-wp-profile .gallery-fallback .gallery-item,
  .rm-wp-profile .gallery-peek .gallery-item {
    flex-basis: 85%;
    width: 85%;
    height: 220px;
  }
}

/* Legal: direkt unter Adresse, gleiche Schriftgröße wie Kontaktzeile */
.rm-wp-profile .fifth_section .rm-wp-legal {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1.4;
  width: auto;
  max-width: none;
}
.rm-wp-profile a.rm-wp-legal-link {
  display: inline !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: #475569 !important;
  font-size: 16px !important;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}
.rm-wp-profile a.rm-wp-legal-link:hover {
  color: #0f172a !important;
}
