/*
Theme Name: Rikis Wohnmobile
Theme URI: https://www.rikis.de/
Author: Rikis Wohnmobile GmbH
Description: Maßgeschneidertes, barrierearmes WordPress-Theme nach dem Rikis Design System 08/2026.
Version: 1.4.3
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: rikis
*/

:root {
  --rikis-blue: #081e3a;
  --rikis-blue-soft: #14243f;
  --rikis-anthracite: #1d1d1d;
  --rikis-grey: #d6d6d6;
  --rikis-white: #ffffff;
  --rikis-offwhite: #f4f6f8;
  --rikis-hairline: rgba(8, 30, 58, 0.22);
  --rikis-hairline-dark: rgba(255, 255, 255, 0.28);
  --rikis-hairline-dark-strong: rgba(255, 255, 255, 0.55);
  --rikis-shadow: 0 18px 48px rgba(8, 30, 58, 0.11);
  --rikis-shadow-soft: 0 8px 28px rgba(8, 30, 58, 0.08);
  --rikis-radius: 16px;
  --rikis-radius-small: 10px;
  --rikis-content: 1320px;
  --rikis-narrow: 820px;
  --rikis-header-height: 80px;
  --rikis-font: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --rikis-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--rikis-anthracite);
  background: var(--rikis-white);
  font-family: var(--rikis-font);
  font-size: clamp(1rem, 0.985rem + 0.08vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--rikis-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[type="submit"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--rikis-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--rikis-blue);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--rikis-blue);
  background: var(--rikis-white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell,
.alignwide {
  width: min(calc(100% - 2.5rem), var(--rikis-content));
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  margin-inline: 0;
}

.narrow {
  width: min(calc(100% - 2.5rem), var(--rikis-narrow));
  margin-inline: auto;
}

.eyebrow,
.kicker,
.meta-label {
  margin: 0 0 0.75rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75em;
  color: var(--rikis-blue);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

h1,
.display-title {
  font-size: clamp(2.25rem, 4.5vw, 4.9rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  letter-spacing: -0.022em;
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.lead {
  max-width: 58rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.55;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--rikis-blue);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-white);
  background: var(--rikis-blue);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--rikis-transition), background var(--rikis-transition), border-color var(--rikis-transition), transform var(--rikis-transition);
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  border-color: var(--rikis-blue-soft);
  color: var(--rikis-white);
  background: var(--rikis-blue-soft);
  transform: translateY(-2px);
}

.button--light {
  border-color: var(--rikis-white);
  color: var(--rikis-blue);
  background: var(--rikis-white);
}

.button--light:hover {
  color: var(--rikis-white);
  background: transparent;
}

.button--ghost {
  color: var(--rikis-blue);
  background: transparent;
}

.button--ghost:hover {
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  flex: 0 0 auto;
  transition: transform var(--rikis-transition);
}

.text-link:hover::after {
  transform: translateX(0.3rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--rikis-blue);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 30, 58, 0.1);
  box-shadow: 0 6px 24px rgba(8, 30, 58, 0.05);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
  display: grid;
  min-height: var(--rikis-header-height);
  grid-template-columns: 175px 1fr auto;
  align-items: center;
  gap: 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand img {
  width: 158px;
  max-height: 58px;
  object-fit: contain;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--rikis-blue);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu > li > a {
  display: flex;
  min-height: var(--rikis-header-height);
  align-items: center;
  border-bottom: 2px solid transparent;
}

.primary-menu > li:hover > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
  border-bottom-color: var(--rikis-blue);
}

.primary-menu .menu-item-has-children {
  position: relative;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: -1rem;
  display: grid;
  min-width: 250px;
  gap: 0;
  padding: 0.65rem 0;
  background: var(--rikis-white);
  border: 1px solid var(--rikis-hairline);
  border-radius: var(--rikis-radius-small);
  box-shadow: var(--rikis-shadow);
  opacity: 0;
  transform: translateY(0.5rem);
  visibility: hidden;
  transition: opacity var(--rikis-transition), transform var(--rikis-transition), visibility var(--rikis-transition);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.65rem 1rem;
}

.primary-menu .sub-menu a:hover {
  background: var(--rikis-offwhite);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.header-cta {
  border-color: var(--rikis-blue);
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.header-cta:hover {
  color: var(--rikis-blue);
  background: transparent;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--rikis-hairline);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-blue);
  background: transparent;
}

.menu-toggle > span[aria-hidden="true"],
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform var(--rikis-transition), opacity var(--rikis-transition);
}

.menu-open .menu-toggle > span[aria-hidden="true"] {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 80px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--rikis-white);
  background: var(--rikis-blue);
  isolation: isolate;
}

.hero__media,
.hero__media img,
.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  z-index: -2;
  content: "";
  background: linear-gradient(90deg, rgba(8, 30, 58, 0.97) 0%, rgba(8, 30, 58, 0.82) 44%, rgba(8, 30, 58, 0.34) 82%, rgba(8, 30, 58, 0.12) 100%);
}

.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(8, 30, 58, 0.72) 0%, transparent 40%);
}

.hero__inner {
  padding-block: clamp(4.5rem, 10vh, 7.5rem);
}

.hero__content {
  max-width: 880px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 1.1rem;
  color: var(--rikis-white);
  font-size: clamp(2.55rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-transform: none;
}

.hero__subline {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero > .rikis-ai-badge,
.page-hero > .rikis-ai-badge {
  top: auto;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 5;
}

.page-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  color: var(--rikis-white);
  background: var(--rikis-blue);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media,
.page-hero::after {
  position: absolute;
  inset: 0;
}

.page-hero__media {
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(8, 30, 58, 0.96), rgba(8, 30, 58, 0.45));
}

.page-hero__inner {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--rikis-white);
  font-size: clamp(2.1rem, 3.8vw, 4rem);
  letter-spacing: -0.025em;
  text-transform: none;
}

