/* ==========================================================================
   RWA Service & Montage UG — Corporate Identity
   Farben direkt aus dem Firmenlogo entnommen:
     Navy   #002E62  — Träger der Marke, Flächen, Typo
     Orange #FE5500  — ausschliesslich Aktion (Buttons, Akzente, aktive Zustände)
     Himmel #65BDFC  — Licht/Tageslicht, Linien und Hervorhebungen
   ========================================================================== */

:root {
  --rwa-navy:      #002E62;
  --rwa-navy-900:  #001C3D;
  --rwa-navy-700:  #063D7D;
  --rwa-orange:    #FE5500;
  --rwa-orange-600:#E04A00;
  --rwa-sky:       #65BDFC;
  --rwa-sky-soft:  #E8F3FD;
  --rwa-ink:       #12212F;
  --rwa-grau:      #5B6B7B;
  --rwa-linie:     #DFE7EF;
  --rwa-weiss:     #FFFFFF;

  --rwa-radius:    14px;
  --rwa-radius-s:  10px;
  --rwa-schatten:  0 10px 30px rgba(0, 46, 98, .10);
  --rwa-schatten-l:0 22px 60px rgba(0, 46, 98, .18);
  --rwa-max:       1240px;
}

/* --------------------------------------------------------------------------
   1. Grundlagen

   Schriften: Montserrat für Überschriften, Open Sans für Fliesstext.
   Beide liegen bereits lokal im NOVA-Theme — kein externer Aufruf, damit
   ohne Google-Fonts-Problematik und ohne zusätzliche Ladezeit.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "RWA Display";
  src: url("../base/fonts/montserrat/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RWA Text";
  src: url("../base/fonts/opensans/open-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RWA Text";
  src: url("../base/fonts/opensans/open-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RWA Text";
  src: url("../base/fonts/opensans/open-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body.is-nova,
body {
  font-family: "RWA Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--rwa-ink);
  background: var(--rwa-weiss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: "RWA Display", "Segoe UI Semibold", system-ui, Arial, sans-serif;
  color: var(--rwa-navy);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
}

a { color: var(--rwa-navy-700); }
a:hover { color: var(--rwa-orange); }

.rwa-wrap {
  max-width: var(--rwa-max);
  margin-inline: auto;
  padding-inline: 22px;
}

/* Abschnittsrhythmus — bewusst unterschiedlich, kein gleichförmiges Raster */
.rwa-sektion { padding: clamp(56px, 8vw, 104px) 0; }
.rwa-sektion--eng { padding: clamp(40px, 5vw, 64px) 0; }
.rwa-sektion--dunkel {
  background: linear-gradient(160deg, var(--rwa-navy) 0%, var(--rwa-navy-900) 100%);
  color: #D8E4F2;
}
.rwa-sektion--dunkel h2,
.rwa-sektion--dunkel h3 { color: #fff; }
.rwa-sektion--hell { background: var(--rwa-sky-soft); }

/* Überschrift mit Markenstrich statt Kasten */
.rwa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rwa-orange);
  margin-bottom: 14px;
}
.rwa-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--rwa-orange);
}
.rwa-sektion--dunkel .rwa-kicker { color: var(--rwa-sky); }
.rwa-sektion--dunkel .rwa-kicker::before { background: var(--rwa-sky); }

