:root {
  --brand-orange: #e30614;
  --brand-orange-dark: #e30614;
  --surface-page: #ffffff;
  --surface-card: #f7f7f8;
  --text-main: #0e1013;
  --text-muted: #5b5f67;
  --text-soft: #9ca1aa;
  --nav-bg: #050608;
  --line: rgba(227, 6, 20, 0.24);
  --line-strong: rgba(227, 6, 20, 0.42);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1260px;
  --header-height: 78px;
  --shadow-soft: 0 18px 40px rgba(16, 18, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 106.25%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface-page);
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--surface-page);
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-md);
}

[hidden] {
  display: none !important;
}

main {
  overflow: clip;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 34px;
  left: 0;
  width: 100%;
  z-index: 80;
  pointer-events: none;
}

.header-inner {
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 12px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.94);
  box-shadow: 0 16px 34px rgba(8, 10, 13, 0.34);
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.brand-text {
  display: inline-block;
  white-space: nowrap;
  color: #e30614;
  font-size: clamp(0.98rem, 1.28vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-logo {
  height: 50px;
  width: auto;
  border-radius: 0;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0.44rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f6;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  align-items: center;
  justify-content: center;
}

.menu-toggle-icon {
  display: inline-block;
  font-size: 1.18rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  margin-left: 1.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  color: rgba(244, 245, 248, 0.94);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  background: var(--brand-orange);
  color: #fff;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: auto;
}

@media (min-width: 861px) {
  .main-nav {
    position: relative;
    justify-content: center;
    padding-right: 112px;
  }

  .main-nav .nav-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 247, 250, 0.92);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
}

.social-icon-link svg rect,
.social-icon-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon-link svg path {
  fill: currentColor;
}

.nav-item.has-submenu > .nav-link::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.65rem;
  opacity: 0.8;
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 20;
  min-width: 312px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.submenu a {
  display: block;
  border-radius: 8px;
  color: rgba(235, 238, 244, 0.92);
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.42rem 0.5rem;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.home-ref-footer a:focus-visible,
.button:focus-visible,
.hero-main-cta:focus-visible,
.hero-arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  outline: none;
  border-bottom-color: #e30614 !important;
  box-shadow: inset 0 -1px 0 0 #e30614;
}

.page-home {
  padding-top: calc(var(--header-height) + 62px);
}

.hero-card {
  position: relative;
  min-height: min(84vh, 760px);
  border-radius: 18px;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(10, 12, 16, 0.8) 0%, rgba(8, 10, 14, 0.52) 42%, rgba(10, 12, 15, 0.34) 100%);
}

.hero-content,
.hero-main-cta,
.hero-summary {
  position: absolute;
  z-index: 2;
}

.hero-content {
  top: clamp(130px, 18vh, 184px);
  left: clamp(28px, 7vw, 145px);
  max-width: 620px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f4f5f6;
}

.hero-title span {
  color: var(--brand-orange);
}

.hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow {
  width: clamp(64px, 6.2vw, 86px);
  min-width: 64px;
  height: clamp(40px, 4vw, 50px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(9, 10, 13, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.36rem;
  font-weight: 500;
}

.hero-main-cta {
  left: clamp(24px, 5vw, 66px);
  bottom: clamp(22px, 5.5vh, 48px);
  border-radius: 999px;
  border: 1px solid #f4f5f6;
  background: rgba(249, 249, 251, 0.95);
  color: #e30614;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.66rem 1.2rem;
}

.hero-summary {
  right: clamp(24px, 5vw, 74px);
  bottom: clamp(26px, 5.5vh, 56px);
  width: min(420px, calc(100% - 58px));
  margin: 0;
  color: rgba(244, 246, 249, 0.87);
  font-size: 0.9rem;
  line-height: 1.6;
}

.section-shell {
  margin-top: 96px;
}

.kicker {
  margin: 0;
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #e30614 !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.kicker::before {
  content: none;
}

.kicker::after {
  content: none;
}

.section-title {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 14px 0 0;
  max-width: 920px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}

.pillar {
  border-left: 5px solid var(--brand-orange);
  padding-left: 16px;
}

.pillar h3 {
  margin: 0;
  font-size: 1.74rem;
  font-weight: 500;
}

.pillar p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.showcase-image {
  margin-top: 38px;
}

.showcase-image img {
  width: 100%;
  height: clamp(250px, 38vw, 430px);
  object-fit: cover;
  border-radius: 8px;
}

.inventory-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.vehicle-card {
  display: grid;
  gap: 12px;
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  border-radius: 8px;
}

.vehicle-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 500;
}

.vehicle-meta,
.vehicle-price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vehicle-price strong {
  color: #e30614;
  font-size: 1rem;
  font-weight: 600;
}

.color-dots {
  display: flex;
  gap: 6px;
}

.color-dots span {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid #7f8591;
}

.inventory-actions,
.section-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand-orange);
  color: #fff;
  min-height: 46px;
  padding: 0.74rem 1.42rem;
  font-size: 0.98rem;
  font-weight: 500;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.button:hover {
  background: var(--brand-orange);
  transform: none;
  box-shadow: none;
}

.button:focus-visible {
  background: var(--brand-orange);
  box-shadow: none;
}

.floating-contact-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.16rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(8, 11, 15, 0.24);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.floating-contact-button:hover,
.floating-contact-button:focus-visible {
  transform: translateY(-2px);
  background: var(--brand-orange);
}

.floating-contact-button:active {
  transform: translateY(0);
}

.deal-grid {
  margin-top: 110px;
  padding: 66px 64px;
  border: 1px solid #ebebee;
  border-radius: var(--radius-lg);
  background: #f6f6f7;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.deal-grid img {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  height: 470px;
  object-fit: cover;
  border-radius: 12px;
}

.deal-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.deal-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafb;
  color: var(--text-muted);
  padding: 0.56rem 0.8rem;
  font-size: 0.92rem;
  position: relative;
  padding-left: 1.24rem;
}

.deal-list li::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 0.98rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #e30614;
}

.service-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 186px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f7f8;
  padding: 24px 20px;
  text-align: center;
}

.service-icon {
  width: 66px;
  height: 46px;
  margin: 0 auto;
  border-radius: 10px;
  background: rgba(227, 6, 20, 0.12);
  color: var(--brand-orange);
  font-weight: 600;
  display: grid;
  place-items: center;
}

.service-card h3 {
  margin: 16px 0 0;
  font-size: 1.18rem;
  font-weight: 500;
}

.service-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafb;
  padding: 20px;
}

.summary-card h3 {
  margin: 12px 0 0;
  font-size: 1.18rem;
  font-weight: 500;
}

.summary-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.summary-card .button {
  margin-top: 14px;
}

.page-sub {
  padding-top: calc(var(--header-height) + 62px);
}

.sub-hero {
  min-height: clamp(340px, 54vh, 520px);
}

.sub-hero .hero-content {
  top: auto;
  bottom: 98px;
}

.sub-hero .hero-title {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
}

.sub-hero .hero-summary {
  font-size: 0.96rem;
}

.detail-section {
  margin-top: 56px;
  padding: 42px;
  border: 1px solid #e6e6ea;
  border-radius: 16px;
  background: #f8f8f9;
}

.detail-section .section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.95rem);
  margin-top: 24px;
}

.detail-section p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.detail-columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.detail-columns img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-flow {
  display: flow-root;
  margin-top: 18px;
}

.detail-flow-image {
  width: min(46%, 520px);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-flow-image-right {
  float: right;
  margin: 0 0 18px 26px;
}

.detail-flow-image-left {
  float: left;
  margin: 0 26px 18px 0;
}

.detail-flow-image-compact {
  width: min(33%, 360px);
}

#ueber-uns .detail-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
  column-gap: 14px;
  align-items: start;
}

#ueber-uns .detail-flow .detail-flow-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

#ueber-uns .detail-flow .detail-flow-main p:first-child {
  margin-top: 0;
}

#ueber-uns .ueber-uns-media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  margin: 0;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
}

#ueber-uns .ueber-uns-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#ueber-uns .ueber-uns-gallery-title {
  margin: 36px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #252a33;
}

#ueber-uns .ueber-uns-gallery {
  margin-top: 12px;
}

#ueber-uns .ueber-uns-gallery .section-gallery-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

#ueber-uns .ueber-uns-gallery .section-gallery-item img {
  height: clamp(170px, 18vw, 242px);
}

#ueber-uns .ueber-uns-gallery .section-gallery-item:nth-child(1) img {
  object-position: center 42%;
}

#ueber-uns .ueber-uns-gallery .section-gallery-item:nth-child(3) img {
  object-position: center 52%;
}

#ueber-uns .ueber-uns-gallery .section-gallery-item:nth-child(4) img {
  object-position: center 28%;
}

.detail-flow-image-larger {
  width: min(54%, 620px);
}

.detail-flow-image-compact.detail-flow-image-larger {
  width: min(44%, 500px);
}

.detail-flow .detail-list,
.detail-flow .contact-list,
.detail-flow .news-list {
  clear: both;
}

.detail-flow .list-intro {
  clear: both;
}

.detail-flow .below-image-start {
  clear: both;
  width: 100%;
}

#vorfuehrer-und-jahreswagen .detail-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  column-gap: clamp(6px, 1vw, 12px);
  row-gap: 14px;
  align-items: start;
  justify-items: stretch;
}

#vorfuehrer-und-jahreswagen .detail-flow .detail-flow-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  margin: 0;
  min-height: 0;
  justify-self: stretch;
  align-self: stretch;
  overflow: hidden;
}

#vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#vorfuehrer-und-jahreswagen .detail-flow > .list-intro,
#vorfuehrer-und-jahreswagen .detail-flow > .detail-list,
#vorfuehrer-und-jahreswagen .detail-flow > p:not(.list-intro) {
  grid-column: 1 / -1;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#gebrauchtwagen-verkauf .detail-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  column-gap: clamp(6px, 1vw, 12px);
  row-gap: 14px;
  align-items: start;
  justify-items: stretch;
}

#gebrauchtwagen-verkauf .detail-flow .detail-flow-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  margin: 0;
  min-height: 0;
  justify-self: stretch;
  align-self: stretch;
  overflow: hidden;
}

#gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.detail-flow > .detail-flow-image + p {
  margin-top: 0;
}

#gebrauchtwagen-verkauf .detail-flow .detail-flow-main p:first-child {
  margin-top: 0;
}

#gebrauchtwagen-verkauf .detail-flow > .list-intro,
#gebrauchtwagen-verkauf .detail-flow > .detail-list,
#gebrauchtwagen-verkauf .detail-flow > p:not(.list-intro) {
  grid-column: 1 / -1;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#vorfuehrer-und-jahreswagen .detail-flow-main p:first-child {
  margin-top: 0;
}

.detail-list,
.contact-list,
.news-list {
  margin: 16px 0 0;
  padding-left: 1.15rem;
  list-style-position: outside;
}

.detail-list {
  list-style: disc;
}

.contact-list,
.news-list {
  list-style: disc;
}

.detail-list li,
.contact-list li,
.news-list li {
  margin: 0.42rem 0;
  color: var(--text-muted);
}

.detail-list li {
  padding-left: 0;
}

.detail-list li::before {
  content: none;
}

.detail-list li::marker {
  color: #e30614;
}

.contact-list li::marker,
.news-list li::marker {
  color: #e30614;
}

.team-list {
  margin-top: 22px;
  display: grid;
  gap: 22px;
}