/* Content sections */
.section,
.entry-content > .wp-block-group,
.entry-content > .wp-block-cover {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.entry-content > .section--tight + .section {
  padding-top: clamp(1.5rem, 3vw, 2.75rem);
}

.section--blue {
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.section--blue h2,
.section--blue h3,
.section--blue a {
  color: var(--rikis-white);
}

.section--blue a.button--light {
  color: var(--rikis-blue);
}

.section--blue a.button--light:hover {
  color: var(--rikis-white);
}

.section--grey {
  background: var(--rikis-offwhite);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--rikis-hairline);
}

.section--blue .section-heading {
  border-color: var(--rikis-hairline-dark);
}

.section-heading > *:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.stat {
  min-width: 0;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(8, 30, 58, 0.12);
  border-radius: var(--rikis-radius);
  background: var(--rikis-offwhite);
}

.stat:last-child {
  border-right: 1px solid rgba(8, 30, 58, 0.12);
}

.stat strong {
  display: block;
  color: var(--rikis-blue);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.65rem;
  color: rgba(29, 29, 29, 0.65);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  color: var(--rikis-anthracite);
  background: var(--rikis-white);
  border: 1px solid rgba(8, 30, 58, 0.12);
  border-radius: var(--rikis-radius);
  box-shadow: var(--rikis-shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

.service-card__image,
.service-card::after {
  position: relative;
  inset: auto;
}

.service-card__image {
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.4rem;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card::after {
  display: none;
}

.service-card:hover .service-card__image img {
  transform: scale(1.035);
}

.service-card h3,
.service-card a {
  color: var(--rikis-blue);
}

.service-card h3 {
  margin: 0 1.5rem 0.65rem;
  font-size: clamp(1.4rem, 1.8vw, 1.75rem);
  letter-spacing: -0.018em;
  line-height: 1.16;
  text-transform: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.service-card p {
  max-width: none;
  margin-inline: 1.5rem;
  color: rgba(29, 29, 29, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-card > .eyebrow {
  margin-bottom: 0.5rem;
  color: rgba(8, 30, 58, 0.64);
}

.service-card > .text-link {
  align-self: flex-start;
  margin: auto 1.5rem 1.5rem;
  padding-top: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split .process-steps {
  grid-template-columns: 1fr;
}

.split__media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--rikis-radius);
  overflow: hidden;
  box-shadow: var(--rikis-shadow-soft);
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.brand-grid > * {
  min-width: 0;
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--rikis-white);
  border: 1px solid rgba(8, 30, 58, 0.11);
  border-radius: var(--rikis-radius-small);
}

.brand-grid img {
  width: 100%;
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
  transition: filter var(--rikis-transition), opacity var(--rikis-transition);
}

.brand-grid > *:hover img {
  filter: none;
  opacity: 1;
}

.cta-band {
  position: relative;
  padding-block: clamp(3rem, 5vw, 5rem);
  color: var(--rikis-white);
  background: var(--rikis-blue);
  overflow: hidden;
}

.cta-band::after {
  position: absolute;
  top: -45%;
  right: -4%;
  width: min(50vw, 620px);
  aspect-ratio: 1;
  content: "R";
  color: rgba(255, 255, 255, 0.055);
  font-size: min(50vw, 620px);
  font-weight: 700;
  line-height: 1;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--rikis-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Entries */
.entry-content {
  overflow: visible;
  overflow-wrap: anywhere;
}

.entry-content > *:not(.alignfull):not(.alignwide):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  width: min(calc(100% - 2.5rem), var(--rikis-narrow));
  margin-right: auto;
  margin-left: auto;
}

.entry-content > :first-child:not(.alignfull):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.entry-content > :last-child:not(.alignfull):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.entry-content > .section,
.entry-content > .cta-band {
  width: 100%;
  margin-inline: 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid var(--rikis-hairline);
}

.entry-content blockquote {
  padding-left: 1.5rem;
  border-left: 3px solid var(--rikis-blue);
  color: var(--rikis-blue);
  font-size: 1.2em;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 2.5rem;
}

.legal-content {
  overflow-wrap: anywhere;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 30, 58, 0.12);
  border-radius: var(--rikis-radius);
  background: var(--rikis-white);
  box-shadow: var(--rikis-shadow-soft);
  transition: transform var(--rikis-transition), box-shadow var(--rikis-transition);
}

.news-card:hover {
  box-shadow: var(--rikis-shadow);
  transform: translateY(-3px);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rikis-grey);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.035);
}

.news-card__body {
  padding: clamp(1.25rem, 2vw, 1.65rem);
}

.news-card__body h2,
.news-card__body h3 {
  font-size: 1.4rem;
}

.post-meta {
  color: rgba(29, 29, 29, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Editorial news overview and articles */
.news-archive {
  background: var(--rikis-offwhite);
}

.news-intro {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.news-featured {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card__media {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  color: var(--rikis-white);
  text-decoration: none;
}

.news-card__media--placeholder {
  display: grid;
  place-items: center;
  background: var(--rikis-blue);
}

.news-card__media-placeholder {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-card__body h2,
.news-card__body h3 {
  margin-bottom: 0.75rem;
}

.news-card__body h2 a,
.news-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card__body h2 a:hover,
.news-card__body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.news-card__badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--rikis-white);
  background: var(--rikis-blue);
  font-size: 0.64rem;
  font-weight: 600;
}

.news-card__excerpt {
  color: rgba(29, 29, 29, 0.74);
}

.news-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.news-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  min-height: min(34rem, 62vw);
  border-color: rgba(8, 30, 58, 0.2);
  box-shadow: var(--rikis-shadow);
}

.news-card--featured .news-card__media {
  min-height: 100%;
  aspect-ratio: auto;
}

.news-card--featured .news-card__body {
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.news-card--featured .news-card__body h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.news-empty {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--rikis-hairline);
  border-radius: var(--rikis-radius);
  background: var(--rikis-white);
  text-align: center;
}

.news-empty .button-row {
  justify-content: center;
}

.navigation.pagination {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(8, 30, 58, 0.52);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-blue);
  background: var(--rikis-white);
  text-decoration: none;
}

.navigation.pagination a.page-numbers:hover,
.navigation.pagination .page-numbers.current {
  border-color: var(--rikis-blue);
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.single-news__back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.single-news__content.entry-content {
  min-width: 0;
}

.single-news__content.entry-content > *:not(.alignfull):not(.alignwide):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.single-news__content.entry-content > :first-child:not(.alignfull):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  margin-top: 0;
}

.single-news__content.entry-content > :last-child:not(.alignfull):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
  margin-bottom: 0;
}

.single-news__lead {
  color: var(--rikis-blue);
}

.single-news__content img,
.single-news__content figure {
  border-radius: var(--rikis-radius-small);
}

.single-news__cta {
  position: sticky;
  top: 7rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--rikis-radius);
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.single-news__cta h2,
.single-news__cta .eyebrow {
  color: var(--rikis-white);
}

.single-news__cta .button-row {
  align-items: stretch;
}

.single-news__cta .button {
  width: 100%;
}

.single-news__cta .button:not(.button--ghost) {
  border-color: var(--rikis-white);
  color: var(--rikis-blue);
  background: var(--rikis-white);
}

.single-news__cta .button:not(.button--ghost):hover {
  border-color: var(--rikis-grey);
  background: var(--rikis-grey);
}

.single-news__cta .button--ghost {
  border-color: var(--rikis-white);
  color: var(--rikis-white);
}

.single-news__post-navigation {
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rikis-hairline);
}

.single-news__post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.single-news__post-navigation .nav-next {
  text-align: right;
}

.single-news__post-navigation a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--rikis-hairline);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-blue);
  background: var(--rikis-white);
  text-decoration: none;
}

.single-news__post-navigation a:hover {
  border-color: var(--rikis-blue);
}

.post-navigation__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-navigation__title {
  display: block;
  font-weight: 600;
}

.news-related .news-card {
  background: var(--rikis-white);
}

/* Forms */
.rikis-form,
.rikis-vehicle-filters {
  display: grid;
  gap: 1.15rem;
}

.form-grid,
.rikis-vehicle-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

.vehicle-detail__inquiry .rikis-form {
  max-width: 64rem;
}

.rikis-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(8, 30, 58, 0.12);
  border-radius: var(--rikis-radius);
  background: var(--rikis-offwhite);
}

.field,
.rikis-vehicle-filters label {
  display: grid;
  gap: 0.4rem;
  color: var(--rikis-blue);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field--full,
.rikis-vehicle-filters__actions,
.rikis-vehicle-filters__count {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(8, 30, 58, 0.52);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-anthracite);
  background: var(--rikis-white);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rikis-blue);
  outline: 3px solid var(--rikis-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--rikis-blue);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
}

.form-notice {
  padding: 1rem;
  border-left: 3px solid var(--rikis-blue);
  background: var(--rikis-offwhite);
}

.form-notice--error {
  border-left-color: #8b1e2d;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

/* Vehicle bridge */
.rikis-vehicle-module {
  width: min(calc(100% - 2.5rem), var(--rikis-content));
  margin-inline: auto;
}

.rikis-vehicle-filters {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2rem;
  background: var(--rikis-offwhite);
  border: 1px solid var(--rikis-hairline);
}

.rikis-vehicle-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.rikis-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.rikis-vehicle-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--rikis-hairline);
  background: var(--rikis-white);
  transition: transform var(--rikis-transition), box-shadow var(--rikis-transition);
}

.rikis-vehicle-card:hover {
  box-shadow: var(--rikis-shadow);
  transform: translateY(-4px);
}

.rikis-vehicle-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rikis-grey);
}

.rikis-vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rikis-vehicle-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.rikis-vehicle-card__make {
  margin-bottom: 0.4rem;
  color: rgba(29, 29, 29, 0.62);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rikis-vehicle-card h3 {
  margin-bottom: 1rem;
  color: var(--rikis-blue);
  font-size: 1.3rem;
}

.rikis-vehicle-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  padding: 0;
  margin: 0 0 1rem;
  color: rgba(29, 29, 29, 0.74);
  font-size: 0.85rem;
  list-style: none;
}

.rikis-vehicle-card__price {
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--rikis-hairline);
  color: var(--rikis-blue);
  font-size: 1.45rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rikis-vehicle-card__link {
  position: absolute;
  inset: 0;
}

.rikis-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 0;
  margin: 2.5rem 0 0;
  list-style: none;
}

.rikis-pagination a,
.rikis-pagination span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rikis-hairline);
  text-decoration: none;
}