.rwa-titel   { font-size: clamp(1.75rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.rwa-lead    { font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--rwa-grau); max-width: 62ch; line-height: 1.65; }
.rwa-sektion--dunkel .rwa-lead { color: #B9CCE2; }

/* --------------------------------------------------------------------------
   2. Schaltflächen — weich, nicht kantig
   -------------------------------------------------------------------------- */

.rwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.rwa-btn svg { width: 18px; height: 18px; flex: none; }

.rwa-btn--primaer {
  background: var(--rwa-orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(254, 85, 0, .32);
}
.rwa-btn--primaer:hover {
  background: var(--rwa-orange-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 85, 0, .42);
  text-decoration: none;
}
.rwa-btn--weiss {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.rwa-btn--weiss:hover { background: #fff; color: var(--rwa-navy); transform: translateY(-2px); text-decoration: none; }

.rwa-btn--linie {
  background: transparent;
  color: var(--rwa-navy);
  border-color: var(--rwa-linie);
}
.rwa-btn--linie:hover { border-color: var(--rwa-navy); transform: translateY(-2px); text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Kopfbereich
   -------------------------------------------------------------------------- */

.rwa-kopf {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rwa-linie);
}
.rwa-kopf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.rwa-logo img { height: 80px; width: auto; display: block; }

.rwa-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.rwa-nav a {
  color: var(--rwa-navy);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.rwa-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--rwa-orange);
  /* Breite nicht animieren (Layout-Thrash) — stattdessen skalieren */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.rwa-nav a:hover::after { transform: scaleX(1); }

.rwa-kopf__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--rwa-navy);
  text-decoration: none;
  white-space: nowrap;
}
.rwa-kopf__tel svg { width: 19px; height: 19px; color: var(--rwa-orange); }

.rwa-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--rwa-navy);
}
.rwa-burger svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   4. Hero — Schrift im Bild, kein weisser Kasten davor
   -------------------------------------------------------------------------- */

.rwa-hero {
  position: relative;
  /* Der Hero füllt exakt den Rest des Bildschirms: Kopfhöhe (96px) abgezogen.
     Dadurch schliesst die Merkmalleiste auf jedem Monitor bündig mit der
     Unterkante ab — kein weisser Rest darunter. Keine Obergrenze, sonst
     bleibt auf hohen Bildschirmen genau dieser Streifen stehen.
     svh statt vh, weil mobile Browser ihre Leisten ein- und ausblenden. */
  min-height: max(470px, calc(100vh - 97px));
  min-height: max(470px, calc(100svh - 97px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--rwa-navy-900);
}
.rwa-hero__bild {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: rwa-heroZoom 18s ease-out forwards;
}
@keyframes rwa-heroZoom { to { transform: scale(1); } }

.rwa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,28,61,.92) 0%, rgba(0,28,61,.62) 38%, rgba(0,28,61,.18) 68%, rgba(0,28,61,.30) 100%);
}
.rwa-hero__inhalt {
  position: relative;
  z-index: 2;
  /* unten Platz, damit der Text nicht unter der Merkmalleiste verschwindet */
  padding-bottom: clamp(86px, 11.5vh, 150px);
  padding-top: clamp(34px, 4.5vh, 74px);
  width: 100%;
}
.rwa-hero__claim {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  color: var(--rwa-sky);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 14px;
}
.rwa-hero__claim span { color: var(--rwa-orange); }
.rwa-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, min(4.3vw, 6.1vh), 3.35rem);
  max-width: 18ch;
  margin-bottom: 16px;
  text-shadow: 0 2px 26px rgba(0,20,45,.45);
}
.rwa-hero p {
  color: #CFE0F2;
  font-size: clamp(.98rem, min(1.35vw, 2vh), 1.13rem);
  max-width: 54ch;
  line-height: 1.58;
  margin-bottom: 26px;
}
.rwa-hero__aktionen { display: flex; flex-wrap: wrap; gap: 14px; }

/* Merkmalleiste — liegt auf dem Hero-Foto, nicht als eigener Block darunter.
   Halbtransparent mit Weichzeichner, damit das Bild durchscheint. */