.team-entry {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.team-entry h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.team-entry .role {
  margin: 4px 0 0;
  color: #e30614;
  font-size: 0.88rem;
  font-weight: 600;
}

.team-entry p {
  margin: 8px 0 0;
}

.service-abc {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.service-abc li {
  border: 0;
  border-radius: 0;
  padding: 0.2rem 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 0.92rem;
}

.service-abc li::before {
  content: none;
}

.service-abc li::first-letter {
  color: #e30614;
  font-weight: 700;
}

.section-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.section-gallery.section-gallery-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.section-gallery.section-gallery-single .section-gallery-item img {
  height: clamp(260px, 34vw, 460px);
}

.section-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(118, 124, 136, 0.24);
  background: #f1f1f3;
}

.section-gallery-item img {
  width: 100%;
  height: clamp(190px, 20vw, 246px);
  object-fit: cover;
  border-radius: 0;
}

#garantievertraege-servicevertraege .section-gallery-item:nth-child(1) img {
  object-position: center 34.5%;
}

#garantievertraege-servicevertraege .section-gallery-item:nth-child(2) img {
  object-position: center 38%;
}

#versicherungsabwicklung .section-gallery-item:nth-child(2) img {
  object-position: center 31%;
}

#versicherungsabwicklung .section-gallery-item:nth-child(3) img {
  object-position: center 58%;
}

#gebrauchtwagen-ankauf .section-gallery-item:nth-child(1) img {
  object-position: center 52%;
}

#gebrauchtwagen-ankauf .section-gallery-item:nth-child(2) img {
  object-position: center 44%;
}

#gebrauchtwagen-ankauf .section-gallery-item:nth-child(3) img {
  object-position: center 42%;
}

#ankaufueberpruefung-eurotax-bewertung .section-gallery-item:nth-child(3) img {
  object-position: center 20%;
}

.news-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfd;
  padding: 18px;
}

.news-card h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 500;
}

.news-card p {
  margin: 9px 0 0;
}

.news-stream {
  margin-top: 24px;
  display: grid;
  gap: 0;
}

.news-entry {
  padding: 0 0 24px;
}

.news-entry + .news-entry {
  border-top: 0;
  padding-top: 24px;
}

.news-entry:last-child {
  padding-bottom: 0;
}

.news-entry h3 {
  margin: 0;
  font-size: clamp(1.26rem, 2vw, 1.7rem);
  font-weight: 500;
}

.news-entry-image {
  margin: 14px 0 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(118, 124, 136, 0.24);
  background: #f1f1f3;
}

.news-entry-image img {
  width: 100%;
  height: clamp(220px, 24vw, 360px);
  object-fit: cover;
  border-radius: 0;
}

.news-entry p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.contact-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-panel,
.contact-form,
.social-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfd;
  padding: 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 4px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.86rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d7d9df;
  background: #fff;
  font: inherit;
  color: var(--text-main);
  padding: 0.58rem 0.66rem;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

.form-status {
  display: none;
  border-radius: 9px;
  padding: 0.52rem 0.66rem;
  font-size: 0.84rem;
}

.form-status.ok {
  display: block;
  border: 1px solid #b8dfbf;
  background: #ebf7ee;
  color: #1b592c;
}

.form-status.error {
  display: block;
  border: 1px solid rgba(227, 6, 20, 0.24);
  background: rgba(227, 6, 20, 0.08);
  color: var(--brand-orange);
}

.social-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-fallback.active {
  display: block;
}

.map-section {
  width: 100vw;
  max-width: 100vw;
  margin: 74px calc(50% - 50vw) 0;
  border-top: 0;
  border-bottom: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 440px);
  border: 0;
}

.site-footer {
  margin-top: 96px;
  padding: 38px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 0 0;
  background: #040507;
  color: #d8dee6;
}

.footer-inner {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px;
  align-items: start;
}

.footer-top-center {
  text-align: center;
  margin: 0 0 16px;
}

.footer-top-center .footer-title,
.footer-top-center .footer-subtitle {
  text-align: center;
}