.rikis-pagination .current {
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.vehicle-detail {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.vehicle-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.vehicle-detail__main-image {
  aspect-ratio: 4 / 3;
  background: var(--rikis-grey);
}

.vehicle-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.vehicle-detail__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-detail__summary {
  position: sticky;
  top: 110px;
  padding: 1.75rem;
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.vehicle-detail__summary h2 {
  color: var(--rikis-white);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.vehicle-detail__price {
  padding-block: 1rem;
  margin-block: 1.25rem;
  border-block: 1px solid var(--rikis-hairline-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vehicle-detail__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.vehicle-detail__inquiry {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid var(--rikis-hairline);
}

.vehicle-properties {
  padding: 0;
  margin: 0;
}

.vehicle-properties > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rikis-hairline);
}

.vehicle-properties dt {
  color: rgba(29, 29, 29, 0.64);
}

.vehicle-properties dd {
  margin: 0;
  color: var(--rikis-blue);
  font-weight: 600;
  text-align: right;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--rikis-blue);
}

.site-footer a {
  color: var(--rikis-white);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(160px, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.footer-brand img {
  width: 210px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  max-width: 340px;
}

.footer-heading {
  color: var(--rikis-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list a {
  text-decoration: none;
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rikis-hairline-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.site-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__legal-button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--rikis-white);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--rikis-transition);
}

.site-footer__legal-button:hover,
.site-footer__legal-button:focus-visible {
  color: var(--rikis-white);
  background: transparent;
  text-decoration-color: currentColor;
}

/* Responsive */
@media (max-width: 1120px) {
  .site-header__inner {
    grid-template-columns: 170px 1fr auto;
    gap: 1rem;
  }

  .header-cta {
    display: none;
  }

  .primary-menu,
  .primary-menu ul {
    gap: 0.9rem;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 1060px) {
  .site-header {
    background: var(--rikis-white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    z-index: 1;
    top: var(--rikis-header-height);
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--rikis-header-height));
    height: calc(100dvh - var(--rikis-header-height));
    padding: clamp(1rem, 4vw, 2rem) max(1.25rem, calc((100vw - var(--rikis-content)) / 2)) max(1.5rem, env(safe-area-inset-bottom));
    background: var(--rikis-white);
    box-shadow: 0 20px 45px rgba(8, 30, 58, 0.12);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    opacity: 0;
    transform: translateY(-0.5rem);
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--rikis-transition), transform var(--rikis-transition), visibility var(--rikis-transition);
  }

  .admin-bar .primary-navigation {
    top: calc(var(--rikis-header-height) + var(--wp-admin--admin-bar--height, 32px));
    height: calc(100vh - var(--rikis-header-height) - var(--wp-admin--admin-bar--height, 32px));
    height: calc(100dvh - var(--rikis-header-height) - var(--wp-admin--admin-bar--height, 32px));
  }

  .menu-open .primary-navigation {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .primary-menu,
  .primary-menu ul {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .primary-menu > li > a,
  .primary-menu .sub-menu a {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--rikis-blue);
    border-bottom: 1px solid var(--rikis-hairline);
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .primary-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .primary-menu .sub-menu a {
    min-height: 48px;
    padding-left: 0.25rem;
    font-size: 0.8rem;
  }

  .primary-menu > li:hover > a,
  .primary-menu > .current-menu-item > a,
  .primary-menu > .current-menu-ancestor > a {
    border-bottom-color: var(--rikis-blue);
  }
}

@media (max-width: 920px) {
  .section-heading,
  .split,
  .vehicle-detail__top,
  .vehicle-detail__sections {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .rikis-vehicle-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-detail__summary {
    position: static;
  }

  .news-card--featured,
  .single-news__layout {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    min-height: 0;
  }

  .news-card--featured .news-card__media {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .single-news__cta {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --rikis-header-height: 74px;
  }

  .site-shell,
  .alignwide,
  .narrow,
  .rikis-vehicle-module,
  .entry-content > *:not(.alignfull):not(.alignwide):not(.wp-block-group):not(.wp-block-cover):not(.section):not(.cta-band) {
    width: min(calc(100% - 1.5rem), var(--rikis-content));
  }

  .site-brand img {
    width: 150px;
  }

  .hero {
    min-height: min(660px, calc(100svh - 74px));
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(8, 30, 58, 0.92), rgba(8, 30, 58, 0.45));
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
    letter-spacing: -0.03em;
  }

  .hero__subline {
    letter-spacing: 0.12em;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .stats,
  .card-grid,
  .rikis-vehicle-grid,
  .news-grid,
  .form-grid,
  .rikis-vehicle-filters,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .single-news__post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .single-news__post-navigation .nav-next {
    text-align: left;
  }

  .stat {
    border: 1px solid rgba(8, 30, 58, 0.12);
  }

  .stat:last-child {
    border-bottom: 1px solid rgba(8, 30, 58, 0.12);
  }

  .service-card {
    min-height: 0;
  }

  .page-hero {
    min-height: 235px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .brand-grid > * {
    padding: 1rem;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .cta-band__inner .button {
    width: 100%;
  }

  .site-footer__legal {
    flex-direction: column;
  }
}

/* Modern home uplift
 * A functional finder, stronger visual hierarchy and layered sections give the
 * front page more depth without introducing colours outside the design system.
 */
.home .hero__content {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2.6rem);
}

.home .hero__content::before {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.08));
}

.home .hero::after {
  background:
    radial-gradient(circle at 76% 44%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(0deg, rgba(8, 30, 58, 0.8) 0%, transparent 48%);
}

.home .hero__media img {
  transform: scale(1.015);
}

.home .hero__actions .button::after {
  content: "";
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--rikis-transition);
}

.home .hero__actions .button:hover::after {
  transform: translateX(0.25rem);
}

.home-finder {
  position: relative;
  z-index: 8;
  margin-top: clamp(-4.5rem, -5vw, -3.5rem);
}

.home .hero > .rikis-ai-badge {
  bottom: clamp(4rem, 5.5vw, 5.25rem);
}

.home-finder__panel {
  display: grid;
  grid-template-columns: minmax(13rem, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(8, 30, 58, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(8, 30, 58, 0.18);
}

.home-finder__intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(0.75rem, 1.8vw, 1.5rem);
  border-right: 1px solid var(--rikis-hairline);
}

.home-finder__intro .eyebrow {
  margin-bottom: 0.35rem;
  color: rgba(8, 30, 58, 0.62);
  font-size: 0.66rem;
}

.home-finder__intro h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.55vw, 1.48rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.home-finder__field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.home-finder__field > span {
  color: rgba(8, 30, 58, 0.7);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-finder__field input,
.home-finder__field select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  line-height: 1.5;
  border-color: rgba(8, 30, 58, 0.52);
  border-radius: var(--rikis-radius-small);
  background-color: var(--rikis-offwhite);
  color: var(--rikis-blue);
  font-size: 1rem;
}

/* Normalize the native select appearance while keeping native keyboard and touch controls. */
.home-finder__field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 6l4 4 4-4%27 fill=%27none%27 stroke=%27%23081e3a%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px 16px;
}

.home-finder__field input:focus,
.home-finder__field select:focus {
  border-color: rgba(8, 30, 58, 0.45);
  background-color: var(--rikis-white);
}

.home-finder .home-finder__submit {
  width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--rikis-blue);
  border-radius: var(--rikis-radius-small);
  color: var(--rikis-white);
  background: var(--rikis-blue);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--rikis-transition), background var(--rikis-transition), transform var(--rikis-transition);
}

.home-finder .home-finder__submit span:last-child {
  font-size: 1rem;
  transition: transform var(--rikis-transition);
}

.home-finder .home-finder__submit:hover {
  color: var(--rikis-blue);
  background: var(--rikis-white);
  transform: translateY(-2px);
}

.home-finder .home-finder__submit:hover span:last-child {
  transform: translateX(0.25rem);
}

.home .entry-content > .section--tight:first-child {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.home .stats {
  counter-reset: home-stat;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 30, 58, 0.1);
  border-radius: var(--rikis-radius);
  background: var(--rikis-white);
}

.home .stat {
  position: relative;
  counter-increment: home-stat;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.6vw, 2.2rem);
  border: 0;
  border-right: 1px solid rgba(8, 30, 58, 0.1);
  border-radius: 0;
  background: var(--rikis-white);
  transition: background-color var(--rikis-transition);
}

.home .stat:last-child {
  border: 0;
}

.home .stat::before {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  content: "0" counter(home-stat);
  color: rgba(8, 30, 58, 0.24);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.home .stat:hover {
  background: var(--rikis-offwhite);
}

.home .stat strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.015em;
}

.home .section-heading {
  position: relative;
  grid-template-columns: minmax(0, 0.78fr) minmax(21rem, 1.22fr);
  align-items: end;
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  border-bottom: 0;
}

.home .section-heading::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--rikis-blue) 0 8rem, var(--rikis-hairline) 8rem 100%);
}

.home .section--blue .section-heading::after {
  background: linear-gradient(90deg, var(--rikis-white) 0 8rem, var(--rikis-hairline-dark) 8rem 100%);
}

.home .section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home .section-heading .eyebrow::before {
  width: 1.8rem;
  height: 1px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
}

.home .card-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  counter-reset: home-service;
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.home .service-card {
  counter-increment: home-service;
  grid-column: span 3;
  border-color: rgba(8, 30, 58, 0.1);
  box-shadow: 0 14px 40px rgba(8, 30, 58, 0.08);
  transition: border-color var(--rikis-transition), box-shadow var(--rikis-transition), transform var(--rikis-transition);
}

.home .service-card:first-child {
  grid-column: span 6;
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.home .service-card::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: grid;
  place-items: center;
  content: "0" counter(home-service);
  border-radius: 999px;
  color: var(--rikis-white);
  background: rgba(8, 30, 58, 0.9);
  box-shadow: 0 6px 18px rgba(8, 30, 58, 0.18);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home .service-card:first-child::before {
  color: var(--rikis-blue);
  background: var(--rikis-white);
}

.home .service-card:first-child h3,
.home .service-card:first-child a {
  color: var(--rikis-white);
}

.home .service-card:first-child p {
  color: rgba(255, 255, 255, 0.76);
}

.home .service-card:first-child > .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.home .service-card:first-child .service-card__image {
  aspect-ratio: 16 / 9;
}

@media (hover: hover) {
  .home .service-card:hover {
    border-color: rgba(8, 30, 58, 0.24);
    box-shadow: 0 24px 58px rgba(8, 30, 58, 0.15);
    transform: translateY(-6px);
  }
}

.home .section--blue {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home .section--blue::before {
  position: absolute;
  z-index: -1;
  top: -18rem;
  right: -12rem;
  width: 42rem;
  height: 42rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 7rem rgba(255, 255, 255, 0.018), 0 0 0 14rem rgba(255, 255, 255, 0.012);
}

.home .section--blue .rikis-vehicle-module .rikis-vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home .section--blue .rikis-vehicle-module .rikis-vehicle-card {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.home .section--blue .rikis-vehicle-module .rikis-vehicle-results-bar {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.home .section--blue .rikis-vehicle-module .rikis-vehicle-filters__count,
.home .section--blue .rikis-vehicle-module .rikis-vehicle-results-bar__page,
.home .section--blue .rikis-vehicle-module .rikis-vehicle-filters__count strong {
  color: var(--rikis-white);
}

.home .brand-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 30, 58, 0.1);
  border-radius: var(--rikis-radius);
}

.home .brand-grid > * {
  min-height: 116px;
  border: 0;
  border-right: 1px solid rgba(8, 30, 58, 0.09);
  border-bottom: 1px solid rgba(8, 30, 58, 0.09);
  border-radius: 0;
  transition: background-color var(--rikis-transition);
}

.home .brand-grid > *:hover {
  background: var(--rikis-offwhite);
}

.home .section--grey .split {
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr);
  gap: 0;
}

.home .section--grey .split__media {
  min-height: clamp(430px, 42vw, 560px);
  aspect-ratio: auto;
  border-radius: 22px;
  box-shadow: 0 22px 58px rgba(8, 30, 58, 0.14);
}

.home .section--grey .split > div:last-child {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4.5vw, 4.25rem);
  margin-left: clamp(-5rem, -6vw, -3rem);
  border: 1px solid rgba(8, 30, 58, 0.1);
  border-radius: 22px;
  background: var(--rikis-white);
  box-shadow: 0 24px 62px rgba(8, 30, 58, 0.13);
}

.home .cta-band h2 {
  letter-spacing: -0.025em;
  text-transform: none;
}

.home .cta-band .button::after {
  content: "";
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--rikis-transition);
}