.rwa-marken {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  color: #fff;
  background: linear-gradient(to top, rgba(0,28,61,.86), rgba(0,28,61,.62));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-top: 1px solid rgba(255,255,255,.16);
}
.rwa-marken__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.rwa-marken__zelle {
  padding: clamp(13px, 2.2vh, 20px) 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.rwa-marken__zelle:first-child { border-left: 0; padding-left: 0; }
.rwa-marken__zelle svg { width: 25px; height: 25px; color: var(--rwa-sky); flex: none; }
.rwa-marken__zelle b { display: block; font-size: .98rem; line-height: 1.25; }
.rwa-marken__zelle small { color: #AFC8E2; font-size: .82rem; line-height: 1.3; display: block; }

/* --------------------------------------------------------------------------
   5. Leistungsfelder — bewusst asymmetrisch (gross + zwei kleine)
   -------------------------------------------------------------------------- */

.rwa-felder {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px;
  margin-top: 44px;
}
.rwa-feld {
  position: relative;
  border-radius: var(--rwa-radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  isolation: isolate;
  background: var(--rwa-navy);
}
.rwa-feld:first-child { grid-row: span 2; min-height: 542px; }

.rwa-feld img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
  z-index: -2;
}
.rwa-feld::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,28,61,.94) 8%, rgba(0,28,61,.55) 45%, rgba(0,28,61,.12) 100%);
  transition: background .35s ease;
}
.rwa-feld:hover img { transform: scale(1.07); }
.rwa-feld:hover::after { background: linear-gradient(to top, rgba(0,46,98,.96) 8%, rgba(0,46,98,.66) 50%, rgba(254,85,0,.20) 100%); }

.rwa-feld__text { padding: 30px 28px; color: #fff; width: 100%; }
.rwa-feld__nr {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--rwa-orange);
  display: block;
  margin-bottom: 8px;
}
.rwa-feld h3 { color: #fff; font-size: clamp(1.25rem, 2vw, 1.7rem); margin-bottom: 8px; }
.rwa-feld p { color: #C6D9EC; font-size: .96rem; line-height: 1.55; margin: 0; max-width: 46ch; }
.rwa-feld__mehr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}
.rwa-feld__mehr svg { width: 16px; height: 16px; transition: transform .25s ease; }
.rwa-feld:hover .rwa-feld__mehr svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Leistungsliste — Linien-Icons, keine Kachelwand
   -------------------------------------------------------------------------- */

.rwa-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 2px;
  margin-top: 44px;
  background: var(--rwa-linie);
  border: 1px solid var(--rwa-linie);
  border-radius: var(--rwa-radius);
  overflow: hidden;
}
.rwa-liste__pos {
  background: #fff;
  padding: 30px 26px;
  transition: background .25s ease, transform .25s ease;
}
.rwa-liste__pos:hover { background: var(--rwa-sky-soft); }
.rwa-liste__pos svg {
  width: 30px; height: 30px;
  color: var(--rwa-navy);
  stroke-width: 1.5;
  margin-bottom: 16px;
  transition: color .25s ease, transform .25s ease;
}
.rwa-liste__pos:hover svg { color: var(--rwa-orange); transform: translateY(-3px); }
.rwa-liste__pos h4 { font-size: 1.06rem; margin-bottom: 7px; color: var(--rwa-navy); }
.rwa-liste__pos p { font-size: .92rem; color: var(--rwa-grau); margin: 0; line-height: 1.55; }

/* --------------------------------------------------------------------------
   7. Ablauf — Zeitleiste
   -------------------------------------------------------------------------- */

.rwa-ablauf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
  position: relative;
}
.rwa-ablauf::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--rwa-sky) 0 8px, transparent 8px 16px);
  opacity: .5;
}
.rwa-schritt { position: relative; text-align: center; }
.rwa-schritt__nr {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rwa-sky);
  color: var(--rwa-navy);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all .3s ease;
}
.rwa-schritt:hover .rwa-schritt__nr {
  background: var(--rwa-orange);
  border-color: var(--rwa-orange);
  color: #fff;
  transform: scale(1.08);
}
.rwa-schritt h4 {
  font-size: .84rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rwa-orange);
  margin-bottom: 10px;
}
.rwa-schritt h3 { font-size: 1.2rem; margin-bottom: 10px; }
.rwa-schritt p { color: var(--rwa-grau); font-size: .95rem; line-height: 1.6; margin: 0; }

/* --------------------------------------------------------------------------
   8. Wartung — dunkler Block mit Bild
   -------------------------------------------------------------------------- */