.footer-left {
  display: grid;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.footer-block {
  display: grid;
  gap: 8px;
}

.footer-heading {
  margin: 0;
  color: #e30614;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-title {
  margin: 0;
  color: #f2f4f8;
  font-size: 1.08rem;
  font-weight: 600;
}

.footer-subtitle {
  margin: 0;
  color: #d9dee7;
  font-size: 0.9rem;
}

.footer-address {
  margin: 0;
  font-style: normal;
  color: var(--footer-text-secondary, #afb5bf);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-address a {
  color: var(--footer-text-primary, #f2f4f8);
  text-decoration: none;
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--footer-text-primary, #f2f4f8);
  text-decoration: underline;
}

.footer-hours {
  margin-top: 8px;
  display: grid;
  gap: 3px;
}

.footer-hours-title {
  margin: 0;
  color: var(--footer-text-primary, #f2f4f8);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.footer-hours-day {
  margin: 0;
  color: var(--footer-text-primary, #f2f4f8);
  font-weight: 400;
}

.footer-hours-time {
  margin: 0;
  color: var(--footer-text-primary, #f2f4f8);
}

.footer-hours-time + .footer-hours-day {
  margin-top: 6px;
}

.footer-logo {
  height: 48px;
  width: auto;
  border-radius: 0;
  margin-bottom: 8px;
}

.footer-nav {
  margin: 0;
}

.footer-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-menu-nav .footer-link-list {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.footer-link-list li {
  margin: 0;
}

.footer-link-list a {
  color: var(--footer-text-primary, #f2f4f8);
  font-size: 0.84rem;
  line-height: 1.3;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: var(--footer-text-primary, #f2f4f8);
  text-decoration: underline;
}

.footer-legal-nav {
  margin-top: 0;
}

.footer-form-wrap {
  grid-column: 2;
  display: grid;
  gap: 10px;
}

.footer-form-note {
  margin: 0;
  color: var(--footer-text-secondary, #afb5bf);
  font-size: 0.78rem;
  line-height: 1.3;
}

.footer-form-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.footer-form-actions .button {
  flex: 0 0 auto;
}

.footer-form-actions .footer-form-note {
  margin-left: auto;
  text-align: right;
}

.footer-legal-corner {
  margin-top: 0;
  width: max-content;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  text-align: left;
  grid-column: 1;
  justify-self: start;
  align-self: end;
}

.footer-legal-corner a {
  color: var(--footer-text-primary, #f2f4f8);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-powered-by {
  color: var(--footer-text-primary, #f2f4f8);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-legal-corner a:hover,
.footer-legal-corner a:focus-visible {
  color: var(--footer-text-primary, #f2f4f8);
  text-decoration: underline;
}

.footer-contact-form {
  width: 100%;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.footer-contact-form .form-grid {
  margin-top: 2px;
}

.site-footer .footer-contact-form label,
.home-ref-footer .footer-contact-form label {
  color: var(--footer-text-secondary, #afb5bf);
}

.site-footer .footer-contact-form input,
.site-footer .footer-contact-form textarea,
.home-ref-footer .footer-contact-form input,
.home-ref-footer .footer-contact-form textarea {
  color: var(--footer-text-primary, #f2f4f8);
}

.site-footer .footer-contact-form input::placeholder,
.site-footer .footer-contact-form textarea::placeholder,
.home-ref-footer .footer-contact-form input::placeholder,
.home-ref-footer .footer-contact-form textarea::placeholder {
  color: var(--footer-text-secondary, #afb5bf);
}

.site-footer .footer-contact-form .button,
.home-ref-footer .footer-contact-form .button {
  width: fit-content;
  min-height: auto;
  padding: 0.62rem 1.16rem;
  font-size: 0.86rem;
}

.footer-contact-form::after {
  content: none;
}

.footer-honeypot {
  display: none !important;
}

.footer-meta {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}

.footer-meta p {
  margin: 0;
  color: #aeb5c0;
  font-size: 0.84rem;
}

.footer-meta-links {
  display: grid;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  width: 100%;
}

.footer-meta-links a {
  color: #afb5bf;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
}

.footer-meta-links a:hover,
.footer-meta-links a:focus-visible {
  color: #afb5bf;
  text-decoration: underline;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1260px) {
  .header-inner {
    width: min(var(--container), calc(100% - 64px));
  }

  .section-shell {
    margin-top: 84px;
  }

  .deal-grid {
    padding: 52px 44px;
    gap: 34px;
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, calc(100vw - 56px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(9, 11, 14, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    padding: 14px 10px 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .nav-item {
    width: 100%;
  }

  .nav-social {
    margin-left: 0;
    padding-top: 6px;
  }

  .main-nav .nav-social {
    position: static;
    transform: none;
    margin-left: 0;
  }

  .submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease, visibility 0.18s ease, margin 0.18s ease, padding 0.18s ease;
  }

  .nav-item.submenu-open > .submenu {
    margin: 0.12rem 0 0.3rem;
    padding: 0.1rem 0.2rem 0.2rem 0.74rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 520px;
  }

  .hero-card {
    min-height: 640px;
  }

  .hero-content {
    top: 132px;
    left: 30px;
    right: 30px;
  }

  .hero-summary {
    width: calc(100% - 60px);
    right: 30px;
    bottom: 88px;
  }

  .hero-main-cta {
    left: 30px;
  }

  .inventory-grid,
  .news-grid,
  .summary-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-grid,
  .detail-columns,
  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .detail-flow-image,
  .detail-flow-image-right,
  .detail-flow-image-left {
    float: none;
    width: 100%;
    margin: 0 0 14px;
  }

  #ueber-uns .detail-flow {
    display: flow-root;
  }

  #ueber-uns .ueber-uns-media {
    position: static;
    float: right;
    width: min(40%, 420px);
    max-width: 100%;
    margin: 0 0 14px 14px;
    min-height: 0;
    overflow: hidden;
  }

  #ueber-uns .ueber-uns-image {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  #vorfuehrer-und-jahreswagen .detail-flow {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-media {
    position: static;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin: 0 0 14px;
    min-height: 0;
    overflow: hidden;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-media {
    position: static;
    min-height: 0;
    height: auto;
  }

  .deal-grid img {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 14px;
  }

  .header-inner {
    width: calc(100% - 24px);
    padding: 10px 12px;
  }

  .brand-logo {
    height: 42px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .page-home,
  .page-sub {
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero-card {
    min-height: 560px;
    border-radius: 14px;
  }

  .hero-content {
    top: 120px;
    left: 18px;
    right: 18px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-title-row {
    display: flex;
  }

  .hero-main-cta {
    left: 18px;
    bottom: 18px;
    font-size: 0.82rem;
  }

  .hero-summary {
    left: 18px;
    right: 18px;
    bottom: 72px;
    width: auto;
    font-size: 0.82rem;
  }

  .section-shell {
    margin-top: 62px;
  }

  .section-title {
    font-size: clamp(1.72rem, 7.5vw, 2.6rem);
  }

  .inventory-grid,
  .news-grid,
  .summary-grid,
  .service-grid,
  .service-abc,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .deal-grid,
  .detail-section {
    padding: 24px 20px;
  }

  .site-footer {
    margin-top: 74px;
  }

  .footer-inner {
    width: calc(100% - 24px);
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

/* Home Reference Layout */
.page-home-reference {
  margin: 0;
  padding: 0;
  background: var(--surface-page);
  color: #101216;
  overflow-x: hidden;
}

.page-home-reference .site-header {
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 40;
  pointer-events: none;
}

.page-home-reference .header-inner {
  width: min(1320px, calc(100vw - 44px));
  margin: 0 auto;
  min-height: 72px;
  padding: 10px 16px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.page-home-reference .menu-toggle {
  display: none;
}

.page-home-reference .ref-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff;
  white-space: nowrap;
}

.page-home-reference .ref-brand .brand-text {
  color: #e30614;
}

.page-home-reference .ref-brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: #e30614;
  display: inline-block;
}

.page-home-reference .ref-brand-mark::before,
.page-home-reference .ref-brand-mark::after {
  content: "";
  position: absolute;
  background: #e30614;
  border-radius: 50%;
}

.page-home-reference .ref-brand-mark::before {
  width: 9px;
  height: 9px;
  right: -8px;
  top: 0;
}

.page-home-reference .ref-brand-mark::after {
  width: 9px;
  height: 9px;
  left: 0;
  bottom: -8px;
}

.page-home-reference .ref-brand-name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home-reference .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  margin-left: 14px;
}

.page-home-reference .nav-item {
  position: relative;
}

.page-home-reference .nav-link {
  min-height: 40px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: rgba(245, 246, 250, 0.95);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}

.page-home-reference .nav-link:hover,
.page-home-reference .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.page-home-reference .nav-link.nav-cta {
  margin-left: 8px;
  background: transparent;
  color: rgba(245, 246, 250, 0.95);
  padding-inline: 1rem;
  font-weight: 500;
}

.page-home-reference .nav-link.nav-cta:hover,
.page-home-reference .nav-link.nav-cta:focus-visible,
.page-home-reference .nav-link.nav-cta.active {
  background: rgba(255, 255, 255, 0.12);
}

.page-home-reference .nav-link.active {
  background: var(--brand-orange);
  color: #fff;
}

.page-home-reference .submenu {
  top: 100%;
  min-width: 300px;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 10, 13, 0.98);
  box-shadow: 0 14px 30px rgba(2, 3, 4, 0.45);
}

.page-home-reference .submenu a {
  font-size: 0.8rem;
  color: rgba(238, 241, 246, 0.95);
  padding: 0.42rem 0.5rem;
}

.page-home-reference .submenu a:hover,
.page-home-reference .submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.page-home-reference .home-ref-main {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 0;
}

.page-home-reference .home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  min-height: 100svh;
  height: 100svh;
  border-radius: 0;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-home-reference .home-hero.hero-image-home {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-017-web-(c)JohannesRadlwimmer.jpg");
  background-position: center 64%;
}

.page-home-reference .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(8, 11, 15, 0.82) 0%, rgba(9, 12, 16, 0.52) 44%, rgba(7, 10, 13, 0.24) 100%);
}

.page-home-reference .home-hero-content,
.page-home-reference .home-hero-cta,
.page-home-reference .home-hero-note {
  position: absolute;
  z-index: 2;
}

.page-home-reference .home-hero-content {
  left: clamp(28px, 7vw, 210px);
  top: clamp(150px, 26vh, 280px);
}

.page-home-reference .home-hero-content h1 {
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(2.4rem, 4.9vw, 5.1rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-home-reference .hero-second-line {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7f8fb;
  font-size: clamp(2.4rem, 4.9vw, 5.1rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-home-reference .hero-second-line .accent {
  color: #e30614;
}

.page-home-reference .hero-arrow {
  width: clamp(62px, 6vw, 90px);
  min-width: 62px;
  height: clamp(40px, 3.8vw, 50px);
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(7, 9, 12, 0.24);
  color: #ffffff;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home-reference .hero-arrow:focus-visible {
  transform: none;
  box-shadow: none;
}

.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
}

.tour-modal[hidden] {
  display: none;
}

.tour-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 12, 0.78);
}

.tour-modal-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050608;
}

.tour-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.68);
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.tour-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.tour-modal-open {
  overflow: hidden;
}

.page-home-reference .home-hero-cta {
  left: clamp(24px, 4.5vw, 92px);
  bottom: clamp(20px, 4.5vh, 44px);
  border-radius: 999px;
  border: 1px solid #f0f1f3;
  background: rgba(246, 246, 248, 0.96);
  color: #e30614;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.62rem 1.14rem;
}

.page-home-reference .home-hero-note {
  right: clamp(24px, 4.5vw, 88px);
  bottom: clamp(22px, 4.9vh, 48px);
  max-width: 380px;
  margin: 0;
  color: rgba(242, 245, 248, 0.86);
  font-size: 0.8rem;
  line-height: 1.6;
}

.page-home-reference .home-section {
  width: min(1110px, calc(100vw - 120px));
  margin: 94px auto 0;
}

.page-home-reference .kicker {
  display: inline-block;
  background: transparent;
  color: #e30614 !important;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

.page-home-reference .kicker.centered {
  margin-left: auto;
  margin-right: auto;
}

.page-home-reference .home-about-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.page-home-reference .home-about-head > .kicker {
  margin-bottom: 26px;
}

.page-home-reference .home-about h2,
.page-home-reference .home-inventory h2,
.page-home-reference .home-services h2,
.page-home-reference .home-deals h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home-reference .home-section .kicker + h2 {
  margin-top: 24px;
}

.page-home-reference .home-about .kicker + h2 {
  margin-top: 56px;
}

.page-home-reference .home-about p,
.page-home-reference .home-inventory p,
.page-home-reference .home-services p,
.page-home-reference .home-deals p {
  color: #5f636c;
}

.page-home-reference .home-about-head > p:not(.kicker) {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 0.97rem;
  line-height: 1.58;
}

.page-home-reference .home-about-head > p:not(.kicker) a {
  color: #e30614;
  font-weight: 500;
}

.page-home-reference .home-about-pillars {
  margin: 25px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}

.page-home-reference .home-about-pillars article {
  border-left: 2px solid rgba(227, 6, 20, 0.82);
  padding-left: 12px;
}

.page-home-reference .home-about-pillars h3 {
  margin: 0;
  font-size: 1.68rem;
  font-weight: 500;
}

.page-home-reference .home-about-pillars p {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.page-home-reference .home-about-pillars .home-about-link {
  margin-top: 14px;
}

.page-home-reference .home-about-pillars .home-about-link a {
  color: #e30614;
  font-size: var(--type-link);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.page-home-reference .home-about-pillars .home-about-link a:hover,
.page-home-reference .home-about-pillars .home-about-link a:focus-visible {
  text-decoration: underline;
}

.page-home-reference .home-about-image {
  margin: 36px 0 0;
}

.page-home-reference .home-about-image img {
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover;
  object-position: center 12%;
  border-radius: 8px;
}

.page-home-reference .centered {
  text-align: center;
}

.page-home-reference .inventory-subline {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 0.74rem;
  line-height: 1.42;
}

.page-home-reference .inventory-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home-reference .inventory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-home-reference .inventory-card img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  border-radius: 5px;
}

.page-home-reference .home-inventory .inventory-card:nth-child(2) img {
  object-position: center 32%;
}

.page-home-reference .inventory-card h3 {
  margin: 9px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.page-home-reference .inventory-card p {
  margin: 4px 0 0;
  font-size: 0.74rem;
}

.page-home-reference .inventory-card .color-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.page-home-reference .inventory-card .color-row span {
  font-size: 0.72rem;
  color: #5d626b;
}

.page-home-reference .inventory-card .color-dots {
  display: inline-flex;
  gap: 5px;
}

.page-home-reference .inventory-card .color-dots i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #767c88;
}

.page-home-reference .inventory-card .price {
  margin-top: auto;
  padding-top: 8px;
  color: #e30614;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-home-reference .button {
  border-radius: 999px;
  border: 1px solid transparent;
  background: #e30614;
  color: #fff;
  min-height: 46px;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.74rem 1.42rem;
}

.page-home-reference .button:hover,
.page-home-reference .button:focus-visible {
  background: #e30614;
}

.hero-main-cta,
.page-home-reference .home-hero-cta,
.hero-arrow,
.page-home-reference .hero-arrow {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-main-cta:focus-visible,
.page-home-reference .home-hero-cta:focus-visible,
.hero-arrow:focus-visible {
  transform: none;
  box-shadow: none;
}

.page-home-reference .section-actions {
  margin-top: 24px;
}

.page-home-reference .home-deals {
  width: min(1260px, calc(100vw - 24px));
  margin: 92px auto 0;
  border: 1px solid #e4e5e9;
  border-radius: 8px;
  background: #f6f6f7;
  padding: 58px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
}

.page-home-reference .deals-copy {
  margin: 0;
  text-align: left;
}

.page-home-reference .deals-copy > .kicker {
  margin: 0;
}

.page-home-reference .deals-copy > .kicker + h2 {
  margin-top: 24px;
}

.page-home-reference .deals-copy > p:not(.kicker) {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.page-home-reference .home-deals ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home-reference .home-deals li {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #60646d;
  font-size: 0.84rem;
  padding: 0;
}

.page-home-reference .home-deals li::before {
  content: none;
}

.page-home-reference .deals-copy .button {
  margin-top: 16px;
}

.page-home-reference .deals-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.page-home-reference .deals-image-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 12px;
}

.page-home-reference .home-services {
  margin-top: 102px;
  margin-bottom: 86px;
}

.page-home-reference .services-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-home-reference .services-grid article {
  min-height: 178px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 22px 18px;
  text-align: center;
}

.page-home-reference .services-grid h3 {
  margin: 14px 0 0;
  font-size: 1.01rem;
  font-weight: 500;
}

.page-home-reference .services-grid p {
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.page-home-reference .service-icon {
  width: 62px;
  height: 42px;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(227, 6, 20, 0.12);
  color: var(--brand-orange);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.home-ref-footer,
.page-home-reference .home-ref-footer {
  --footer-text-primary: #afb5bf;
  --footer-text-secondary: #afb5bf;
  width: min(1336px, calc(100vw - 8px));
  margin: 0 auto 8px;
  border-radius: 10px;
  background: #040509;
  color: #afb5bf;
  font-family: "Poppins", "Segoe UI", sans-serif;
  padding: 28px 32px 18px;
}

.home-ref-footer .footer-heading,
.home-ref-footer .footer-address,
.home-ref-footer .footer-address a,
.home-ref-footer .footer-link-list a,
.home-ref-footer .footer-form-note,
.home-ref-footer .footer-legal-corner a,
.home-ref-footer .footer-contact-form label,
.home-ref-footer .footer-contact-form input,
.home-ref-footer .footer-contact-form textarea {
  font-family: inherit;
}

.page-home-reference .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-ref-footer .footer-link-list {
  gap: 8px 18px;
}

.home-ref-footer .footer-menu-nav .footer-link-list {
  gap: 4px;
}

.home-ref-footer .footer-link-list a {
  color: var(--footer-text-primary);
  font-size: 0.84rem;
}

.page-home-reference .footer-meta-row {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.page-home-reference .footer-meta-row p {
  margin: 0;
  color: #afb5bf;
  font-size: 0.74rem;
}

.page-home-reference .footer-meta-row p:last-child {
  text-align: left;
}

@media (max-width: 980px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-left {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .footer-form-wrap {
    grid-column: 1;
  }

  .footer-legal-corner {
    grid-column: 1;
    text-align: left;
    justify-self: start;
    margin-top: 8px;
    align-self: start;
  }

  .footer-contact-form {
    width: 100%;
    margin-top: 10px;
  }

  .map-section {
    margin-top: 56px;
  }
}

.page-home-reference .social-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home-reference .social-mini a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #aeb4bf;
  color: #e1e4ea;
  display: grid;
  place-items: center;
}

.page-home-reference .social-mini svg {
  width: 12px;
  height: 12px;
}

.page-home-reference .social-mini svg rect,
.page-home-reference .social-mini svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home-reference .social-mini svg path {
  fill: currentColor;
}

.page-home-reference .social-mini a:hover,
.page-home-reference .social-mini a:focus-visible {
  background: #e30614;
  border-color: #e30614;
}

@media (max-width: 1260px) {
  .page-home-reference .header-inner {
    width: calc(100vw - 26px);
  }

  .page-home-reference .home-section {
    width: calc(100vw - 74px);
  }

  .page-home-reference .home-about-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-home-reference .home-about-pillars {
    margin-left: 0;
  }

  .page-home-reference .home-deals {
    width: calc(100vw - 18px);
    padding: 42px 28px;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
  }

  .page-home-reference .deals-image-wrap {
    justify-content: flex-end;
  }

  .home-ref-footer,
  .page-home-reference .home-ref-footer {
    width: calc(100vw - 8px);
  }
}

@media (max-width: 1024px) {
  .page-home-reference .menu-toggle {
    display: inline-flex;
  }

  .page-home-reference .main-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 14px 9px 10px;
    border-radius: 12px;
    background: rgba(9, 11, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
  }

  .page-home-reference .main-nav.open {
    display: flex;
  }

  .page-home-reference .main-nav .nav-link {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .page-home-reference .nav-item {
    width: 100%;
  }

  .page-home-reference .nav-social {
    margin-left: 0;
    padding-top: 6px;
  }

  .page-home-reference .submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 0.74rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease, visibility 0.18s ease, margin 0.18s ease, padding 0.18s ease;
  }

  .page-home-reference .nav-item.submenu-open > .submenu {
    margin: 0.12rem 0 0.3rem;
    padding: 0.1rem 0.2rem 0.2rem 0.74rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 520px;
  }

  .page-home-reference .home-hero {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }

  .page-home-reference .home-hero-content {
    left: 24px;
    right: 24px;
    top: 178px;
  }

  .page-home-reference .home-hero-note {
    left: 24px;
    right: 24px;
    bottom: 86px;
    max-width: none;
  }

  .page-home-reference .home-hero-cta {
    left: 24px;
    bottom: 30px;
  }

  .page-home-reference .inventory-grid,
  .page-home-reference .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home-reference .footer-meta-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .page-home-reference .footer-meta-row p:last-child {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .page-home-reference .site-header {
    top: 8px;
  }

  .page-home-reference .header-inner {
    width: calc(100vw - 14px);
    padding: 8px 10px;
  }

  .page-home-reference .ref-brand-name {
    font-size: 0.92rem;
  }

  .page-home-reference .home-hero {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }

  .page-home-reference .home-hero.hero-image-home {
    background-position: center 70%;
  }

  .page-home-reference .home-hero-content {
    left: 14px;
    right: 14px;
    top: 132px;
  }

  .page-home-reference .home-hero-content h1,
  .page-home-reference .hero-second-line {
    font-size: clamp(1.64rem, 9vw, 2.75rem);
  }

  .page-home-reference .hero-arrow {
    width: 54px;
    min-width: 54px;
    height: 38px;
    font-size: 1rem;
  }

  .page-home-reference .home-hero-note {
    left: 14px;
    right: 14px;
    bottom: 86px;
    font-size: 0.74rem;
  }

  .page-home-reference .home-hero-cta {
    left: 14px;
    bottom: 24px;
    font-size: 0.75rem;
    padding: 0.54rem 0.9rem;
  }

  .page-home-reference .home-section {
    width: calc(100vw - 24px);
    margin-top: 66px;
  }

  .page-home-reference .home-about-pillars,
  .page-home-reference .inventory-grid,
  .page-home-reference .services-grid {
    grid-template-columns: 1fr;
  }

  .page-home-reference .home-inventory .inventory-card {
    display: flex;
    flex-direction: column;
  }

  .page-home-reference .home-inventory .inventory-card img {
    order: 2;
    margin-top: 10px;
  }

  .page-home-reference .home-inventory .inventory-card h3 {
    margin-top: 0;
  }

  .page-home-reference .home-inventory .section-actions.centered,
  .page-home-reference .home-services .section-actions.centered {
    text-align: left;
  }

  /* Match mobile content inset with the "GEBRAUCHTWAGEN ALLER MARKEN" block */
  .page-home-reference .home-services {
    padding-left: 8px;
    padding-right: 8px;
  }

  .page-home-reference .home-inventory .section-actions.centered {
    padding-left: 8px;
  }

  .page-home-reference .home-services,
  .page-home-reference .home-services .kicker,
  .page-home-reference .home-services h2,
  .page-home-reference .home-services .services-grid article {
    text-align: left;
  }

  .page-home-reference .home-services .services-grid article {
    padding: 16px 0;
    min-height: auto;
  }

  .page-home-reference .home-services .service-icon {
    margin: 0;
  }

  .page-home-reference .home-about h2,
  .page-home-reference .home-inventory h2,
  .page-home-reference .home-services h2,
  .page-home-reference .home-deals h2 {
    font-size: clamp(1.58rem, 8vw, 2.3rem);
  }

  .page-home-reference .home-deals {
    width: calc(100vw - 8px);
    margin-top: 72px;
    padding: 24px 16px;
    grid-template-columns: 1fr;
  }

  .page-home-reference .deals-image-wrap {
    justify-content: flex-start;
  }

  .page-home-reference .deals-image-wrap img {
    height: 320px;
  }

  .page-home-reference .home-services {
    margin-top: 72px;
    margin-bottom: 62px;
  }

  .home-ref-footer,
  .page-home-reference .home-ref-footer {
    width: calc(100vw - 4px);
    border-radius: 8px;
    padding: 20px 12px 16px;
  }

  .home-ref-footer .footer-link-list {
    gap: 8px 14px;
  }
}

/* Subpage Alignment: full-width hero and screenshot-like spacing */
.page-sub {
  background: var(--surface-page);
  padding-top: 0;
}

.page-sub .container {
  width: min(1336px, calc(100vw - 8px));
}

.page-sub .hero-card.sub-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  height: 100vh;
  min-height: 100svh;
  height: 100svh;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

.page-sub .hero-card.sub-hero.hero-image-autohaus {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-001-web-(c)JohannesRadlwimmer.jpg");
  background-position: center 29%;
}

.page-sub .hero-card.sub-hero.hero-image-services {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-027-web-(c)JohannesRadlwimmer.jpg");
}

.page-sub .hero-card.sub-hero.hero-image-fahrzeuge {
  background-image: url("../../img/fotos-autohaus-bruendlinger/Image (12).jpg");
}

.page-sub .hero-card.sub-hero.hero-image-aktuelles {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-040-web-(c)JohannesRadlwimmer.jpg");
}

.page-sub .hero-card.sub-hero.hero-image-legal {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-040-web-(c)JohannesRadlwimmer.jpg");
}

.page-sub .hero-card.sub-hero.hero-image-kontakt {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-066-web-(c)JohannesRadlwimmer.jpg");
}

.page-sub .hero-card.sub-hero.hero-image-social {
  background-image: url("../../img/fotos-autohaus-bruendlinger/autohaus-bruendlinger-20240314-042-web-(c)JohannesRadlwimmer.jpg");
}

.page-sub .hero-card.sub-hero::before {
  background: linear-gradient(108deg, rgba(8, 11, 15, 0.82) 0%, rgba(9, 12, 16, 0.5) 44%, rgba(7, 10, 13, 0.2) 100%);
}

.page-sub .sub-hero .hero-content {
  top: auto;
  left: clamp(28px, 6vw, 180px);
  bottom: clamp(80px, 14vh, 126px);
  max-width: min(730px, calc(100vw - 72px));
}

.page-sub .sub-hero .hero-title {
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
}

.page-sub .sub-hero .hero-summary {
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(26px, 5vh, 52px);
  max-width: 390px;
  margin: 0;
  color: rgba(242, 245, 248, 0.88);
  font-size: 0.84rem;
  line-height: 1.58;
}

.page-sub .detail-section {
  width: min(1110px, calc(100vw - 120px));
  margin-left: auto;
  margin-right: auto;
}

/* Legal pages: same horizontal inset as homepage/subpages */
.page-legal .detail-section {
  width: min(1110px, calc(100vw - 120px));
  margin-left: auto;
  margin-right: auto;
}

.page-legal .detail-section .detail-list {
  padding-left: 1.2rem;
}

.page-legal .detail-section .detail-list li {
  line-height: 1.62;
}

.page-legal .legal-missing {
  color: var(--brand-orange);
  font-weight: 700;
}

@media (max-width: 980px) {
  .page-sub .hero-card.sub-hero {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }

  .page-sub .sub-hero .hero-content {
    left: 24px;
    right: 24px;
    bottom: 112px;
  }

  .page-sub .sub-hero .hero-summary {
    left: 24px;
    right: 24px;
    bottom: 38px;
    max-width: none;
  }

  .page-sub .detail-section {
    width: calc(100vw - 40px);
  }

  .section-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .page-sub .container {
    width: calc(100vw - 4px);
  }

  .page-sub .hero-card.sub-hero {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }

  .page-sub .sub-hero .hero-content {
    left: 14px;
    right: 14px;
    bottom: 114px;
  }

  .page-sub .sub-hero .hero-title {
    font-size: clamp(1.62rem, 8vw, 2.7rem);
  }

  .page-sub .sub-hero .hero-summary {
    left: 14px;
    right: 14px;
    bottom: 24px;
    font-size: 0.74rem;
  }

  .page-sub .detail-section {
    width: calc(100vw - 24px);
  }

  .section-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-gallery-item img {
    height: clamp(180px, 58vw, 250px);
  }

}

/* Footer Full Width Override */
.site-footer,
.home-ref-footer,
.page-home-reference .home-ref-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  border-radius: 0;
}

.kicker + h2,
.kicker + .section-title {
  margin-top: 24px;
}

/* Wunsch: so wenig Kästchen/Umrandungen wie möglich */
.header-inner,
.page-home-reference .header-inner,
.submenu,
.page-home-reference .submenu,
.nav-link,
.social-icon-link,
.hero-arrow,
.hero-main-cta,
.home-hero-cta,
.deal-grid,
.page-home-reference .home-deals,
.detail-section,
.service-card,
.summary-card,
.team-entry,
.service-abc li,
.news-card,
.contact-panel,
.contact-form,
.social-panel,
.deal-list li,
.page-home-reference .services-grid article,
.site-footer,
.home-ref-footer,
.page-home-reference .home-ref-footer,
.footer-meta,
.page-home-reference .footer-meta-row,
.page-home-reference .social-mini a {
  border: 0;
  box-shadow: none;
}

/* Menu style on all pages should match homepage */
.home-ref-header {
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 40;
  pointer-events: none;
}

.home-ref-header .header-inner {
  width: min(1320px, calc(100vw - 44px));
  margin: 0 auto;
  min-height: 72px;
  padding: 10px 16px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.home-ref-header .menu-toggle {
  display: none;
}

.home-ref-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  margin-left: 14px;
}

.home-ref-header .nav-link {
  min-height: 44px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  color: rgba(245, 246, 250, 0.95);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
}

.home-ref-header .nav-link:hover,
.home-ref-header .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.home-ref-header .nav-link.nav-cta {
  margin-left: 8px;
  background: transparent;
  color: rgba(245, 246, 250, 0.95);
  padding-inline: 1rem;
  font-weight: 500;
}

.home-ref-header .nav-link.nav-cta:hover,
.home-ref-header .nav-link.nav-cta:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.home-ref-header .nav-link.active {
  background: var(--brand-orange);
  color: #fff;
}

.home-ref-header .submenu {
  top: 100%;
  min-width: 300px;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 10, 13, 0.98);
  box-shadow: 0 14px 30px rgba(2, 3, 4, 0.45);
}

.home-ref-header .submenu a {
  font-size: 0.8rem;
  color: rgba(238, 241, 246, 0.95);
  padding: 0.42rem 0.5rem;
}

.home-ref-header .submenu a:hover,
.home-ref-header .submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

@media (max-width: 1260px) {
  .home-ref-header .header-inner {
    width: calc(100vw - 26px);
  }
}

@media (max-width: 1024px) {
  .home-ref-header .menu-toggle {
    display: inline-flex;
  }

  .home-ref-header .main-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 14px 9px 10px;
    border-radius: 12px;
    background: rgba(9, 11, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
  }

  .home-ref-header .main-nav.open {
    display: flex;
  }

  .home-ref-header .main-nav .nav-link {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .home-ref-header .nav-item {
    width: 100%;
  }

  .home-ref-header .nav-social {
    margin-left: 0;
    padding-top: 6px;
  }

  .home-ref-header .submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 0.74rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease, visibility 0.18s ease, margin 0.18s ease, padding 0.18s ease;
  }

  .home-ref-header .nav-item.submenu-open > .submenu {
    margin: 0.12rem 0 0.3rem;
    padding: 0.1rem 0.2rem 0.2rem 0.74rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 520px;
  }
}

@media (max-width: 720px) {
  .home-ref-header {
    top: 8px;
  }

  .home-ref-header .header-inner {
    width: calc(100vw - 14px);
    padding: 8px 10px;
  }
}

/* Global: less boxes, but keep clean structure with lines where needed */
.detail-section,
.deal-grid,
.page-home-reference .home-section,
.page-home-reference .home-deals {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  position: relative;
}

/* Remove decorative section separators */
.page-home-reference .home-section + .home-section::before,
.page-home-reference .home-section + .home-deals::before,
.page-home-reference .home-deals + .home-section::before,
.page-sub .detail-section + .detail-section::before {
  content: none;
}

.service-card,
.summary-card,
.news-card,
.contact-panel,
.contact-form:not(.footer-contact-form),
.social-panel,
.deal-list li {
  border: 1px solid rgba(227, 6, 20, 0.34) !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.footer-meta,
.page-home-reference .footer-meta-row {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.pillar {
  border-left: 0 !important;
  padding-left: 0 !important;
}

.page-home-reference .home-about-pillars article {
  border-left: 2px solid rgba(227, 6, 20, 0.82) !important;
  padding-left: 12px !important;
}

.team-entry {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

input,
textarea,
select {
  border: 0 !important;
  border-bottom: 1px solid rgba(128, 134, 146, 0.55) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Use the same motion treatment for all primary red buttons */
.button,
.page-home-reference .button,
.hero-main-cta,
.home-hero-cta,
.page-home-reference .home-hero-cta,
.document-btn.document-btn-primary,
.floating-contact-button {
  transform: translateY(0);
  will-change: transform;
}

.button:hover,
.button:focus-visible,
.page-home-reference .button:hover,
.page-home-reference .button:focus-visible,
.hero-main-cta:hover,
.hero-main-cta:focus-visible,
.home-hero-cta:hover,
.home-hero-cta:focus-visible,
.page-home-reference .home-hero-cta:hover,
.page-home-reference .home-hero-cta:focus-visible,
.document-btn.document-btn-primary:hover,
.document-btn.document-btn-primary:focus-visible,
.floating-contact-button:hover,
.floating-contact-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: none !important;
}

.button:active,
.page-home-reference .button:active,
.hero-main-cta:active,
.home-hero-cta:active,
.page-home-reference .home-hero-cta:active,
.document-btn.document-btn-primary:active,
.floating-contact-button:active {
  transform: translateY(0);
}

/* Homepage headline arrow: custom interaction instead of hero lift effect */
.page-home-reference .hero-second-line .hero-arrow {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.26s cubic-bezier(0.22, 1, 0.36, 1), color 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home-reference .hero-second-line .hero-arrow:hover,
.page-home-reference .hero-second-line .hero-arrow:focus-visible {
  transform: translateX(6px);
  background: #ffffff;
  border-color: #ffffff;
  color: #0e1013;
}

.page-home-reference .hero-second-line .hero-arrow:active {
  transform: translateX(3px);
}

/* Menu social icons: solid red circle by default */
.social-icon-link {
  border: 1px solid var(--brand-orange) !important;
  background: var(--brand-orange) !important;
  color: #ffffff !important;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  border-color: var(--brand-orange-dark) !important;
  background: var(--brand-orange-dark) !important;
  color: #ffffff !important;
}

/* Accessibility: larger and clearer text across the site */
p,
li,
label,
input,
textarea,
select,
button,
.footer-heading,
.footer-title,
.footer-subtitle,
.footer-address,
.footer-address a,
.footer-hours-title,
.footer-hours-day,
.footer-hours-time,
.footer-link-list a,
.footer-meta p,
.page-home-reference .footer-meta-row p,
.footer-meta-links a,
.footer-legal-corner a,
.footer-form-note,
.page-home-reference .inventory-subline {
  font-size: max(0.95rem, 16px) !important;
}

p,
li,
.footer-address,
.footer-address a,
.footer-hours-title,
.footer-hours-day,
.footer-hours-time,
.footer-link-list a,
.footer-meta p,
.page-home-reference .footer-meta-row p,
.footer-meta-links a,
.footer-legal-corner a,
.footer-form-note,
.page-home-reference .home-hero-note,
.page-home-reference .inventory-subline {
  line-height: 1.6 !important;
}

/* Footer: slightly smaller than body text, with muted gray body copy */
.home-ref-footer,
.page-home-reference .home-ref-footer {
  font-size: max(0.9rem, 15px) !important;
}

.home-ref-footer :is(.footer-heading, .footer-title, .footer-subtitle, .footer-address, .footer-address a, .footer-hours-title, .footer-hours-day, .footer-hours-time, .footer-link-list a, .footer-form-note, .footer-legal-corner a, .footer-meta p, .footer-meta-links a, .footer-contact-form label, .footer-contact-form input, .footer-contact-form textarea, .footer-contact-form .button),
.page-home-reference .home-ref-footer .footer-meta-row p {
  font-size: inherit !important;
  line-height: 1.5 !important;
}

.home-ref-footer :is(.footer-address, .footer-address a, .footer-hours-day, .footer-hours-time, .footer-link-list a, .footer-form-note, .footer-legal-corner a, .footer-meta p, .footer-meta-links a, .footer-contact-form label, .footer-contact-form input, .footer-contact-form textarea),
.page-home-reference .home-ref-footer .footer-meta-row p {
  color: #afb5bf !important;
}

.home-ref-footer .footer-contact-form input::placeholder,
.home-ref-footer .footer-contact-form textarea::placeholder {
  color: #afb5bf !important;
}

/* Footer opening-hours title should match other footer headings */
.home-ref-footer .footer-hours-title {
  color: #e30614 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* Responsive hardening */
@media (max-width: 1280px) {
  .page-sub .detail-section {
    width: min(960px, calc(100vw - 72px));
  }
}

@media (max-width: 1024px) {
  .site-header {
    top: 16px;
  }

  .header-inner,
  .home-ref-header .header-inner,
  .page-home-reference .header-inner {
    width: calc(100% - 28px);
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand-text {
    font-size: clamp(0.82rem, 2.6vw, 1.02rem);
    letter-spacing: 0.02em;
  }

  .page-sub .hero-card.sub-hero {
    min-height: min(82svh, 760px);
    height: auto;
  }

  .page-sub .sub-hero .hero-content {
    left: 24px;
    right: 24px;
    bottom: clamp(108px, 15vh, 150px);
    max-width: 92%;
  }

  .page-sub .sub-hero .hero-summary {
    left: 24px;
    right: 24px;
    bottom: 32px;
    max-width: 36ch;
    font-size: 0.9rem;
    display: block;
    overflow: visible;
    text-wrap: pretty;
  }

  .page-sub .detail-section {
    width: calc(100vw - 48px);
    padding: 34px 30px;
  }

  .footer-form-actions {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-form-actions .footer-form-note {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header,
  .home-ref-header {
    top: 10px;
  }

  .header-inner,
  .home-ref-header .header-inner,
  .page-home-reference .header-inner {
    width: calc(100% - 16px);
    min-height: 56px;
    padding: 8px 10px;
    gap: 10px;
  }

  .brand-text {
    max-width: 220px;
    white-space: normal;
    line-height: 1.12;
    font-size: clamp(0.72rem, 3.4vw, 0.88rem);
  }

  .menu-toggle,
  .home-ref-header .menu-toggle,
  .page-home-reference .menu-toggle {
    min-height: 40px;
    padding: 0.38rem 0.86rem;
    font-size: 0.86rem;
  }

  .main-nav,
  .home-ref-header .main-nav,
  .page-home-reference .main-nav {
    width: min(360px, calc(100vw - 16px));
    max-height: min(74vh, 620px);
  }

  .nav-link,
  .home-ref-header .nav-link,
  .page-home-reference .nav-link {
    min-height: 42px;
    padding: 0.45rem 0.66rem;
    font-size: 0.92rem;
  }

  .page-home-reference .home-hero {
    min-height: min(94svh, 760px);
    height: auto;
  }

  .page-home-reference .home-hero-content {
    left: 14px;
    right: 14px;
    top: 118px;
  }

  .page-home-reference .home-hero-note {
    left: 14px;
    right: 14px;
    bottom: 78px;
    font-size: 0.84rem;
  }

  .page-home-reference .home-hero-cta {
    left: 14px;
    bottom: 20px;
  }

  .page-sub .hero-card.sub-hero {
    min-height: min(78svh, 640px);
    height: auto;
  }

  .page-sub .sub-hero .hero-content {
    left: 14px;
    right: 14px;
    bottom: 104px;
    max-width: none;
  }

  .page-sub .sub-hero .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.1;
  }

  .page-sub .sub-hero .hero-summary {
    left: 14px;
    right: 14px;
    bottom: 20px;
    max-width: none;
    font-size: 0.82rem;
    line-height: 1.5;
    display: block;
    overflow: visible;
    text-wrap: pretty;
  }

  .detail-section,
  .page-sub .detail-section {
    width: calc(100vw - 24px);
    padding: 26px 18px;
    margin-top: 34px;
  }

  .detail-section .section-title {
    margin-top: 16px;
    font-size: clamp(1.38rem, 6.2vw, 1.82rem);
    line-height: 1.14;
    max-width: 100%;
  }

  .detail-flow-image,
  .detail-flow-image-right,
  .detail-flow-image-left,
  #gebrauchtwagen-verkauf .detail-flow .detail-flow-image,
  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-media,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-media {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 14px !important;
  }

  /* Mobile: in text-image sections always show text first, then image */
  .detail-flow,
  #vorfuehrer-und-jahreswagen .detail-flow,
  #gebrauchtwagen-verkauf .detail-flow {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .detail-flow > * {
    order: 1;
  }

  .detail-flow > .detail-flow-image {
    order: 2;
  }

  #vorfuehrer-und-jahreswagen .detail-flow > .fahrzeuge-flow-media,
  #gebrauchtwagen-verkauf .detail-flow > .fahrzeuge-flow-media {
    order: 2;
  }

  #ueber-uns .detail-flow > .ueber-uns-media {
    order: 2;
    float: none;
    width: 100%;
    margin: 0 0 14px;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
    position: static;
    width: 100%;
    height: auto;
    display: block;
  }

  .detail-flow .list-intro,
  #vorfuehrer-und-jahreswagen .detail-flow > .list-intro,
  #gebrauchtwagen-verkauf .detail-flow > .list-intro {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
    width: 100%;
    align-self: stretch;
  }

  .service-abc {
    gap: 6px 12px;
  }

  .home-ref-footer,
  .page-home-reference .home-ref-footer {
    width: calc(100vw - 2px);
    padding: 20px 12px 14px;
  }

  .footer-layout {
    gap: 18px;
  }

  .footer-left {
    gap: 14px;
  }

  .footer-link-list {
    gap: 8px 12px;
  }

  .footer-contact-form textarea {
    min-height: 132px;
  }

  .footer-form-actions .button {
    width: 100%;
  }

  .footer-legal-corner {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .map-section {
    margin-top: 54px;
  }

  .map-section iframe {
    height: clamp(240px, 58vw, 320px);
  }
}

@media (max-width: 1024px) {
  .section-title,
  .detail-section .section-title,
  .hero-title,
  .sub-hero .hero-title,
  .news-entry h3,
  .team-entry h3,
  .service-card h3,
  .summary-card h3 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    max-width: 100%;
  }

  .nav-link,
  .submenu a,
  .hero-summary,
  .detail-section p,
  .detail-list li,
  .service-abc li,
  .news-entry p,
  .footer-link-list a {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .nav-link {
    align-items: flex-start;
    line-height: 1.35;
  }

  .page-sub .hero-card.sub-hero.hero-image-services {
    min-height: min(94svh, 860px);
  }

  .page-sub .hero-card.sub-hero.hero-image-services .hero-content {
    bottom: clamp(170px, 24vh, 260px);
  }

  .page-sub .hero-card.sub-hero.hero-image-services .hero-summary {
    max-width: min(60ch, calc(100% - 48px));
    font-size: 0.82rem;
    line-height: 1.42;
    bottom: 22px;
  }

  .detail-section,
  .detail-flow,
  .detail-flow-main,
  .news-entry,
  .team-entry {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .page-sub .hero-card.sub-hero.hero-image-autohaus {
    background-position: 72% 29%;
  }

  .page-sub .hero-card.sub-hero.hero-image-services {
    min-height: min(96svh, 920px);
    background-position: 80% center;
  }

  .page-sub .hero-card.sub-hero.hero-image-services .hero-content {
    bottom: clamp(230px, 30vh, 320px);
  }

  .page-sub .hero-card.sub-hero.hero-image-services .hero-summary {
    font-size: 0.79rem;
    line-height: 1.38;
    bottom: 16px;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .detail-flow {
    display: flow-root;
  }

  #vorfuehrer-und-jahreswagen .detail-flow,
  #gebrauchtwagen-verkauf .detail-flow {
    display: grid !important;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    column-gap: clamp(6px, 1vw, 12px);
    row-gap: 14px;
    align-items: start;
    justify-items: stretch;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .detail-flow-main,
  #gebrauchtwagen-verkauf .detail-flow .detail-flow-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-media,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-media {
    position: relative !important;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    min-height: 0;
    height: auto;
    justify-self: stretch;
    align-self: stretch;
    overflow: hidden;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
  }

  .detail-flow-image {
    width: min(46%, 520px);
    max-width: 100%;
    margin-bottom: 18px;
  }

  .detail-flow-image-right {
    float: right;
    margin: 0 0 18px 26px;
  }

  .detail-flow-image-left {
    float: left;
    margin: 0 26px 18px 0;
  }

  .detail-flow-image-compact {
    width: min(33%, 360px);
  }

  .detail-flow-image-larger {
    width: min(54%, 620px);
  }

  .detail-flow-image-compact.detail-flow-image-larger {
    width: min(44%, 500px);
  }

  /* Tablet wide: try all three services in one row */
  .page-home-reference .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 721px) and (max-width: 900px) {
  /* Tablet narrow fallback: third service card centered below */
  .page-home-reference .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home-reference .services-grid article:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 460px);
  }
}

@media (max-width: 720px) {
  .floating-contact-button {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 0.68rem 1rem;
    font-size: 0.78rem;
  }
}

/* Responsive hardening: prevent horizontal overflow and stabilize all viewports */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.map-section,
.site-footer,
.home-ref-footer,
.page-home-reference .home-ref-footer {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page-sub .hero-card.sub-hero,
.page-home-reference .home-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.main-nav,
.home-ref-header .main-nav,
.page-home-reference .main-nav {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .main-nav,
  .home-ref-header .main-nav,
  .page-home-reference .main-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 16px));
  }

  .page-home-reference .home-section,
  .page-home-reference .home-deals,
  .page-sub .detail-section {
    width: min(100%, calc(100vw - 28px));
  }
}

@media (max-width: 480px) {
  .header-inner,
  .home-ref-header .header-inner,
  .page-home-reference .header-inner {
    width: calc(100% - 12px);
    padding: 7px 8px;
  }

  .brand-text {
    max-width: 170px;
    font-size: clamp(0.68rem, 3.8vw, 0.82rem);
    line-height: 1.12;
  }

  .menu-toggle,
  .home-ref-header .menu-toggle,
  .page-home-reference .menu-toggle {
    min-height: 40px;
    padding: 0.36rem 0.76rem;
    font-size: 0.82rem;
  }

  .main-nav,
  .home-ref-header .main-nav,
  .page-home-reference .main-nav {
    width: calc(100vw - 12px);
    max-height: min(72vh, 560px);
  }

  .nav-link,
  .home-ref-header .nav-link,
  .page-home-reference .nav-link {
    min-height: 40px;
    padding: 0.42rem 0.56rem;
    font-size: 0.86rem;
  }

  .page-home-reference .home-section,
  .page-home-reference .home-deals,
  .page-sub .detail-section {
    width: calc(100vw - 16px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-home-reference .home-hero-content {
    top: 108px;
  }

  .page-home-reference .home-hero-note,
  .page-sub .sub-hero .hero-summary {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .footer-inner {
    width: calc(100% - 16px);
  }

  .home-ref-footer,
  .page-home-reference .home-ref-footer {
    padding: 18px 10px 14px;
  }

  .map-section iframe {
    height: clamp(220px, 64vw, 300px);
  }

  .floating-contact-button {
    right: 10px;
    bottom: 10px;
    min-height: 42px;
    padding: 0.6rem 0.86rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .hero-main-cta,
  .home-hero-cta,
  .hero-arrow,
  .page-home-reference .button,
  .page-home-reference .home-hero-cta,
  .page-home-reference .hero-arrow,
  .floating-contact-button {
    transition: none !important;
    transform: none !important;
  }
}

/* Typography system: consistent, readable, accessible across all pages and viewports */
:root {
  --type-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --type-small: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --type-link: var(--type-body);
  --type-nav: clamp(0.95rem, 0.92rem + 0.2vw, 1.04rem);
  --type-submenu: clamp(0.84rem, 0.8rem + 0.16vw, 0.92rem);
  --type-button: clamp(0.95rem, 0.91rem + 0.22vw, 1.05rem);
  --type-kicker: clamp(0.82rem, 0.78rem + 0.2vw, 0.93rem);
  --type-h4: clamp(1.06rem, 1.01rem + 0.3vw, 1.2rem);
  --type-h3: clamp(1.18rem, 1.08rem + 0.45vw, 1.4rem);
  --type-h2: clamp(1.48rem, 1.24rem + 1.2vw, 2.3rem);
  --type-h1: clamp(2rem, 1.45rem + 2.8vw, 3.9rem);
  --type-tight: 1.18;
  --type-heading: 1.24;
  --type-copy: 1.6;
}

body,
p,
li,
label,
input,
textarea,
select,
button {
  font-size: var(--type-body) !important;
  line-height: var(--type-copy) !important;
}

h1,
.hero-title,
.page-home-reference .home-hero-content h1 {
  font-size: var(--type-h1) !important;
  line-height: var(--type-tight) !important;
}

h2,
.section-title,
.page-home-reference .home-about h2,
.page-home-reference .home-inventory h2,
.page-home-reference .home-services h2,
.page-home-reference .home-deals h2 {
  font-size: var(--type-h2) !important;
  line-height: var(--type-heading) !important;
}

h3,
.news-entry h3,
.team-entry h3,
.service-card h3,
.summary-card h3,
.page-home-reference .inventory-card h3,
.page-home-reference .services-grid h3 {
  font-size: var(--type-h3) !important;
  line-height: var(--type-heading) !important;
}

h4 {
  font-size: var(--type-h4) !important;
  line-height: var(--type-heading) !important;
}

.kicker,
.page-home-reference .kicker,
.footer-heading,
.footer-hours-title {
  font-size: var(--type-kicker) !important;
  line-height: 1.35 !important;
}

.nav-link,
.home-ref-header .nav-link,
.page-home-reference .nav-link {
  font-size: var(--type-nav) !important;
  line-height: 1.35 !important;
}

.submenu a,
.home-ref-header .submenu a,
.page-home-reference .submenu a {
  font-size: var(--type-submenu) !important;
  line-height: 1.45 !important;
}

.button,
.hero-main-cta,
.home-hero-cta,
.floating-contact-button,
.page-home-reference .button {
  font-size: var(--type-button) !important;
  line-height: 1.24 !important;
}

.hero-summary,
.page-home-reference .home-hero-note,
.page-home-reference .inventory-subline,
.footer-form-note {
  font-size: var(--type-small) !important;
  line-height: 1.55 !important;
}

.contact-form label,
.footer-contact-form label,
.footer-contact-form input,
.footer-contact-form textarea {
  font-size: var(--type-small) !important;
  line-height: 1.5 !important;
}

.footer-address,
.footer-address a,
.footer-hours-day,
.footer-hours-time,
.footer-link-list a,
.footer-meta p,
.footer-meta-links a,
.footer-legal-corner a {
  font-size: var(--type-small) !important;
  line-height: 1.55 !important;
}

/* Global content inset: keep left/right inset identical in all viewports */
:root {
  --content-inline-inset: 60px;
}

@media (max-width: 1024px) {
  :root {
    --content-inline-inset: 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --content-inline-inset: 12px;
  }
}

.page-home-reference .home-section,
.page-home-reference .home-deals,
.page-sub .detail-section {
  width: min(1110px, calc(100vw - (2 * var(--content-inline-inset)))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Startseite "Gebrauchtwagen aller Marken": same horizontal inset as "Über uns" */
.page-home-reference .home-deals {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Match left text inset on all subpages to homepage "Über uns" baseline */
.page-sub .detail-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Make the "Versicherungsabwicklung" service icon clearly visible */
.page-home-reference .home-services .services-grid article:nth-child(3) .service-icon {
  font-size: 1.24rem;
  font-weight: 600;
}

/* Tablet: opened hamburger menu should span full header width */
@media (min-width: 721px) and (max-width: 1024px) {
  .main-nav,
  .home-ref-header .main-nav,
  .page-home-reference .main-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
}

/* Surface Duo range: opened menu should match header width */
@media (min-width: 540px) and (max-width: 720px) {
  .main-nav,
  .home-ref-header .main-nav,
  .page-home-reference .main-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 1024px) {
  .main-nav .nav-social,
  .home-ref-header .main-nav .nav-social {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0 !important;
    padding-top: 6px;
    padding-left: 0.86rem;
    padding-right: 0.86rem;
    box-sizing: border-box;
  }

  .page-home-reference .main-nav .nav-social {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0 !important;
    padding-top: 6px;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    box-sizing: border-box;
  }
}

/* Global image cleanup: no borders and no shadows on any image */
img {
  border: 0 !important;
  box-shadow: none !important;
}

/* Also remove frame-like wrappers around images */
.section-gallery-item,
.news-entry-image {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 2026 Content Refresh: full-width, seamless flow (header + hero untouched) */
:root {
  --flow-pad-inline: clamp(14px, 4.8vw, 72px);
  --flow-max-grid: min(1160px, calc(100vw - (2 * var(--flow-pad-inline))));
  --flow-max-copy: 78ch;
  --flow-gap: clamp(48px, 8vw, 108px);
  --flow-line: rgba(13, 18, 28, 0.12);
}

body {
  background:
    radial-gradient(900px 460px at 4% 0%, rgba(227, 6, 20, 0.08), transparent 60%),
    radial-gradient(850px 440px at 96% 12%, rgba(14, 20, 30, 0.08), transparent 62%),
    #edf1f6;
}

.page-home-reference .home-section,
.page-home-reference .home-deals,
.page-sub .detail-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  padding: clamp(42px, 7.2vw, 92px) var(--flow-pad-inline) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative;
}

/* Homepage: last content block should sit flush above the map */
.page-home-reference .home-section.home-services {
  margin-bottom: 0 !important;
}

.page-home-reference .home-section:nth-of-type(odd),
.page-sub .detail-section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(247, 250, 255, 0.7)) !important;
}

.page-home-reference .home-section:nth-of-type(even),
.page-sub .detail-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(243, 246, 252, 0.72), rgba(251, 252, 255, 0.74)) !important;
}

.page-home-reference .home-deals {
  background: linear-gradient(180deg, rgba(236, 241, 248, 0.86), rgba(245, 247, 252, 0.86)) !important;
}

.page-home-reference .home-section + .home-section,
.page-home-reference .home-section + .home-deals,
.page-home-reference .home-deals + .home-section,
.page-sub .detail-section + .detail-section {
  border-top: 1px solid var(--flow-line);
}

.page-home-reference .home-section > *,
.page-home-reference .home-deals > *,
.page-sub .detail-section > * {
  width: min(var(--flow-max-grid), 100%);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep the inventory/services headings on the same centered content axis */
.page-home-reference .home-section.home-inventory > .kicker,
.page-home-reference .home-section.home-services > .kicker {
  display: block !important;
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.page-home-reference .home-section.home-inventory > h2,
.page-home-reference .home-section.home-services > h2 {
  display: block !important;
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.page-home-reference .home-section.home-inventory > .inventory-subline {
  width: min(760px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.page-home-reference .home-section h2,
.page-home-reference .home-deals h2 {
  margin: 0 !important;
  color: #101623;
  letter-spacing: -0.025em;
}

/* Global section heading alignment: keep heading/kicker on the same inset as content */
.page-sub .detail-section > .kicker,
.page-sub .detail-section > .section-title,
.page-home-reference .home-section > .kicker,
.page-home-reference .home-section > h2 {
  width: min(var(--flow-max-grid), 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-sub .detail-section > .kicker,
.page-sub .detail-section > .section-title {
  text-align: left !important;
}

/* Subpages: keep body text anchored to the left content edge (not centered blocks) */
.page-sub .detail-section > p:not(.kicker),
.page-sub .detail-section > .detail-list,
.page-sub .detail-section > .service-abc,
.page-sub .detail-section > .news-list,
.page-sub .detail-section > .contact-list {
  max-width: min(var(--flow-max-grid), 100%) !important;
  text-align: left !important;
}

/* Kicker is inline-block in base styles; force block for reliable alignment */
.page-sub .detail-section > .kicker,
.page-home-reference .home-section > .kicker {
  display: block !important;
}

.kicker,
.page-home-reference .kicker {
  color: var(--brand-orange) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
}

.page-home-reference .home-about-head > p:not(.kicker),
.page-home-reference .inventory-subline,
.page-home-reference .deals-copy > p:not(.kicker),
.page-home-reference .services-grid p,
.detail-section p:not(.kicker),
.detail-list li,
.service-abc li,
.news-entry p,
.team-entry p,
.social-panel p,
.contact-panel p {
  color: #4b5361;
  max-width: var(--flow-max-copy);
}

.page-home-reference .home-about-pillars,
.page-home-reference .inventory-grid,
.page-home-reference .services-grid,
.section-gallery,
.news-grid,
.summary-grid,
.service-grid,
.detail-columns,
.team-list,
.news-stream,
.detail-list,
.service-abc,
.contact-layout,
.form-grid {
  width: min(var(--flow-max-grid), 100%);
  margin-left: auto !important;
  margin-right: auto !important;
  gap: clamp(12px, 1.8vw, 24px) !important;
}

.page-home-reference .inventory-card,
.page-home-reference .services-grid article,
.service-card,
.summary-card,
.news-card,
.social-panel,
.contact-panel,
.contact-form:not(.footer-contact-form),
.section-gallery-item,
.news-entry-image,
.team-entry,
.news-entry {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.team-entry,
.news-entry {
  padding: 18px 0 !important;
  border-bottom: 1px solid rgba(15, 21, 30, 0.14) !important;
}

.team-entry:first-child,
.news-entry:first-child {
  border-top: 1px solid rgba(15, 21, 30, 0.14) !important;
}

.section-gallery-item,
.news-entry-image,
.page-home-reference .inventory-card img,
.page-home-reference .deals-image-wrap img,
.detail-columns img,
.detail-flow-image,
.showcase-image img {
  border-radius: 18px !important;
}

.button,
.page-home-reference .button,
.hero-main-cta,
.home-hero-cta,
.page-home-reference .home-hero-cta,
.document-btn.document-btn-primary,
.floating-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.16rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--brand-orange);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 11, 15, 0.24);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.page-home-reference .button:hover,
.page-home-reference .button:focus-visible,
.hero-main-cta:hover,
.hero-main-cta:focus-visible,
.home-hero-cta:hover,
.home-hero-cta:focus-visible,
.page-home-reference .home-hero-cta:hover,
.page-home-reference .home-hero-cta:focus-visible,
.document-btn.document-btn-primary:hover,
.document-btn.document-btn-primary:focus-visible,
.floating-contact-button:hover,
.floating-contact-button:focus-visible {
  background: var(--brand-orange);
  border-color: rgba(0, 0, 0, 0.08);
  color: #fff;
  filter: none;
}

input,
textarea,
select {
  border: 0 !important;
  border-bottom: 1px solid rgba(16, 21, 32, 0.34) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.72rem 0.12rem;
}

.map-section {
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-section iframe {
  height: clamp(300px, 36vw, 480px);
}

.home-ref-footer,
.page-home-reference .home-ref-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, #0a0d14 0%, #131b27 100%) !important;
}

.home-ref-footer .footer-layout {
  width: min(var(--flow-max-grid), 100%);
  margin-left: auto;
  margin-right: auto;
}

.home-ref-footer .footer-heading {
  color: var(--brand-orange) !important;
}

.home-ref-footer .footer-link-list a,
.home-ref-footer .footer-address a,
.home-ref-footer .footer-legal-corner a {
  color: #f3f6fb !important;
}

.home-ref-footer .footer-form-note,
.home-ref-footer .footer-address,
.home-ref-footer .footer-hours-day,
.home-ref-footer .footer-hours-time,
.home-ref-footer .footer-contact-form label {
  color: #bcc5d3 !important;
}

/* Footer flow text: enforce one consistent font size everywhere */
.home-ref-footer :is(.footer-address, .footer-address a, .footer-hours-day, .footer-hours-time, .footer-link-list a, .footer-form-note, .footer-legal-corner a, .footer-meta p, .footer-meta-links a, .footer-contact-form label, .footer-contact-form input, .footer-contact-form textarea),
.site-footer :is(.footer-address, .footer-address a, .footer-hours-day, .footer-hours-time, .footer-link-list a, .footer-form-note, .footer-legal-corner a, .footer-meta p, .footer-meta-links a, .footer-contact-form label, .footer-contact-form input, .footer-contact-form textarea) {
  font-family: "Poppins", "Segoe UI", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.5 !important;
}

/* Footer navigation links should not look heavier than other footer body text */
.home-ref-footer .footer-link-list a,
.site-footer .footer-link-list a {
  color: #bcc5d3 !important;
  font-family: "Poppins", "Segoe UI", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
}

/* Fix footer overview list sizing: force ul/li/a to same body text scale */
.home-ref-footer .footer-menu-nav .footer-link-list,
.home-ref-footer .footer-menu-nav .footer-link-list li,
.home-ref-footer .footer-menu-nav .footer-link-list a,
.site-footer .footer-menu-nav .footer-link-list,
.site-footer .footer-menu-nav .footer-link-list li,
.site-footer .footer-menu-nav .footer-link-list a {
  font-family: "Poppins", "Segoe UI", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Footer form: keep writing line visible at all times */
.home-ref-footer .footer-contact-form input,
.home-ref-footer .footer-contact-form textarea,
.site-footer .footer-contact-form input,
.site-footer .footer-contact-form textarea {
  border-bottom: 1px solid rgba(243, 246, 251, 0.58) !important;
}

.home-ref-footer .footer-contact-form input:focus,
.home-ref-footer .footer-contact-form textarea:focus,
.home-ref-footer .footer-contact-form input:focus-visible,
.home-ref-footer .footer-contact-form textarea:focus-visible,
.site-footer .footer-contact-form input:focus,
.site-footer .footer-contact-form textarea:focus,
.site-footer .footer-contact-form input:focus-visible,
.site-footer .footer-contact-form textarea:focus-visible {
  border-bottom-color: rgba(243, 246, 251, 0.58) !important;
  box-shadow: none !important;
}

@media (max-width: 1024px) {
  .page-home-reference .home-section,
  .page-home-reference .home-deals,
  .page-sub .detail-section {
    padding: clamp(34px, 7vw, 68px) var(--flow-pad-inline) !important;
  }

  .page-home-reference .inventory-grid,
  .page-home-reference .services-grid,
  .section-gallery,
  .news-grid,
  .summary-grid,
  .service-grid,
  .contact-layout,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-layout {
    gap: 22px;
  }
}

@media (max-width: 720px) {
  :root {
    --flow-pad-inline: 14px;
  }

  .page-home-reference .home-section,
  .page-home-reference .home-deals,
  .page-sub .detail-section {
    padding: 30px var(--flow-pad-inline) !important;
  }

  .page-home-reference .home-about-pillars,
  .page-home-reference .inventory-grid,
  .page-home-reference .services-grid,
  .section-gallery,
  .news-grid,
  .summary-grid,
  .service-grid,
  .detail-columns,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .team-entry,
  .news-entry {
    padding: 14px 0 !important;
  }

  .detail-flow,
  #vorfuehrer-und-jahreswagen .detail-flow,
  #gebrauchtwagen-verkauf .detail-flow {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .map-section iframe {
    height: clamp(240px, 60vw, 320px);
  }

  .home-ref-footer,
  .page-home-reference .home-ref-footer {
    padding: 20px 0 14px;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .section-actions .button,
  .inventory-actions .button,
  .footer-form-actions .button {
    width: auto;
  }
}

@media (max-width: 720px) {
  /* Keep homepage section copy on the same mobile text axis as "Über uns" */
  .page-home-reference .home-section.home-inventory,
  .page-home-reference .home-section.home-services {
    padding-left: var(--flow-pad-inline) !important;
    padding-right: var(--flow-pad-inline) !important;
  }

  .page-home-reference .home-section.home-inventory > .kicker,
  .page-home-reference .home-section.home-inventory > h2,
  .page-home-reference .home-section.home-inventory > .inventory-subline,
  .page-home-reference .home-section.home-services > .kicker,
  .page-home-reference .home-section.home-services > h2 {
    width: min(var(--flow-max-grid), 100%) !important;
    max-width: min(var(--flow-max-grid), 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .page-home-reference .home-section.home-inventory .section-actions.centered,
  .page-home-reference .home-section.home-services .section-actions.centered {
    width: min(var(--flow-max-grid), 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
}

/* Keep photo framing identical across desktop, tablet and mobile */
.section-gallery-item,
.news-entry-image {
  aspect-ratio: 3 / 2;
}

.section-gallery.section-gallery-single .section-gallery-item {
  aspect-ratio: 12 / 5;
}

.section-gallery-item img,
.news-entry-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.page-home-reference .home-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  height: auto !important;
  object-fit: cover;
}

.page-home-reference .deals-image-wrap img,
.detail-columns img,
.showcase-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto !important;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 1024px) {
  #ueber-uns .ueber-uns-media {
    position: relative !important;
    aspect-ratio: 2 / 3;
    min-height: 0;
    overflow: hidden;
  }

  #ueber-uns .ueber-uns-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-media,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-media {
    position: relative !important;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image {
    object-position: 38% center;
  }
}

@media (min-width: 721px) and (max-width: 767px) {
  #ueber-uns .ueber-uns-media {
    position: relative !important;
    aspect-ratio: auto;
    min-height: 31rem;
  }

  #ueber-uns .ueber-uns-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center 34%;
  }
}

@media (max-width: 720px) {
  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image {
    object-position: center 28%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home-reference .home-section > *,
  .page-home-reference .home-deals > *,
  .page-sub .detail-section > * {
    animation: flowFadeIn 0.5s ease both;
  }
}

@keyframes flowFadeIn {
  from {
    opacity: 0.01;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aktuelles: publication experience */
.page-sub .news-editorial {
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-sub .news-editorial .section-title {
  max-width: min(var(--flow-max-grid), 100%) !important;
}

.news-editorial-lead {
  max-width: 900px;
  margin: 0;
  color: #4e5563;
  font-size: 1.02rem;
  line-height: 1.7;
}

.news-editorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.news-editorial-tags span {
  display: inline;
  color: #3f4551;
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.news-editorial-tags span:not(:last-child)::after {
  content: " /";
  color: #9aa1ad;
}

.page-sub .publication-section {
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.publication-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: center;
}

.publication-shell-reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.publication-shell-reverse .publication-copy {
  order: 2;
}

.publication-shell-reverse .publication-preview {
  order: 1;
}

.page-sub .publication-section .publication-shell-reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.page-sub .publication-section .publication-shell-reverse .publication-copy,
.page-sub .publication-section .publication-shell-reverse .publication-preview {
  order: initial;
}

.publication-copy {
  display: grid;
  gap: 14px;
  align-self: center;
  padding-top: 0;
  transform: translateY(calc(var(--publication-copy-shift, 0px) * -1));
}

.publication-kicker {
  margin: 0;
  color: #e30614;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-title {
  margin: 0;
  color: #0e1219;
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  line-height: 1.2;
}

.publication-doc-title {
  margin: 0;
  color: #0e1219;
  font-size: clamp(1.12rem, 1.03rem + 0.22vw, 1.3rem);
  line-height: 1.25;
}

.publication-copy p {
  margin: 0;
  color: #313a47;
  line-height: 1.72;
}

.publication-points {
  margin: 2px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #2b3441;
  line-height: 1.6;
}

.publication-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.publication-link-item {
  margin: 0;
}

.publication-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  color: #e30614;
  background: transparent;
  font-size: var(--type-link);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: normal;
}

.publication-link:hover,
.publication-link:focus-visible {
  color: #e30614;
  text-decoration: underline;
}

.publication-preview {
  width: 100%;
}

.publication-stack {
  display: grid;
  gap: 32px;
}

.document-library {
  display: grid;
  gap: 18px;
}

.document-library-head {
  display: grid;
  gap: 12px;
  max-width: min(var(--flow-max-grid), 100%);
}

.page-sub .publication-section .publication-actions {
  align-items: flex-start;
  gap: 10px;
}

.document-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  border: 1px solid rgba(20, 31, 48, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfdff 0%, #f1f4f8 100%);
  box-shadow: 0 10px 18px rgba(17, 25, 36, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.document-card:hover,
.document-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(227, 6, 20, 0.32);
  box-shadow: 0 14px 26px rgba(17, 25, 36, 0.14);
}

.document-card-cover-link {
  display: block;
  background: #dfe4eb;
}

.document-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.41;
  object-fit: cover;
  border-bottom: 1px solid rgba(20, 31, 48, 0.11);
}

.document-card-body {
  display: grid;
  gap: 10px;
  padding: 15px 14px;
}

.document-card-type {
  margin: 0;
  color: var(--brand-orange);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.document-card-title {
  margin: 0;
  color: #0f1722;
  font-size: 1.06rem;
  line-height: 1.3;
}

.document-card-text {
  margin: 0;
  color: #303b4a;
  font-size: 0.93rem;
  line-height: 1.55;
}

.document-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.document-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.82rem;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.document-btn-primary {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.document-btn-primary:hover,
.document-btn-primary:focus-visible {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.document-btn-secondary {
  background: rgba(14, 22, 34, 0.02);
  border-color: rgba(14, 22, 34, 0.22);
  color: #1a2534;
}

.document-btn-secondary:hover,
.document-btn-secondary:focus-visible {
  background: rgba(227, 6, 20, 0.08);
  border-color: rgba(227, 6, 20, 0.35);
  color: var(--brand-orange);
}

.news-flipbook {
  --flipbook-content-width: min(100%, 840px);
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  align-content: start;
  row-gap: 2px;
  padding: 0;
  box-shadow: none;
  outline: none;
  width: 100%;
}

.news-flipbook.is-single-page-state {
  --flipbook-content-width: min(100%, 420px);
}

.news-flipbook:focus-visible {
  box-shadow: 0 0 0 3px rgba(227, 6, 20, 0.24);
}

.news-flipbook-stage,
.news-flipbook-controls,
.news-flipbook-range-wrap {
  width: var(--flipbook-content-width);
  margin-left: auto;
  margin-right: auto;
}

.news-flipbook-stage {
  border-radius: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1.41;
  max-width: 100%;
}

.news-flipbook[data-flipbook-spread] .news-flipbook-stage {
  overflow: visible;
  aspect-ratio: auto;
  min-height: 0;
}

.news-flipbook-stage-spread {
  padding: clamp(8px, 1.4vw, 14px) 0 0;
}

.news-spread-book {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-origin: center center;
  transform: none;
  filter: drop-shadow(0 12px 18px rgba(8, 11, 16, 0.2));
}

.news-flipbook.is-single-page-state .news-spread-book {
  grid-template-columns: 1fr;
}

.news-spread-book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 34px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(255, 255, 255, 0.22) 44%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.news-flipbook.is-single-page-state .news-spread-book::before {
  display: none;
}

.news-spread-book img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.41;
  object-fit: cover;
  border-radius: 2px;
}

.news-spread-book img:first-child {
  box-shadow: inset -18px 0 24px rgba(0, 0, 0, 0.16);
}

.news-spread-book img:last-child {
  box-shadow: inset 18px 0 24px rgba(0, 0, 0, 0.16);
}

.news-flipbook-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.news-flipbook-button {
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #1f2530;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.news-flipbook-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.news-flipbook-counter {
  color: #303a49;
  font-size: 0.96rem;
  font-weight: 600;
}

.news-flipbook-range-wrap {
  margin-top: 2px;
}

.news-flipbook-range-label {
  display: block;
  margin-bottom: 4px;
  color: #37404d;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-flipbook-range {
  width: 100%;
  accent-color: #e30614;
}

.publication-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
}

.publication-secondary-links a {
  color: #2b3442;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-secondary-links a:hover,
.publication-secondary-links a:focus-visible {
  color: #e30614;
}

@media (max-width: 1180px) {
  .news-spread-book {
    transform: none;
  }

  .document-library-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .news-editorial-tags {
    gap: 8px;
  }

  .news-editorial-tags span {
    min-height: 0;
    padding: 0;
    font-size: 0.82rem;
  }

  .page-sub .publication-section .publication-shell,
  .page-sub .publication-section .publication-shell-reverse {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }

  .publication-shell,
  .publication-shell-reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .publication-copy,
  .publication-shell-reverse .publication-copy {
    order: 1;
    transform: none;
  }

  .page-sub .publication-section .publication-copy {
    order: 1;
    transform: none;
  }

  .page-sub .publication-section .publication-shell-reverse .publication-copy {
    order: 1;
  }

  .publication-preview,
  .publication-shell-reverse .publication-preview {
    order: 2;
  }

  .page-sub .publication-section .publication-preview {
    order: 2;
  }

  .page-sub .publication-section .publication-shell-reverse .publication-preview {
    order: 2;
  }

  #bruendlinger-news .publication-copy,
  #alfa-romeo-news .publication-copy,
  #fiat-news .publication-copy {
    order: 1;
    transform: none;
  }

  #bruendlinger-news .publication-preview,
  #alfa-romeo-news .publication-preview,
  #fiat-news .publication-preview {
    order: 2;
  }

  .publication-actions {
    gap: 10px;
  }

  .publication-link {
    width: auto;
  }

  .news-flipbook-stage-spread {
    padding: clamp(6px, 2.4vw, 10px) 0 0;
  }

  .news-flipbook-controls {
    flex-wrap: wrap;
  }

  .news-flipbook[data-flipbook-spread] .news-flipbook-stage {
    min-height: 0;
  }

  .news-spread-book {
    transform: none;
    filter: drop-shadow(0 8px 12px rgba(8, 11, 16, 0.18));
  }

}

/* Footer links: unify all text links with the same look/effect as mail/phone links */
.home-ref-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a),
.site-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a) {
  color: #f3f6fb !important;
  text-decoration: none !important;
}

.home-ref-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a):hover,
.home-ref-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a):focus-visible,
.site-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a):hover,
.site-footer .footer-layout :is(.footer-address a, .footer-link-list a, .footer-legal-corner a):focus-visible {
  color: #f3f6fb !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .page-sub .hero-card.sub-hero {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }

  .page-sub .sub-hero .hero-content {
    left: clamp(28px, 6vw, 180px) !important;
    right: auto !important;
    bottom: clamp(80px, 14vh, 126px) !important;
    max-width: min(730px, calc(100vw - 72px)) !important;
  }

  .page-sub .sub-hero .hero-summary {
    left: auto !important;
    right: clamp(24px, 5vw, 88px) !important;
    bottom: clamp(26px, 5vh, 52px) !important;
    max-width: 390px !important;
    font-size: 0.84rem !important;
    line-height: 1.58 !important;
  }

  #vorfuehrer-und-jahreswagen .detail-flow,
  #gebrauchtwagen-verkauf .detail-flow {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  #vorfuehrer-und-jahreswagen .detail-flow > *,
  #gebrauchtwagen-verkauf .detail-flow > * {
    order: 1;
  }

  #vorfuehrer-und-jahreswagen .detail-flow > .fahrzeuge-flow-media,
  #gebrauchtwagen-verkauf .detail-flow > .fahrzeuge-flow-media {
    position: relative !important;
    order: 2;
    width: 100%;
    margin: 8px 0 0 !important;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image,
  #gebrauchtwagen-verkauf .detail-flow .fahrzeuge-flow-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
  }

  #vorfuehrer-und-jahreswagen .detail-flow .fahrzeuge-flow-image {
    object-position: 38% 28%;
  }

  #vorfuehrer-und-jahreswagen .detail-flow > .fahrzeuge-flow-media {
    aspect-ratio: 8 / 5;
  }
}

@media (max-width: 720px) {
  .page-sub .hero-card.sub-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 14px 20px;
  }

  .page-sub .sub-hero .hero-content,
  .page-sub .sub-hero .hero-summary {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
  }

  .page-sub .sub-hero .hero-content {
    margin: 0;
  }

  .page-sub .sub-hero .hero-summary {
    margin: 0;
  }
}