.home .cta-band .button:hover::after {
  transform: translateX(0.25rem);
}

@media (prefers-reduced-motion: no-preference) {
  .home .hero__media img {
    animation: rikis-home-hero 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home .hero__content > * {
    animation: rikis-home-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home .hero__content > :nth-child(2) {
    animation-delay: 90ms;
  }

  .home .hero__content > :nth-child(3) {
    animation-delay: 160ms;
  }

  .home .hero__content > :nth-child(4) {
    animation-delay: 230ms;
  }

  .home-finder__panel {
    animation: rikis-home-finder 760ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes rikis-home-hero {
  from {
    opacity: 0.78;
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes rikis-home-arrive {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rikis-home-finder {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .home-finder__panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-finder__intro {
    grid-column: 1 / -1;
    padding: 0 0 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--rikis-hairline);
  }
}

@media (max-width: 920px) {
  .home .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .home .service-card,
  .home .service-card:first-child {
    grid-column: auto;
  }

  .home .service-card:first-child {
    grid-column: 1 / -1;
  }

  .home .section--blue .rikis-vehicle-module .rikis-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .section--grey .split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home .section--grey .split__media {
    min-height: min(62vw, 470px);
    border-radius: 20px 20px 0 0;
  }

  .home .section--grey .split > div:last-child {
    margin: -2rem 1rem 0;
  }
}

@media (max-width: 960px) {
  .home-finder {
    margin-top: -2.5rem;
  }

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

  .home-finder__intro {
    grid-column: 1 / -1;
  }

  .home-finder .home-finder__submit {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home .hero__content {
    padding-left: 1rem;
  }

  .home-finder .site-shell {
    width: min(calc(100% - 1rem), var(--rikis-content));
  }

  .home-finder__panel {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .home-finder__intro,
  .home-finder__field:first-of-type,
  .home-finder .home-finder__submit {
    grid-column: auto;
  }

  .home-finder__intro h2 {
    font-size: 1.18rem;
  }

  .home .stats {
    border-radius: var(--rikis-radius-small);
  }

  .home .stat,
  .home .stat:last-child {
    border: 0;
    border-bottom: 1px solid rgba(8, 30, 58, 0.1);
  }

  .home .stat:last-child {
    border-bottom: 0;
  }

  .home .card-grid,
  .home .section--blue .rikis-vehicle-module .rikis-vehicle-grid {
    grid-template-columns: 1fr;
  }

  .home .service-card:first-child {
    grid-column: auto;
  }

  .home .service-card:first-child .service-card__image {
    aspect-ratio: 16 / 10;
  }

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

  .home .section--grey .split__media {
    min-height: 68vw;
  }

  .home .section--grey .split > div:last-child {
    padding: 1.4rem;
    margin: -1.25rem 0.65rem 0;
    border-radius: var(--rikis-radius);
  }
}

/* Modern subpages and editorial gallery (08/2026)
 * Reusable content modules keep long-form pages structured and give the
 * WordPress gallery a deliberate, responsive rhythm instead of a photo stack.
 */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.button-row .button,
.button-row .wp-block-button,
.button-row .wp-block-button__link {
  margin: 0;
}

.subpage-feature-grid,
.subpage-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.subpage-feature-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.subpage-card,
.subpage-feature-grid > *,
.subpage-related-card,
.subpage-related-grid > *,
.process-step,
.process-steps > * {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(8, 30, 58, 0.12);
  border-radius: var(--rikis-radius);
  color: var(--rikis-anthracite);
  background: var(--rikis-white);
  box-shadow: var(--rikis-shadow-soft);
}

.subpage-card,
.subpage-feature-grid > *,
.subpage-related-card,
.subpage-related-grid > * {
  display: flex;
  flex-direction: column;
}

.subpage-card > :last-child,
.subpage-feature-grid > * > :last-child,
.subpage-related-card > :last-child,
.subpage-related-grid > * > :last-child,
.process-step > :last-child,
.process-steps > * > :last-child {
  margin-bottom: 0;
}

.subpage-card h3,
.subpage-feature-grid > * h3,
.subpage-related-card h3,
.subpage-related-grid > * h3,
.process-step h3,
.process-steps > * h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.subpage-card p,
.subpage-feature-grid > * p,
.subpage-related-card p,
.subpage-related-grid > * p,
.process-step p,
.process-steps > * p {
  color: rgba(29, 29, 29, 0.72);
  font-size: 0.98rem;
  line-height: 1.58;
}

.subpage-card .text-link,
.subpage-feature-grid > * .text-link,
.subpage-related-card .text-link,
.subpage-related-grid > * .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.75rem;
}

.subpage-card--blue {
  border-color: var(--rikis-blue);
  color: var(--rikis-white);
  background: var(--rikis-blue);
}

.subpage-card--blue h3,
.subpage-card--blue a,
.subpage-card--blue p {
  color: var(--rikis-white);
}

.subpage-card--blue p {
  opacity: 0.78;
}

.subpage-card__label {
  display: block;
  margin-bottom: 1rem;
  color: rgba(8, 30, 58, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.subpage-card--blue .subpage-card__label {
  color: rgba(255, 255, 255, 0.68);
}

.process-steps {
  counter-reset: rikis-process;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.process-step,
.process-steps > * {
  counter-increment: rikis-process;
  padding-top: clamp(4.4rem, 7vw, 5.5rem);
  box-shadow: none;
}

.process-step::before,
.process-steps > *::before {
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 1.75rem);
  left: clamp(1.35rem, 2.5vw, 2rem);
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  content: counter(rikis-process, decimal-leading-zero);
  color: var(--rikis-white);
  background: var(--rikis-blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.process-steps strong,
.process-steps span {
  display: block;
}

.process-steps strong {
  margin-bottom: 0.65rem;
  color: var(--rikis-blue);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.2;
}

.process-steps span {
  color: rgba(29, 29, 29, 0.72);
  font-size: 0.98rem;
  line-height: 1.58;
}

.subpage-feature-card__media {
  margin-bottom: 1.25rem;
  border-radius: var(--rikis-radius-small);
  background: var(--rikis-offwhite);
  overflow: hidden;
}

.subpage-feature-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 500ms ease;
}

.subpage-feature-grid > *:hover .subpage-feature-card__media img {
  transform: scale(1.025);
}

.subpage-contact-details {
  --contact-detail-label-width: clamp(8.5rem, 34%, 11rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rikis-hairline);
}

.subpage-contact-details p {
  /*
   * The CMS markup separates multi-line values with <br> elements. A hanging
   * indent keeps every continuation line aligned with the first value line.
   */
  padding: 0.95rem 0 0.95rem var(--contact-detail-label-width);
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--rikis-hairline);
  border-radius: 0;
  background: transparent;
}

.subpage-contact-details strong {
  display: inline-block;
  width: var(--contact-detail-label-width);
  padding-right: 1rem;
  margin-left: calc(0px - var(--contact-detail-label-width));
  color: var(--rikis-blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
  vertical-align: top;
}

.subpage-contact-details strong + br {
  display: none;
}

.subpage-contact-details a {
  font-weight: 500;
  text-decoration-color: rgba(8, 30, 58, 0.34);
}

.subpage-contact-details a:hover,
.subpage-contact-details a:focus-visible {
  text-decoration-color: currentColor;
}

.contact-map {
  display: grid;
  min-width: 0;
  aspect-ratio: 4 / 3;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(8, 30, 58, 0.14);
  border-radius: var(--rikis-radius);
  background: var(--rikis-white);
  box-shadow: var(--rikis-shadow-soft);
  overflow: hidden;
}

.contact-map__consent {
  display: flex;
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(8, 30, 58, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(8, 30, 58, 0.1), var(--rikis-white) 66%);
}

.contact-map__consent h3 {
  max-width: 20ch;
  margin-bottom: 0.8rem;
  color: var(--rikis-blue);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.contact-map__consent > p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 1.35rem;
  color: rgba(29, 29, 29, 0.74);
  font-size: 0.92rem;
  line-height: 1.58;
}

.contact-map__load {
  margin: 0;
}

.contact-map__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--rikis-blue-soft);
}

.contact-map__frame:focus-visible {
  outline: 3px solid var(--rikis-white);
  outline-offset: -6px;
  box-shadow: inset 0 0 0 9px var(--rikis-blue);
}

.contact-map__footer {
  display: flex;
  min-height: 3.75rem;
  padding: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(8, 30, 58, 0.1);
  background: var(--rikis-white);
}

.contact-map__footer .text-link {
  flex: 0 0 auto;
  font-size: 0.76rem;
}

.contact-map__status {
  margin: 0;
  color: rgba(29, 29, 29, 0.68);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.contact-map[aria-busy="true"] .contact-map__footer {
  cursor: progress;
}

.opening-hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.opening-hours > div {
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1px solid var(--rikis-hairline);
  border-radius: var(--rikis-radius);
  background: var(--rikis-white);
}

.opening-hours dt {
  margin-bottom: 0.35rem;
  color: var(--rikis-blue);
  font-weight: 600;
}

.opening-hours dd {
  margin: 0;
}

.section--blue .subpage-card,
.section--blue .subpage-feature-grid > *,
.section--blue .subpage-related-card,
.section--blue .subpage-related-grid > *,
.section--blue .process-step,
.section--blue .process-steps > * {
  border-color: var(--rikis-hairline-dark);
  color: var(--rikis-white);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.section--blue .subpage-card h3,
.section--blue .subpage-card p,
.section--blue .subpage-feature-grid > * h3,
.section--blue .subpage-feature-grid > * p,
.section--blue .subpage-related-card h3,
.section--blue .subpage-related-card p,
.section--blue .subpage-related-grid > * h3,
.section--blue .subpage-related-grid > * p,
.section--blue .process-step h3,
.section--blue .process-step p,
.section--blue .process-steps > * strong,
.section--blue .process-steps > * span,
.section--blue .process-steps > * h3,
.section--blue .process-steps > * p {
  color: var(--rikis-white);
}

.section--blue .subpage-card p,
.section--blue .subpage-feature-grid > * p,
.section--blue .subpage-related-card p,
.section--blue .subpage-related-grid > * p,
.section--blue .process-step p,
.section--blue .process-steps > * span,
.section--blue .process-steps > * p {
  opacity: 0.76;
}

.section--blue .process-step::before,
.section--blue .process-steps > *::before {
  color: var(--rikis-blue);
  background: var(--rikis-white);
}

.subpage-related-card {
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--rikis-transition), box-shadow var(--rikis-transition), transform var(--rikis-transition);
}

.subpage-related-grid > * {
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--rikis-transition), box-shadow var(--rikis-transition), transform var(--rikis-transition);
}

.subpage-related-card > a:first-child:last-child,
a.subpage-related-card {
  color: inherit;
  text-decoration: none;
}

.subpage-related-card:hover,
a.subpage-related-card:hover,
.subpage-related-grid > *:hover {
  border-color: rgba(8, 30, 58, 0.3);
  box-shadow: var(--rikis-shadow);
  transform: translateY(-3px);
}

.cta-band p {
  max-width: 52rem;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-band .button-row {
  margin-top: 0;
  justify-content: flex-end;
}

/* Core gallery shortcode markup: figure.gallery-item > .gallery-icon > a > img */
.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.7rem, 1.5vw, 1.25rem);
  width: 100%;
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
}

.entry-content .gallery .gallery-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--rikis-radius);
  background: var(--rikis-blue-soft);
  box-shadow: var(--rikis-shadow-soft);
  overflow: hidden;
}

.entry-content .gallery .gallery-item:nth-child(5n + 1) {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.entry-content .gallery .gallery-item:nth-child(10n + 6) {
  grid-column: 2 / span 2;
}

.entry-content .gallery .gallery-icon,
.entry-content .gallery .gallery-icon a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.entry-content .gallery .gallery-icon a::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(8, 30, 58, 0.28));
  opacity: 0.48;
  transition: opacity var(--rikis-transition);
  pointer-events: none;
}

.entry-content .gallery .gallery-icon a::after {
  position: absolute;
  z-index: 2;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  content: "";
  color: var(--rikis-white);
  background: rgba(8, 30, 58, 0.7);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity var(--rikis-transition), transform var(--rikis-transition);
  pointer-events: none;
}

.entry-content .gallery img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.entry-content .gallery .gallery-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.75rem 4rem 0.85rem 1rem;
  margin: 0;
  color: var(--rikis-white);
  background: linear-gradient(180deg, transparent, rgba(8, 30, 58, 0.84));
  font-size: 0.8rem;
  line-height: 1.35;
  pointer-events: none;
}

.entry-content .gallery .gallery-icon a:hover::before {
  opacity: 1;
}

.entry-content .gallery .gallery-icon a:focus-visible::before {
  opacity: 1;
}

.entry-content .gallery .gallery-icon a:hover::after,
.entry-content .gallery .gallery-icon a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.entry-content .gallery .gallery-icon a:hover img,
.entry-content .gallery .gallery-icon a:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.entry-content .gallery .gallery-icon a:focus-visible {
  z-index: 3;
  outline-color: var(--rikis-white);
  outline-offset: -5px;
}

@media (max-width: 1060px) {
  .subpage-feature-grid--four,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .subpage-feature-grid,
  .subpage-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .entry-content .gallery .gallery-item:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .entry-content .gallery .gallery-item:nth-child(3n + 1) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .opening-hours {
    grid-template-columns: 1fr;
  }

  .contact-map {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .button-row,
  .cta-band .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0.7rem;
    justify-content: stretch;
  }

  .button-row .button,
  .button-row .wp-block-button,
  .button-row .wp-block-button__link {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .subpage-feature-grid,
  .subpage-feature-grid--four,
  .subpage-related-grid,
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage-contact-details strong {
    display: block;
    width: auto;
    padding: 0;
    margin-left: 0;
    margin-bottom: 0.25rem;
  }

  .subpage-contact-details p {
    padding-left: 0;
  }

  .entry-content .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .entry-content .gallery .gallery-item:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .entry-content .gallery .gallery-icon a::after {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 2.15rem;
    opacity: 1;
    transform: none;
  }

  .entry-content .gallery .gallery-caption {
    padding: 2.5rem 3.6rem 0.7rem 0.8rem;
  }

  .contact-map {
    min-height: 32rem;
    aspect-ratio: auto;
  }

  .contact-map__consent {
    padding: 1.4rem;
  }

  .contact-map__load {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .contact-map__footer {
    min-height: 4.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
  }

  .contact-map__status {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-related-card,
  .subpage-related-grid > *,
  .subpage-feature-card__media img,
  .entry-content .gallery .gallery-icon a::after,
  .entry-content .gallery img {
    transform: none !important;
  }
}

@media print {
  .home-finder {
    display: none !important;
  }
}

@media (min-width: 1800px) {
  :root {
    --rikis-content: 1440px;
  }

  .hero {
    min-height: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}

/* RIKIS customer update — September 2026: managed presentation block */
.home .hero { min-height: 720px; }
.home .hero__inner { padding-block: clamp(2.5rem, 6vh, 4.5rem) 5.5rem; }
.home .hero__brand { display: block; width: clamp(190px, 19vw, 275px); height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 6px 22px rgba(255,255,255,.12)); }
.home .hero h1 { max-width: 780px; font-size: clamp(2.5rem, 4.4vw, 4.5rem); hyphens: none; }
.home .hero__event-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(255,255,255,.45); color: #fff; font-size: .88rem; text-decoration: none; }
.home .hero__event-link:hover, .home .hero__event-link:focus-visible { border-color: #fff; }
.home .customer-news { padding-top: clamp(3rem, 6vw, 6rem); }
.home .customer-news .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.home .customer-news .section-heading h2 { max-width: 700px; margin-bottom: 0; }
.home .customer-news .section-heading > .text-link { flex-shrink: 0; }
.customer-event { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 20px; background: #081e3a; color: #fff; }
.customer-event__image { overflow: hidden; min-height: 440px; }
.customer-event__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.customer-event:hover .customer-event__image img { transform: scale(1.035); }
.customer-event__copy { padding: clamp(2rem, 4vw, 4.5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.customer-event__copy .eyebrow, .customer-event__copy h3 { color: #fff; }
.customer-event__copy h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; }
.customer-event__copy > p:not(.eyebrow):not(.customer-event__date) { color: rgba(255,255,255,.8); }
.customer-event__copy .customer-event__date { margin: 0 0 1.5rem; font-size: clamp(3.5rem, 6vw, 6rem); font-weight: 600; letter-spacing: -.065em; line-height: .95; color: #fff; }
.customer-event__date span { display: block; margin-top: .6rem; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .13em; text-transform: uppercase; }
.customer-press { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 0; margin-top: 1rem; border-bottom: 1px solid rgba(8,30,58,.16); }
.customer-press h3 { margin: .2rem 0 .6rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.customer-press p { margin-bottom: 0; }
.customer-press > .text-link { flex-shrink: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: #fff; font-size: .82rem; text-decoration: none; }
.footer-social a:hover, .footer-social a:focus-visible { background: rgba(255,255,255,.1); border-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .home .hero__content > .hero__brand { animation: rikis-brand-arrive 1100ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes rikis-brand-arrive { from { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
}
@media (max-width: 920px) {
  .home .hero { min-height: 680px; }
  .customer-event { grid-template-columns: 1fr 1fr; }
  .customer-event__image { min-height: 420px; }
  .customer-event__copy { padding: 2rem; }
}
@media (max-width: 640px) {
  .home .hero { min-height: 0; }
  .page-id-58 .split__media { order: 2; }
  .single-post .page-hero h1 { hyphens: none; font-size: clamp(1.9rem, 8.5vw, 3rem); }
  .home .hero__inner { padding-block: 2rem 4.5rem; }
  .home .hero__brand { width: 165px; margin-bottom: 1.5rem; }
  .home .hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .home .hero__event-link { font-size: .78rem; gap: .6rem; }
  .home .customer-news .section-heading, .customer-press { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .customer-event { grid-template-columns: minmax(0,1fr); border-radius: 14px; }
  .customer-event__image { min-height: 0; aspect-ratio: 16 / 10; }
  .customer-event__copy { padding: 2rem 1.5rem; }
  .customer-event__copy .customer-event__date { font-size: 4.6rem; }
  .customer-event__copy .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero__brand, .customer-event__image img { animation: none !important; transform: none !important; transition: none !important; }
}
/* End RIKIS customer update */

/* RIKIS motion design — 2026-09-14. Managed, responsive, no external libraries. */
.home .hero--immersive { min-height: max(740px, calc(100svh - 80px)); align-items: center; background: #041121; }
.home .hero--immersive::before { background: linear-gradient(180deg, rgba(4,17,33,.68), rgba(4,17,33,.8) 50%, #041121), radial-gradient(ellipse at center, transparent, rgba(4,17,33,.75)); }
.home .hero--immersive::after { background: radial-gradient(ellipse at 50% 32%, rgba(165,202,232,.16), transparent 56%); }
.home .hero--immersive .hero__inner { padding-block: 3rem 7.5rem; }
.home .hero--immersive .hero__content { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 980px; padding: 0; margin-inline: auto; text-align: center; }
.home .hero--immersive .hero__content::before { display: none; }
.home .hero--immersive .hero__content > * { animation: none; }
.home .hero--immersive .eyebrow { margin-bottom: 1rem; font-size: .65rem; letter-spacing: .23em; }
.home .hero--immersive h1 { max-width: 900px; margin: 0 auto 1rem; font-size: clamp(2.15rem, 3.7vw, 3.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; hyphens: none; }
.home .hero--immersive .hero__subline { max-width: 650px; margin-bottom: 1.7rem; font-size: 1rem; font-weight: 400; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.home .hero--immersive .hero__actions { justify-content: center; }
.home .hero--immersive .hero__actions .button { min-width: 218px; border-radius: 9px; }
.home .hero--immersive .hero__actions .button:not(.button--light) { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.04); color: #fff; }
.home .hero--immersive .hero__event-link { margin-top: 1.25rem; font-size: .78rem; letter-spacing: .015em; border-bottom-color: rgba(255,255,255,.25); }
.home .hero--immersive .hero__scroll { position: absolute; z-index: 3; bottom: 6rem; left: 50%; display: flex; align-items: center; gap: .8rem; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.home .hero--immersive .hero__scroll .rikis-scroll-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: .9rem; }
.home .hero--immersive .hero__scroll:hover, .home .hero--immersive .hero__scroll:focus-visible { color: #fff; }
.home #fahrzeuge-finden { scroll-margin-top: 110px; }
.home .home-finder__panel { border: 1px solid rgba(8,30,58,.1); border-radius: 22px; box-shadow: 0 24px 60px -25px rgba(8,30,58,.38); }
body.wp-theme-rikis-theme .site-header { background: rgba(249,251,253,.96); box-shadow: 0 2px 20px rgba(8,30,58,.035); }
body.wp-theme-rikis-theme .button { transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease; }
body.wp-theme-rikis-theme .button:hover { box-shadow: 0 0 0 1px rgba(149,190,225,.45), 0 0 25px rgba(116,167,210,.3); transform: translateY(-2px); }
body.wp-theme-rikis-theme .button:focus-visible { outline: 2px solid #6c9ec8; outline-offset: 4px; }
body.wp-theme-rikis-theme .header-cta:hover { color: #fff; background: #143657; box-shadow: 0 0 0 1px rgba(149,190,225,.55), 0 0 26px rgba(116,167,210,.55); }
body.wp-theme-rikis-theme .page-hero { border-radius: 0 0 28px 28px; }
body.wp-theme-rikis-theme .page-hero h1 { text-wrap: balance; hyphens: manual; }
body.wp-theme-rikis-theme .news-card, body.wp-theme-rikis-theme .subpage-feature-card, body.wp-theme-rikis-theme .subpage-related-grid > article { border-radius: 20px; }
body.wp-theme-rikis-theme .news-card { box-shadow: 0 10px 30px -18px rgba(8,30,58,.2); }
body.wp-theme-rikis-theme .news-card:hover { box-shadow: 0 22px 50px -22px rgba(8,30,58,.28); }
.home .modern-services .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.home .modern-services .service-card { grid-column: auto; min-height: 535px; justify-content: flex-end; padding: 2rem 1.8rem; color: #fff; background: #081e3a; border: 0; border-radius: 22px; box-shadow: none; transition: box-shadow 350ms ease; }
.home .modern-services .service-card > .service-card__image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.home .modern-services .service-card__image img { position: absolute; left: 50%; translate: -50% 0; width: auto; min-width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform 850ms cubic-bezier(.2,.65,.3,1); }
.home .modern-services .service-card::after { display: block; position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(4,17,33,.02) 5%, rgba(4,17,33,.25) 35%, rgba(4,17,33,.94) 75%, #041121); pointer-events: none; }
.home .modern-services .service-card > :not(.service-card__image) { position: relative; z-index: 2; margin-inline: 0; }
.home .modern-services .service-card > .eyebrow { margin-top: 10rem; margin-bottom: .8rem; font-size: .6rem; letter-spacing: .16em; color: rgba(255,255,255,.76); }
.home .modern-services .service-card h3 { margin-bottom: .85rem; font-size: clamp(1.8rem, 2.5vw, 2.7rem); letter-spacing: -.045em; color: #fff; }
.home .modern-services .service-card p:not(.eyebrow) { margin-bottom: 1.25rem; color: rgba(255,255,255,.8); font-size: .94rem; }
.home .modern-services .service-card .text-link { margin-top: 0; margin-bottom: 0; color: #fff; font-size: .67rem; }
.home .modern-services .service-card:hover { box-shadow: 0 20px 42px -24px rgba(8,30,58,.7); }
.home .modern-services .service-card:hover .service-card__image img, .home .modern-services .service-card:focus-within .service-card__image img { transform: scale(1.06); }
.home .customer-event { border-radius: 24px; box-shadow: 0 18px 45px -28px rgba(8,30,58,.4); }
.home .customer-press { padding: 2rem; border: 1px solid rgba(8,30,58,.12); border-radius: 18px; background: #f8fafc; }
.home .modern-story { background: #081e3a; color: #fff; }
.home .modern-story .split { grid-template-columns: minmax(0,1fr); gap: 3rem; }
.home .modern-story .split__media { width: 100%; min-width: 0; min-height: 0; height: auto; aspect-ratio: 3.2; border-radius: 22px; }
.home .modern-story .split__media img { width: 100%; height: 100%; object-fit: cover; }
.home .modern-story .split > div:last-child { width: 100%; max-width: 850px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
.home .modern-story h2 { font-size: clamp(2rem, 4vw, 3.7rem); color: #fff; letter-spacing: -.04em; text-wrap: balance; }
.home .modern-story p { color: rgba(255,255,255,.76); }
.home .modern-story .eyebrow { color: rgba(255,255,255,.65); }
.home .modern-story .button { background: #fff; color: #081e3a; border-color: #fff; }
body.wp-theme-rikis-theme .cta-band { background: radial-gradient(ellipse at right top, #183d5b, #081e3a 65%); }
body.wp-theme-rikis-theme .cta-band h2 { text-transform: none; letter-spacing: -.04em; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
body.wp-theme-rikis-theme .site-footer { border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 1061px) {
  body.wp-theme-rikis-theme .primary-menu { gap: clamp(.15rem,.5vw,.55rem); }
  body.wp-theme-rikis-theme .primary-menu > li > a { min-height: 42px; padding: .65rem .65rem; margin-block: 18px; border: 0; border-radius: 8px; transition: background 220ms ease, box-shadow 220ms ease; }
  body.wp-theme-rikis-theme .primary-menu > li:hover > a, body.wp-theme-rikis-theme .primary-menu > li:focus-within > a { background: #fff; box-shadow: 0 0 20px rgba(148,183,212,.45); }
  body.wp-theme-rikis-theme .primary-menu > .current-menu-item > a, body.wp-theme-rikis-theme .primary-menu > .current-menu-ancestor > a { background: #edf2f6; }
  body.wp-theme-rikis-theme .primary-menu .sub-menu { border-radius: 14px; padding: .55rem; min-width: 245px; }
  body.wp-theme-rikis-theme .primary-menu .sub-menu a { border-radius: 7px; }
}
@media (max-width: 1060px) {
  .home .hero--immersive { min-height: 740px; }
  .home .hero--immersive h1 { max-width: 730px; }
  .home .modern-services .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home .modern-services .service-card:last-child { grid-column: 1 / -1; min-height: 430px; }
  .home .modern-services .service-card:last-child p { max-width: 650px; }
}
@media (max-width: 640px) {
  .home .hero--immersive { min-height: 0; }
  .home .hero--immersive .hero__inner { padding-block: 2.2rem 7rem; }
  .home .hero--immersive .eyebrow { font-size: .55rem; letter-spacing: .14em; max-width: 290px; line-height: 1.7; }
  .home .hero--immersive h1 { max-width: 360px; font-size: clamp(1.9rem,8.3vw,2.65rem); }
  .home .hero--immersive .hero__subline { max-width: 285px; margin-bottom: 1.35rem; font-size: .88rem; line-height: 1.7; }
  .home .hero--immersive .hero__actions { max-width: 360px; gap: .65rem; }
  .home .hero--immersive .hero__actions .button { min-width: 0; }
  .home .hero--immersive .hero__event-link { font-size: .69rem; }
  .home .hero--immersive .hero__scroll { bottom: 3.6rem; font-size: .53rem; }
  .home .hero--immersive > .rikis-ai-badge { bottom: 3.6rem; font-size: .48rem; right: .75rem; }
  .home .modern-services .card-grid { grid-template-columns: minmax(0,1fr); }
  .home .modern-services .service-card, .home .modern-services .service-card:last-child { grid-column: auto; min-height: 490px; padding: 1.6rem; }
  .home .modern-services .service-card h3 { font-size: 2.35rem; }
  .home .modern-story .split__media { aspect-ratio: 2; }
  .home .modern-story .split { gap: 2rem; }
  .home .customer-press { padding: 1.5rem; }
  body.wp-theme-rikis-theme .page-hero { border-radius: 0 0 20px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home .hero--immersive .hero__content > * { animation: rikis-copy-reveal 850ms 1200ms cubic-bezier(.2,.75,.2,1) both; }
  .home .hero--immersive .hero__media img { animation: rikis-cinematic-image 4.5s ease-out both; }
  @keyframes rikis-copy-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes rikis-cinematic-image { from { transform: scale(1.09); } to { transform: scale(1.025); } }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero--immersive .hero__content > *, .home .hero--immersive .hero__media img, .home .modern-services .service-card__image img { animation: none !important; transform: none !important; filter: none !important; clip-path: none !important; }
  body.wp-theme-rikis-theme .button:hover { transform: none; }
}
/* End RIKIS motion design */

/* RIKIS homepage component consistency — 2026-09-14 */
.home .brand-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(.65rem,1.3vw,1.1rem); overflow: visible; border: 0; border-radius: 0; }
.home .brand-grid > a { min-width: 0; min-height: 112px; padding: 1rem; border: 1px solid rgba(8,30,58,.1); border-radius: 16px; background: #f7f9fb; transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.home .brand-grid img { opacity: .9; }
.home .brand-grid > a:hover { background: #fff; border-color: rgba(8,30,58,.22); box-shadow: 0 10px 28px -18px rgba(8,30,58,.3); }
.home .rikis-vehicle-module .rikis-vehicle-card { border-radius: 20px; overflow: hidden; }
.home .rikis-vehicle-module .rikis-vehicle-results-bar { border-radius: 14px; }
.home .cta-band { padding-block: clamp(2rem,4vw,3.5rem); background: #081e3a; }
.home .cta-band::after { display: none; }
.home .cta-band__inner { padding: clamp(1.5rem,3vw,3rem); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: radial-gradient(ellipse at right top,#20486a,#102d4a 60%,#0b2340); }
.home .cta-band h2 { font-size: clamp(1.9rem,3.3vw,3rem); }
@media (max-width: 920px) {
  .home .cta-band__inner { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .home .cta-band__inner .button { justify-self: start; }
}
@media (max-width: 640px) {
  .home .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home .brand-grid > a { min-height: 100px; }
  .home .cta-band__inner { border-radius: 20px; }
  .home .cta-band__inner .button { justify-self: stretch; }
}
/* End RIKIS homepage component consistency */

/* RIKIS shared card alignment and linked brands — 2026-09-14 */
.brand-grid > a.brand-link { position: relative; color: var(--rikis-blue); text-decoration: none; }
.brand-grid > a.brand-link::after { content: ""; position: absolute; top: .65rem; right: .8rem; font-size: .95rem; opacity: .55; }
.brand-grid > a.brand-link:focus-visible { outline: 3px solid var(--rikis-blue); outline-offset: 3px; }
.brand-grid > a.brand-link:focus-visible img { filter: none; opacity: 1; }
.text-link[target="_blank"]::after { content: ""; }
.subpage-card > p:last-child:has(> .text-link),
.subpage-feature-grid > * > p:last-child:has(> .text-link),
.subpage-related-grid > * > p:last-child:has(> .text-link) { margin-top: auto; margin-bottom: 0; }
.subpage-card .text-link,
.subpage-feature-grid .text-link,
.subpage-related-grid .text-link { letter-spacing: .08em; line-height: 1.5; }
.subpage-feature-grid > * > h3 { line-height: 1.25; text-wrap: balance; }
.subpage-related-grid > article > h3 { line-height: 1.25; text-wrap: balance; }
.subpage-feature-grid:has(> :nth-child(4):last-child),
.subpage-related-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4,minmax(0,1fr)); }
@supports (grid-template-rows: subgrid) {
  .subpage-related-grid > article { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .subpage-related-grid > article > p:last-child:has(> .text-link) { align-self: end; }
}
@media (min-width: 641px) {
  .subpage-feature-grid > * > h3 { min-block-size: 2.5em; }
}
@media (max-width: 1199px) {
  .subpage-feature-grid:has(> :nth-child(4):last-child),
  .subpage-related-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .subpage-feature-grid:has(> :nth-child(4):last-child),
  .subpage-related-grid:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0,1fr); }
  .subpage-related-grid > article { display: flex; grid-row: auto; }
}
/* End RIKIS shared card alignment and linked brands */

/* RIKIS homepage preloader — bounded CSS animation, no loading dependency. */
.rikis-preloader { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 2rem; background: radial-gradient(ellipse at 50% 42%, #163651, #07182d 55%, #041121); pointer-events: none; animation: rikis-preloader-out 1600ms ease both; }
.rikis-preloader__inner { display: grid; justify-items: center; gap: 2.2rem; width: min(72vw,420px); }
/* Optical centering: the visible mark spans x=4..807 in the 900px original. */
.rikis-preloader__logo { display: block; width: 100%; height: auto; translate: 4.944444% 0; filter: drop-shadow(0 0 32px rgba(161,196,224,.15)); animation: rikis-preloader-logo 650ms cubic-bezier(.2,.7,.2,1) both; }
.rikis-preloader__line { justify-self: center; margin-inline: auto; width: 140px; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.rikis-preloader__line::after { content: ""; display: block; width: 100%; height: 100%; background: #fff; transform-origin: center; animation: rikis-preloader-line 1100ms ease both; }
@keyframes rikis-preloader-out { 0%,70% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes rikis-preloader-logo { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rikis-preloader-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.home .hero--immersive h1 { max-width: 980px; font-size: clamp(2.7rem,5.7vw,5.4rem); }
.home .hero--immersive .hero__inner { padding-block: 6rem 8rem; }
@media (max-width: 640px) {
  .rikis-preloader__inner { width: min(72vw,300px); gap: 1.75rem; }
  .home .hero--immersive .hero__inner { padding-block: 5rem 7.5rem; }
  .home .hero--immersive h1 { font-size: clamp(2.3rem,10vw,3.4rem); }
}
@media (prefers-reduced-motion: reduce), print { .rikis-preloader { display: none; animation: none; } }
/* End RIKIS homepage preloader */
@media (min-width: 961px) {
  .brand-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}


/* Local SVG link icons: no icon fonts, emoji or external requests. */
:root {
  --rikis-arrow-right: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012h16m-6-6%206%206-6%206%22%2F%3E%3C%2Fsvg%3E");
  --rikis-arrow-left: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2012H4m6-6-6%206%206%206%22%2F%3E%3C%2Fsvg%3E");
  --rikis-arrow-external: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M6%206h12v12%22%2F%3E%3C%2Fsvg%3E");
  --rikis-arrow-down: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16m-6-6%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
}
.rikis-icon,
.text-link::after,
.home .hero__actions .button::after,
.home .cta-band .button::after,
.brand-grid > a.brand-link::after {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  vertical-align: -.15em;
  background-color: currentColor;
  -webkit-mask: var(--rikis-link-icon, var(--rikis-arrow-right)) center / contain no-repeat;
  mask: var(--rikis-link-icon, var(--rikis-arrow-right)) center / contain no-repeat;
  pointer-events: none;
}
.rikis-icon--right { --rikis-link-icon: var(--rikis-arrow-right); }
.rikis-icon--left { --rikis-link-icon: var(--rikis-arrow-left); }
.rikis-icon--down { --rikis-link-icon: var(--rikis-arrow-down); }
.rikis-icon--external,
.brand-grid > a.brand-link::after,
.text-link[target="_blank"]::after { --rikis-link-icon: var(--rikis-arrow-external); }
.text-link:has(> .rikis-icon)::after { content: none; }
.entry-content .gallery .gallery-icon a::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M6%206h12v12%22%2F%3E%3C%2Fsvg%3E");
  background-position: center;
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
}
.rikis-vehicle-module .rikis-pagination .rikis-icon {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: currentColor;
}
/* End local SVG link icons. */


/* RIKIS customer revision: lighter homepage and clear navigation — 2026-09-16. */
.home #rikis-entdecken { scroll-margin-top: 110px; }
.home .hero--immersive { min-height: min(780px, calc(100svh - 80px)); background: #343b38; }
.home .hero--immersive::before { background: linear-gradient(180deg, rgba(24,30,29,.25), rgba(24,30,29,.42) 50%, rgba(24,30,29,.7)); }
.home .hero--immersive::after { background: radial-gradient(ellipse at 75% 25%, rgba(255,222,158,.12), transparent 65%); }
.home .hero--immersive .hero__inner { padding-block: 5rem 7rem; }
.home .hero--immersive h1 { text-shadow: 0 2px 22px rgba(0,0,0,.3); }
.home .hero--immersive .hero__subline { color: #fff; }
.home .hero--immersive .hero__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,34rem); gap: 1rem; }
.home .hero--immersive .hero__actions .button { width: 100%; min-width: 0; min-height: 54px; padding: .9rem 1rem; background: #fff; color: var(--rikis-blue); border: 1px solid #fff; border-radius: 9px; }
.home .hero--immersive .hero__actions .button:hover { background: #f3eee5; border-color: #f3eee5; }
.home .hero--immersive .hero__scroll { bottom: 2rem; color: #fff; }
.home .hero--immersive > .rikis-ai-badge { bottom: 1rem; }
.home .customer-event { color: var(--rikis-blue); background: #f3eee5; border: 1px solid #e7ded0; }
.home .customer-event__copy .eyebrow,
.home .customer-event__copy h3,
.home .customer-event__copy .customer-event__date { color: var(--rikis-blue); }
.home .customer-event__copy > p:not(.eyebrow):not(.customer-event__date) { color: #4b514e; }
.home .customer-event__copy .button { color: #fff; background: var(--rikis-blue); border-color: var(--rikis-blue); }
.home .section--warm { background: #f8f5ef; }
.home .section--warm .rikis-vehicle-module .rikis-vehicle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home .modern-story { background: #f3eee5; color: var(--rikis-blue); }
.home .modern-story h2 { color: var(--rikis-blue); }
.home .modern-story p { color: #4b514e; }
.home .modern-story .eyebrow { color: #62695f; }
.home .modern-story .button { color: #fff; background: var(--rikis-blue); border-color: var(--rikis-blue); }
.home .cta-band { background: #fff; color: var(--rikis-blue); }
.home .cta-band__inner { background: #f8f5ef; border-color: #e7ded0; }
.home .cta-band h2 { color: var(--rikis-blue); }
.home .cta-band .button { color: #fff; background: var(--rikis-blue); border-color: var(--rikis-blue); }
.home .brand-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.brand-grid.brand-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 1024px) {
  .home .brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home .section--warm .rikis-vehicle-module .rikis-vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .home .hero--immersive { min-height: 0; }
  .home .hero--immersive .hero__inner { padding-block: 4rem 6rem; }
  .home .hero--immersive .hero__actions { grid-template-columns: minmax(0,1fr); width: min(100%,320px); gap: .75rem; }
  .home .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home .section--warm .rikis-vehicle-module .rikis-vehicle-grid { grid-template-columns: minmax(0,1fr); }
  .brand-grid.brand-grid--three { gap: .5rem; }
  .brand-grid.brand-grid--three > a { padding: .6rem; min-height: 90px; }
}
/* End RIKIS customer revision. */

/* Weinsberg panorama: homepage image framing, 2026-09-17. */
.home .hero--immersive { min-height: min(640px, calc(100svh - 80px)); }
.home .hero--immersive .hero__inner { padding-block: 3.5rem 6rem; }
.home .hero--immersive::before { background: linear-gradient(180deg, rgba(24,30,29,.38), rgba(24,30,29,.60) 48%, rgba(24,30,29,.70)); }
.home .hero--immersive .hero__media img { object-position: 58% center; }
@media (max-width: 640px) {
  .home .hero--immersive { min-height: 0; }
  .home .hero--immersive .hero__inner { padding-block: 4rem 6rem; }
  .home .hero--immersive .hero__media img { object-position: 78% center; }
}
/* End Weinsberg panorama. */

/* RIKIS Standortkarten: vollständige Karten und mobile Vergrößerung, 2026-10-05. */
.page-id-63 .directions-contact { align-items: start; }
.page-id-63 .directions-maps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 3rem; }
.page-id-63 .directions-map { margin: 0; min-width: 0; padding: 0; border: 1px solid #dce1e6; border-radius: 20px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.page-id-63 .directions-map > a { display: block; }
.page-id-63 .directions-map img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.page-id-63 .directions-map figcaption { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; gap: .5rem; }
.page-id-63 .directions-map figcaption > p { margin: auto 0 0; }
.page-id-63 .directions-map h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.page-id-63 .directions-map .text-link { margin-top: auto; font-size: .75rem; letter-spacing: .06em; overflow-wrap: normal; word-break: normal; }
.page-id-63 .directions-map a:focus-visible { outline: 3px solid var(--rikis-blue); outline-offset: -3px; }
@media (max-width: 767px) {
  .page-id-63 .directions-maps { grid-template-columns: minmax(0,1fr); margin-top: 2rem; }
}
/* Ende RIKIS Standortkarten. */