.rwa-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.rwa-split__bild {
  border-radius: var(--rwa-radius);
  overflow: hidden;
  box-shadow: var(--rwa-schatten-l);
}
.rwa-split__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rwa-gruende { list-style: none; padding: 0; margin: 30px 0 0; }
.rwa-gruende li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.rwa-gruende li:last-child { border-bottom: 0; }
.rwa-gruende svg { width: 22px; height: 22px; color: var(--rwa-sky); flex: none; margin-top: 2px; }
.rwa-gruende b { color: #fff; display: block; margin-bottom: 3px; }
.rwa-gruende span { color: #A8C2DC; font-size: .93rem; line-height: 1.55; }

/* Rechtlicher Hinweis: als eigenständiger Block gesetzt, ohne farbige
   Seitenleiste — die Auszeichnung übernimmt die Überschriftzeile. */
.rwa-hinweis {
  margin-top: 30px;
  padding: 22px 24px;
  background: rgba(255,255,255,.06);
  border-radius: var(--rwa-radius-s);
  font-size: .93rem;
  color: #C3D6EA;
  line-height: 1.62;
}
.rwa-hinweis__kopf {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 9px;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rwa-hinweis__kopf svg { width: 17px; height: 17px; color: var(--rwa-sky); flex: none; }

/* --------------------------------------------------------------------------
   9. Referenzen — versetztes Raster mit Zoom
   -------------------------------------------------------------------------- */

.rwa-galerie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Feste Zeilenhoehe statt Seitenverhaeltnis: nur so schliesst ein Feld ueber
     zwei Spalten buendig mit zwei gestapelten Feldern daneben ab. Mit
     aspect-ratio geht die Rechnung nie auf - die Hoehen driften auseinander. */
  grid-auto-rows: clamp(132px, 15.5vw, 196px);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 44px;
}
.rwa-galerie figure {
  position: relative;
  margin: 0;
  border-radius: var(--rwa-radius-s);
  overflow: hidden;
  background: var(--rwa-navy);
}
/* Rhythmus: zwei Felder brechen aus - zwei Spalten breit UND zwei Zeilen hoch,
   damit sie exakt auf der Hoehe der Nachbarn enden. */
.rwa-galerie figure:nth-child(1),
.rwa-galerie figure:nth-child(8) { grid-column: span 2; grid-row: span 2; }

.rwa-galerie img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), filter .35s ease;
}
.rwa-galerie figure:hover img { transform: scale(1.08); }
.rwa-galerie figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(0,28,61,.92), transparent);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.rwa-galerie figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   10. Kontakt
   -------------------------------------------------------------------------- */

.rwa-kontakt { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 64px); }

.rwa-karte {
  background: #fff;
  border: 1px solid var(--rwa-linie);
  border-radius: var(--rwa-radius);
  padding: 32px;
  box-shadow: var(--rwa-schatten);
}
.rwa-kontakt__zeile {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--rwa-linie);
}
.rwa-kontakt__zeile:last-child { border-bottom: 0; padding-bottom: 0; }
.rwa-kontakt__zeile svg { width: 21px; height: 21px; color: var(--rwa-orange); flex: none; margin-top: 3px; }
.rwa-kontakt__zeile b { display: block; color: var(--rwa-navy); font-size: .96rem; margin-bottom: 2px; }
.rwa-kontakt__zeile a, .rwa-kontakt__zeile span { color: var(--rwa-grau); font-size: .95rem; text-decoration: none; }
.rwa-kontakt__zeile a:hover { color: var(--rwa-orange); }

