/* =========================================================
   THOR SERVICES – WARTUNG
   Vollständige Stylesheet-Datei
   ========================================================= */

:root {
  --ink: #06111f;
  --ink-2: #0a1829;
  --ink-3: #10243a;
  --white: #ffffff;
  --soft: #f4f7fa;
  --soft-2: #e9eef3;
  --text: #0b1726;
  --muted: #657383;
  --muted-dark: rgba(255, 255, 255, 0.68);
  --line: rgba(11, 23, 38, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --green: #20c767;
  --green-dark: #13964b;
  --cyan: #00a6d6;
  --shadow: 0 28px 90px rgba(6, 17, 31, 0.18);
  --header: 92px;
  --wide: 1540px;
  --inner: 1240px;
  --page: clamp(22px, 4vw, 72px);
  --section: clamp(82px, 9vw, 132px);
}

/* Reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  color: #03110a;
  background: var(--green);
}

/* Accessibility */

.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 9999;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 17, 31, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(100%, var(--wide));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page);
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: center;
  gap: 34px;
}

.brand {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  width: auto;
  max-width: clamp(240px, 20vw, 340px);
  max-height: 78px;
  object-fit: contain;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links > a,
.dropdown-toggle {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--text);
  background: transparent;
  transition: color 0.18s ease;
}

.nav-links > a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown-toggle:hover,
.dropdown:focus-within .dropdown-toggle {
  color: var(--ink);
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.dropdown-toggle:hover::after,
.dropdown:focus-within .dropdown-toggle::after {
  transform: scaleX(1);
}

.dropdown {
  position: relative;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  right: -18px;
  left: -18px;
  height: 16px;
}

.dropdown-toggle span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 290px;
  padding: 12px;
  border: 1px solid rgba(6, 17, 31, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(6, 17, 31, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

/*
   Wichtig:
   Die im HTML vorhandene Klasse ".dropdown.active" öffnet
   das Menü beim Seitenaufruf NICHT mehr automatisch.
*/
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(6, 17, 31, 0.06);
  font-size: 0.92rem;
  font-weight: 680;
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a::after {
  content: "→";
  color: var(--green-dark);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.dropdown-menu a:hover {
  color: var(--green-dark);
}

.dropdown-menu a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  justify-self: end;
  border: 1px solid rgba(6, 17, 31, 0.14);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Allgemeine Elemente
   ========================================================= */

.section {
  width: min(100%, var(--inner));
  margin: 0 auto;
  padding: var(--section) 22px;
}

.section-label,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before,
.kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 980px;
  margin-top: 22px;
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  font-weight: 740;
}

h2 {
  font-size: clamp(2rem, 3.15vw, 3.55rem);
  font-weight: 720;
}

h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.32rem);
  font-weight: 760;
}

p {
  color: var(--muted);
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 760;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: var(--ink);
  background: var(--white);
}

/* =========================================================
   Wartungs-Hero
   (Hintergrundbild liegt als Bild-Element im HTML,
    darüber ein dunkler Verlauf für die Lesbarkeit)
   ========================================================= */

.wartung-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 15%, rgba(32, 199, 103, 0.14), transparent 30%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #0d2238 100%);
}

.wartung-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* Dunkler Verlauf über dem Bild: links fast deckend für den Text,
   rechts bleibt das Motiv sichtbar */
.wartung-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 12, 22, 0.72), transparent 34%),
    linear-gradient(
      100deg,
      rgba(6, 17, 31, 0.97) 0%,
      rgba(7, 19, 34, 0.92) 40%,
      rgba(6, 17, 31, 0.66) 74%,
      rgba(6, 17, 31, 0.45) 100%
    );
}

.wartung-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.wartung-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--wide));
  min-height: 660px;
  margin: 0 auto;
  padding: clamp(88px, 9vw, 145px) var(--page);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(42px, 7vw, 100px);
}

.wartung-hero .kicker {
  color: var(--green);
}

.wartung-hero h1 {
  color: var(--white);
}

.wartung-hero__lead {
  max-width: 800px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.68;
}

.wartung-hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wartung-hero__panel {
  padding: 30px;
  border-left: 3px solid var(--green);
  background: rgba(6, 17, 31, 0.55);
  backdrop-filter: blur(18px);
}