/* Formular — weiche Felder, das war ausdrücklicher Wunsch */
.rwa-form .form-group { margin-bottom: 18px; }
.rwa-form label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--rwa-navy);
  margin-bottom: 7px;
  display: block;
}
.rwa-form .form-control,
.rwa-form input[type="text"],
.rwa-form input[type="email"],
.rwa-form input[type="tel"],
.rwa-form select,
.rwa-form textarea {
  width: 100%;
  border: 1.5px solid var(--rwa-linie);
  border-radius: var(--rwa-radius-s);
  padding: 13px 16px;
  font-size: .98rem;
  color: var(--rwa-ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  height: auto;
}
.rwa-form .form-control:focus,
.rwa-form input:focus,
.rwa-form select:focus,
.rwa-form textarea:focus {
  outline: 0;
  border-color: var(--rwa-sky);
  box-shadow: 0 0 0 4px rgba(101, 189, 252, .18);
}
.rwa-form textarea { min-height: 138px; resize: vertical; }
.rwa-form__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rwa-form__hinweis { font-size: .84rem; color: var(--rwa-grau); margin-top: 14px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   11. Fusszeile
   -------------------------------------------------------------------------- */

.rwa-fuss {
  background: var(--rwa-navy-900);
  color: #9FB6CE;
  padding: 60px 0 26px;
}
.rwa-fuss__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.rwa-fuss img { height: 106px; width: auto; margin-bottom: 16px; margin-left: -6px; }
.rwa-fuss h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.rwa-fuss ul { list-style: none; padding: 0; margin: 0; }
.rwa-fuss li { margin-bottom: 11px; }
.rwa-fuss a { color: #9FB6CE; text-decoration: none; font-size: .95rem; }
.rwa-fuss a:hover { color: var(--rwa-sky); }
.rwa-fuss__unten {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .86rem;
}
.rwa-fuss__macher { margin-left: auto; opacity: .8; }
.rwa-fuss__macher a { font-weight: 600; }
.rwa-fuss__macher a:hover { color: var(--rwa-orange); }

/* --------------------------------------------------------------------------
   12. Shop-Bestandteile ausblenden
   Die Seite ist eine Unternehmenswebsite; der Shop bleibt technisch bestehen,
   tritt aber nicht in Erscheinung.
   -------------------------------------------------------------------------- */

body.is-nova .navbar-cart,
body.is-nova .cart-icon-wrapper,
body.is-nova #shop-nav .cart-dropdown,
body.is-nova .comparelist-icon-wrapper,
body.is-nova .wishlist-icon-wrapper,
body.is-nova .navbar-wishlist,
body.is-nova .navbar-compare,
body.is-nova .search-wrapper,
body.is-nova #search-header,
body.is-nova .navbar-toggler-search,
body.is-nova #jtl-nav-wrapper,
body.is-nova .main-navigation,
body.is-nova nav.navbar-categories,
body.is-nova .breadcrumb-wrapper,
body.is-nova .price-wrapper,
body.is-nova .product-price,
body.is-nova .topbar-wrapper,
body.is-nova .topbar-main,
body.is-nova .header-top-bar,
body.is-nova .navbar-account,
body.is-nova footer .footer-boxes {
  display: none !important;
}

/* NOVAs Inhaltsrahmen: der Abstand oben stammt aus der ausgeblendeten Navigation,
   der weisse Rest unten aus einer Whitespace-Zeilenbox hinter der Fusszeile.
   Ein Flex-Container ignoriert reine Whitespace-Knoten - damit ist beides weg. */
body.rwa-seite #content-wrapper,
body.rwa-seite #content-wrapper > div:not([class]) {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* NOVAs eigener Kopf und Fuss weichen unserem Aufbau */
body.rwa-seite > .navbar,
body.rwa-seite > header:not(.rwa-kopf),
body.rwa-seite > footer:not(.rwa-fuss) { display: none !important; }

/* --------------------------------------------------------------------------
   13. Mobil — Handy zuerst geprüft, nicht nachträglich geflickt
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  /* Einspaltig folgt sonst direkt auf das Sanierungs-Bild das Wartungs-Bild -
     zwei Fotos ohne Text dazwischen, das liest sich wie ein Bruch. Im
     Wartungsblock wandert das Bild deshalb unter den Text, damit jede
     Überschrift ihren eigenen Abschnitt anführt. */
  #wartung .rwa-split { display: flex; flex-direction: column; }
  #wartung .rwa-split__bild { order: 2; margin-top: 6px; }

  .rwa-felder { grid-template-columns: 1fr; }
  .rwa-feld:first-child { grid-row: auto; min-height: 320px; }
  .rwa-split { grid-template-columns: 1fr; }
  .rwa-kontakt { grid-template-columns: 1fr; }
  .rwa-galerie { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(120px, 19vw, 170px); }
  .rwa-marken__grid { grid-template-columns: repeat(2, 1fr); }
  .rwa-marken__zelle { padding: 15px 16px; }
  .rwa-marken__zelle:nth-child(3) { border-left: 0; padding-left: 0; }
  .rwa-fuss__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .rwa-nav { display: none; }
  .rwa-burger { display: block; }
  .rwa-kopf__tel span { display: none; }

  .rwa-nav.ist-offen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rwa-linie);
    box-shadow: var(--rwa-schatten);
    padding: 10px 22px 20px;
  }
  .rwa-nav.ist-offen a { padding: 15px 0; border-bottom: 1px solid var(--rwa-linie); }
  .rwa-nav.ist-offen a:last-child { border-bottom: 0; }
  .rwa-nav.ist-offen a::after { display: none; }

  .rwa-ablauf { grid-template-columns: 1fr; gap: 34px; }
  .rwa-ablauf::before { display: none; }
  .rwa-galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-rows: clamp(130px, 33vw, 190px); }
  .rwa-galerie figure:nth-child(1),
  .rwa-galerie figure:nth-child(8) { grid-column: span 2; grid-row: span 1; }
  .rwa-form__reihe { grid-template-columns: 1fr; gap: 0; }
  .rwa-hero { min-height: clamp(430px, calc(100svh - 150px), 620px); }
  .rwa-hero__inhalt { padding-top: 70px; padding-bottom: clamp(140px, 24vw, 190px); }
  .rwa-karte { padding: 24px; }
}

@media (max-width: 560px) {
  .rwa-wrap { padding-inline: 17px; }
  .rwa-logo img { height: 60px; }
  /* Die Leiste verlaesst hier die absolute Lage. Der Hero ist ein Flex-Container
     - ohne Richtungswechsel stellt sie sich sonst NEBEN den Text statt darunter. */
  .rwa-hero {
    flex-direction: column;
    justify-content: flex-end;
  }
  .rwa-hero__inhalt { width: 100%; }
  .rwa-marken {
    position: static;
    width: 100%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--rwa-navy);
  }
  .rwa-marken__grid { grid-template-columns: 1fr; }
  .rwa-marken__zelle { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .rwa-marken__zelle:first-child { border-top: 0; }
  .rwa-hero__inhalt { padding-bottom: clamp(40px, 8vw, 60px); }
  .rwa-fuss__grid { grid-template-columns: 1fr; gap: 30px; }
  .rwa-hero__aktionen { flex-direction: column; align-items: stretch; }
  .rwa-hero__aktionen .rwa-btn { justify-content: center; }
  .rwa-galerie { grid-auto-rows: clamp(120px, 38vw, 175px); }
  .rwa-fuss__unten { flex-direction: column; }
}

/* Bewegung nur, wenn der Besucher sie nicht abbestellt hat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rwa-hero__bild { animation: none; transform: none; }
}

/* Einblenden beim Scrollen — bewusst als Zusatz, nicht als Voraussetzung.
   Ohne JavaScript (oder wenn der Beobachter nicht auslöst) bleibt der Inhalt
   sichtbar; erst die Klasse .js-an am <html> schaltet die Animation scharf. */