.wartung-hero__panel strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.35;
}

.wartung-hero__panel p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* =========================================================
   Ankerleiste
   ========================================================= */

.wartung-anchorbar {
  position: relative;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(6, 17, 31, 0.07);
}

.wartung-anchorbar__inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: 0 var(--page);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wartung-anchorbar a {
  min-height: 62px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  border-right: 1px solid rgba(6, 17, 31, 0.08);
  font-size: 0.84rem;
  font-weight: 720;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.wartung-anchorbar a:first-child {
  border-left: 1px solid rgba(6, 17, 31, 0.08);
}

.wartung-anchorbar a:hover {
  color: var(--green-dark);
  background: var(--soft);
}

/* =========================================================
   Intro / Prozesse
   ========================================================= */

.wartung-intro {
  padding-bottom: clamp(70px, 8vw, 110px);
}

.wartung-intro__grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.wartung-intro__text > p {
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 1.3vw, 1.17rem);
  line-height: 1.75;
}

.wartung-process {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.wartung-process > div {
  min-height: 84px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 15px;
  background: var(--white);
}

.wartung-process span {
  color: var(--green-dark);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.wartung-process strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Bildzeile im Intro-Bereich:
   zwei gleich hohe Bilder mit Bildunterschrift im Verlauf */

.wartung-intro__media {
  margin-top: clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wartung-intro__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: clamp(280px, 30vw, 420px);
  background: var(--soft-2);
}

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

.wartung-intro__figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 22px 18px;
  border-left: 3px solid var(--green);
  color: var(--white);
  background: linear-gradient(to top, rgba(4, 12, 22, 0.85), transparent);
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: 0.03em;
}

/* =========================================================
   Wartungsbereiche
   ========================================================= */

.wartung-section {
  position: relative;
}

.wartung-section + .wartung-section {
  border-top: 1px solid rgba(6, 17, 31, 0.08);
}

.wartung-section__head {
  max-width: 900px;
  margin-bottom: clamp(38px, 5vw, 66px);
}

.wartung-section__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wartung-section__head h2 {
  max-width: 900px;
}

.wartung-section__lead {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.72;
}

/*
   Einheitliches Höhensystem:
   Bildspalte und Textspalte werden in jedem Abschnitt
   exakt gleich hoch. Die Bilder füllen die verfügbare
   Höhe, die Karten teilen sich die Höhe gleichmäßig auf.
*/

.wartung-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
}

.wartung-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(240px, 1.3fr) minmax(180px, 1fr);
  gap: 16px;
  height: 100%;
}

/* Bei genau einem Bild: volle Spaltenhöhe nutzen */
.wartung-media-grid > :only-child {
  grid-row: 1 / -1;
}

.wartung-media-grid:has(> :only-child) {
  grid-template-rows: minmax(320px, 1fr);
}

/*
   Bilder:
   - kein grau gestrichelter Rahmen
   - keine Platzhalterdarstellung
   - Bilder füllen ihre Zelle immer vollständig aus
*/
.wartung-image-placeholder,
.wartung-image {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0 !important;
  outline: 0 !important;
  background: var(--soft-2);
  box-shadow: none;
}

.wartung-image-placeholder::before,
.wartung-image-placeholder::after {
  display: none !important;
  content: none !important;
}

.wartung-image-placeholder > span {
  display: none;
}

.wartung-image img,
.wartung-image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  outline: 0 !important;
}

/* Bilder sollen niemals einen Browser-/Theme-Rahmen erhalten */
.wartung-media-grid figure,
.wartung-media-grid picture,
.wartung-media-grid img {
  border-style: none !important;
}

/* Rechte Spalte: Karten (und ggf. Hinweiskasten) füllen die Höhe */

.wartung-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wartung-side .wartung-cards {
  flex: 1;
}

.wartung-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.wartung-card {
  min-height: 190px;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
}

.wartung-card h3 {
  margin-bottom: 15px;
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.wartung-card p {
  line-height: 1.68;
  overflow-wrap: anywhere;
}

/* Hinweiskästen unterhalb der Leistungskarten */

.wartung-note {
  margin-top: 18px;
  padding: 22px 24px;
  border-left: 3px solid var(--green-dark);
  background: var(--soft);
}

.wartung-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.98rem;
}

.wartung-note p {
  line-height: 1.68;
}

/* Kontaktzeile am Ende jedes Wartungsbereichs */

.wartung-section__contactrow {
  margin-top: clamp(30px, 4vw, 46px);
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  position: relative;
  margin-left: 6px;
  color: var(--green-dark);
  font-weight: 740;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.text-link::after {
  content: "→";
  margin-left: 7px;
  display: inline-block;
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--ink);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Dunkle Abschnitte */

.wartung-section--dark {
  width: 100%;
  max-width: none;
  padding-right: max(22px, calc((100vw - var(--inner)) / 2 + 22px));
  padding-left: max(22px, calc((100vw - var(--inner)) / 2 + 22px));
  color: var(--white);
  background:
    radial-gradient(circle at 15% 25%, rgba(32, 199, 103, 0.1), transparent 32%),
    var(--ink);
}

.wartung-section--dark .wartung-section__eyebrow {
  color: var(--green);
}

.wartung-section--dark h2,
.wartung-section--dark h3 {
  color: var(--white);
}

.wartung-section--dark p {
  color: var(--muted-dark);
}

.wartung-section--dark .wartung-cards {
  border-color: var(--line-light);
  background: var(--line-light);
}

.wartung-section--dark .wartung-card {
  background: rgba(255, 255, 255, 0.055);
}

.wartung-section--dark .wartung-card h3 {
  color: var(--white);
}

.wartung-section--dark .wartung-image-placeholder,
.wartung-section--dark .wartung-image {
  background: rgba(255, 255, 255, 0.07);
}

.wartung-section--dark .wartung-note {
  border-left-color: var(--green);
  background: rgba(255, 255, 255, 0.055);
}

.wartung-section--dark .wartung-note strong {
  color: var(--white);
}

.wartung-section--dark .text-link {
  color: var(--green);
}

.wartung-section--dark .text-link:hover {
  color: var(--white);
}

/* =========================================================
   Abschnittsnavigation
   - feste Nummernleiste rechts (Desktop)
   - Pfeile für vorherigen / nächsten Abschnitt
   - Kontakt-Button, in jedem Abschnitt erreichbar
   ========================================================= */

.wartung-sectionnav {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(6, 17, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.wartung-sectionnav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.wartung-sectionnav a {
  position: relative;
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.wartung-sectionnav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.wartung-sectionnav a.is-active {
  color: #03110a;
  background: var(--green);
}

/* Beschriftung beim Überfahren mit der Maus */
.wartung-sectionnav a::before {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 6px 12px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(6px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
}

.wartung-sectionnav a:hover::before,
.wartung-sectionnav a:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wartung-sectionnav__contact {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 10px !important;
  height: 38px !important;
  color: var(--green) !important;
}

.wartung-sectionnav__contact:hover {
  color: var(--white) !important;
}

/* Pfeile: vorheriger / nächster Abschnitt */

.wartung-sectionarrows {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.wartung-sectionarrows.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.wartung-sectionarrows button,
.wartung-sectionarrows__contact {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(6, 17, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.wartung-sectionarrows button:hover,
.wartung-sectionarrows__contact:hover {
  color: #03110a;
  background: var(--green);
  border-color: var(--green);
}

.wartung-sectionarrows button:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.wartung-sectionarrows__contact {
  color: var(--green);
}

/* PV-Partnerhinweis */

.pv-partner-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--green-dark);
  color: var(--ink);
  background: var(--soft);
}

.pv-partner-cta h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.pv-partner-cta p {
  max-width: 760px;
  margin: 0 0 1rem;
}

.pv-partner-cta a {
  min-height: 46px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.pv-partner-cta a:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* =========================================================
   Abschluss-CTA
   ========================================================= */

.wartung-cta {
  padding-top: clamp(60px, 7vw, 100px);
}

.wartung-cta__box {
  padding: clamp(34px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(32, 199, 103, 0.16), transparent 32%),
    var(--ink);
}

.wartung-cta__box .section-label {
  color: var(--green);
}

.wartung-cta__box h2 {
  max-width: 780px;
  margin-top: 18px;
  color: var(--white);
}

.wartung-cta__box p:not(.section-label) {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
  line-height: 1.7;
}

.wartung-cta__box .btn-primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  white-space: nowrap;
}

.wartung-cta__box .btn-primary:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  width: 100%;
  padding: clamp(54px, 7vw, 90px) var(--page);
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(160px, 0.55fr));
  gap: clamp(34px, 5vw, 80px);
  color: var(--white);
  background: #020812;
}

.footer-main {
  max-width: 440px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 20px;
}

.footer-logo img {
  width: min(100%, 150px);
  height: auto;
}

.footer-main p,
.footer-column span {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.18s ease;
}

.footer-column a:hover {
  color: var(--green);
}

/* =========================================================
   Reveal-Animation
   ========================================================= */

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .navbar {
    grid-template-columns: minmax(220px, 300px) 1fr;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.86rem;
  }

  .wartung-layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  }

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

@media (max-width: 920px) {
  :root {
    --header: 82px;
  }

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

  .brand img {
    max-width: 220px;
    max-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 0;
    padding: 0 var(--page);
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid rgba(6, 17, 31, 0.1);
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      opacity 0.2s ease;
  }

  .nav-links.active {
    max-height: calc(100vh - var(--header));
    padding-top: 18px;
    padding-bottom: 24px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links > a,
  .dropdown-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(6, 17, 31, 0.08);
  }

  .nav-links > a::after,
  .dropdown-toggle::after {
    display: none;
  }

  .dropdown::before {
    display: none;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition:
      max-height 0.25s ease,
      padding 0.25s ease;
  }

  /* Mobil nur öffnen, wenn JavaScript die aktive Klasse setzt */
  .dropdown.active .dropdown-menu {
    max-height: 600px;
    padding: 6px 0 12px 14px;
    pointer-events: auto;
  }

  .dropdown-menu a {
    padding: 12px 10px;
  }

  .wartung-hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wartung-hero__panel {
    max-width: 680px;
  }

  .wartung-intro__grid,
  .wartung-layout {
    grid-template-columns: 1fr;
  }

  /* Auf schmalen Bildschirmen wieder feste Bildhöhen,
     da die Spalten untereinander stehen */
  .wartung-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .wartung-media-grid > :only-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .wartung-image-placeholder,
  .wartung-image {
    height: auto;
    min-height: 220px;
  }

  .wartung-image img,
  .wartung-image-placeholder img {
    min-height: 220px;
  }

  .wartung-media-grid > :only-child,
  .wartung-media-grid > :only-child img {
    min-height: clamp(260px, 42vw, 420px);
  }

  .wartung-cta__box {
    grid-template-columns: 1fr;
  }

  .wartung-cta__box .btn {
    justify-self: start;
  }

  /* Nummernleiste auf Tablets/Smartphones ausblenden,
     Pfeile und Kontakt-Button bleiben verfügbar */
  .wartung-sectionnav {
    display: none;
  }

  .wartung-sectionarrows {
    right: 14px;
    bottom: 16px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: 20px;
    --section: 74px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.1rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .brand img {
    max-width: 205px;
    max-height: 60px;
  }

  .wartung-hero__inner {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .wartung-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .wartung-anchorbar__inner {
    padding: 0;
  }

  .wartung-intro__media {
    grid-template-columns: 1fr;
  }

  .wartung-intro__figure {
    height: clamp(220px, 60vw, 320px);
  }

  .wartung-media-grid {
    grid-template-columns: 1fr;
  }

  .wartung-cards {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

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

  .wartung-process > div {
    grid-template-columns: 40px 1fr;
  }

  .wartung-cta__box {
    padding: 30px 22px;
  }

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

  .footer-logo img {
    width: 120px;
  }

  .wartung-sectionarrows button,
  .wartung-sectionarrows__contact {
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   Mobile-Sicherheitsfix gegen abgeschnittene Inhalte
   ========================================================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  section,
  article,
  nav,
  div,
  figure {
    min-width: 0;
  }

  .wartung-hero,
  .wartung-section,
  .wartung-intro,
  .wartung-cta {
    overflow: visible;
  }

  h1,
  h2,
  h3,
  p,
  a,
  strong,
  span {
    overflow-wrap: anywhere;
  }
}

/* Bewegungsreduktion */

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

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