.js-an .rwa-auf {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.js-an .rwa-auf.ist-da { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   14. Rückmeldung des Kontaktformulars
   -------------------------------------------------------------------------- */

.rwa-meldung {
  margin: 4px 0 20px;
  padding: 16px 20px;
  border-radius: var(--rwa-radius-s);
  font-size: .95rem;
  line-height: 1.55;
}
.rwa-meldung--ok {
  background: #E9F7EF;
  color: #14532D;
  box-shadow: inset 0 0 0 1px #BBE5CC;
}
.rwa-meldung--fehler {
  background: #FDECEA;
  color: #7A1F14;
  box-shadow: inset 0 0 0 1px #F5C6C0;
}
.rwa-meldung a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. Kartenausschnitt in der Kontaktkarte
   Statisches OpenStreetMap-Bild, das nach oben in die Karte ausblendet —
   keine Einbettung fremder Dienste, damit ohne Einwilligung nutzbar.
   -------------------------------------------------------------------------- */

.rwa-karte { display: flex; flex-direction: column; }

.rwa-karte__karte {
  position: relative;
  /* bündig bis an die Ränder der Karte, unten abschliessend */
  margin: 26px -32px -32px;
  margin-top: auto;
  padding-top: 26px;
  min-height: 250px;
  overflow: hidden;
  border-radius: 0 0 var(--rwa-radius) var(--rwa-radius);
}
.rwa-karte__karte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(.82) contrast(.96);
}
/* Verlauf nach oben ins Weiss der Karte */
.rwa-karte__karte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              #fff 0%,
              rgba(255,255,255,.82) 22%,
              rgba(255,255,255,.30) 52%,
              rgba(255,255,255,.10) 100%);
  pointer-events: none;
}

/* Standortpunkt */
.rwa-karte__punkt {
  position: absolute;
  left: 62%;
  top: 56%;
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--rwa-orange);
  box-shadow: 0 0 0 5px rgba(254, 85, 0, .26), 0 2px 8px rgba(0,0,0,.35);
  z-index: 2;
}

.rwa-karte__route {
  position: absolute;
  left: 32px;
  bottom: 44px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  background: #fff;
  color: var(--rwa-navy);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 46, 98, .22);
  transition: transform .18s ease, color .18s ease;
}
.rwa-karte__route:hover { transform: translateY(-2px); color: var(--rwa-orange); text-decoration: none; }

.rwa-karte__hinweis {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 3;
  margin: 0;
  font-size: .68rem;
  color: #5B6B7B;
  background: rgba(255,255,255,.78);
  padding: 2px 8px;
  border-radius: 5px;
}
.rwa-karte__hinweis a { color: inherit; }

@media (max-width: 560px) {
  .rwa-karte__karte { margin-left: -24px; margin-right: -24px; margin-bottom: -24px; min-height: 210px; }
  .rwa-karte__route { left: 24px; bottom: 40px; }
}

/* --------------------------------------------------------------------------
   16. Unterseiten (Impressum, Datenschutz, AGB)
   Sie bekommen denselben Kopf und dieselbe Fusszeile wie die Startseite.
   Der Inhalt kommt aus dem Shop-CMS und braucht nur lesbare Typografie.
   -------------------------------------------------------------------------- */

body.rwa-unterseite #content-wrapper > div:not([class]) { display: block; }

body.rwa-unterseite .link-content,
body.rwa-unterseite .index-heading-wrapper {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 22px;
}
body.rwa-unterseite .index-heading-wrapper { padding-top: 46px; }
body.rwa-unterseite .link-content { padding-bottom: 64px; }

body.rwa-unterseite .index-heading-wrapper h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 6px;
}
body.rwa-unterseite .link-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 38px 0 14px;
}
body.rwa-unterseite .link-content h3 {
  font-size: 1.08rem;
  margin: 30px 0 10px;
}
body.rwa-unterseite .link-content p,
body.rwa-unterseite .link-content li {
  font-size: 1rem;
  line-height: 1.72;
  color: #35485C;
}
body.rwa-unterseite .link-content p { margin-bottom: 14px; }
body.rwa-unterseite .link-content ul { margin: 0 0 18px 20px; }
body.rwa-unterseite .link-content li { margin-bottom: 7px; }

/* Die Rechtstexte kommen ohne Platzhalter-Auszeichnung aus. Sollte doch einmal
   ein <mark> im Inhalt stehen, bleibt es unauffällig statt grell gelb. */
body.rwa-unterseite .link-content mark {
  background: transparent;
  color: inherit;
  font-weight: 600;
}
