/* ==========================================================================
   RS Hausverwaltung GmbH — Stylesheet
   Farben, Typografie und Abstände übernommen aus dem bisherigen Template.
   Primärfarbe #1A8E82 · Grau #9D9D9C · Work Sans / Noto Sans
   ========================================================================== */

:root {
  --teal: #1a8e82;
  --oc-icon: #000000;
  --oc-item: #252525;
  --teal-dark: #157a70;
  --teal-light: #e8f4f3;
  --grey: #9d9d9c;
  --grey-light: #f5f5f5;
  --grey-border: #e4e4e4;
  --text: #1b1a18;
  --white: #fff;
  --font-body: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-alt: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 100px;
  --header-h-sticky: 60px;
  --radius: 4px;
  --shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------- Reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h-sticky) + 20px);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  color: var(--white);
  background: var(--teal);
}

::-moz-selection {
  color: var(--white);
  background: var(--teal);
}

/* ---------------------------------------------------------- Typografie --- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: pretty;
}

h1,
.h1 {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
}

h2,
.h2 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

h3,
.h3 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
}

h4,
.h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

h5,
.h5,
h6,
.h6 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

p {
  margin: 0 0 1.1em;
}

ol,
ul {
  padding-left: 1rem;
  margin: 0 0 1.1em;
}

li {
  margin-bottom: 0.35em;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--grey-border);
  margin: 40px 0;
}

.uppercase {
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1200;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  color: var(--white);
  text-decoration: none;
}

/* ------------------------------------------------------------- Layout --- */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Hero mit zusätzlichem Spalten-Gutter (Quelle: x136, w660) */
.hero .container {
  padding-left: 30px;
  padding-right: 30px;
}

.footer-grid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.container--narrow {
  max-width: 960px;
}

.section {
  padding: 90px 0;
}

.section--tight {
  padding: 60px 0;
}

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

.section__head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.section__title {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey);
  margin-bottom: 0.3em;
}

.section__subtitle {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--teal);
  margin: 0;
}

.grid {
  display: grid;
  gap: 30px;
}

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

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

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

/* -------------------------------------------------------------- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-sticky {
  height: var(--header-h-sticky);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 1px;
  flex: 0 0 auto;
}

.logo img {
  height: 90px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header.is-sticky .logo img {
  height: 60px;
}

/* Hauptnavigation */

.nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav__item {
  position: relative;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 15px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__item.is-open > .nav__link,
.nav__link[aria-current="page"] {
  color: var(--teal);
  text-decoration: none;
}

.nav__link .caret {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--white);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.12);
  border-top: 2px solid var(--teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav__item:hover > .nav__sub,
.nav__item.is-open > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub li {
  margin: 0;
}

.nav__sub a {
  display: block;
  padding: 9px 20px;
  color: var(--grey);
  font-size: 15px;
  font-weight: 500;
}

.nav__sub a:hover,
.nav__sub a:focus-visible {
  color: var(--teal);
  background: var(--grey-light);
  text-decoration: none;
}

/* Burger */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--oc-icon);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Offcanvas */

.offcanvas {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  z-index: 1100;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.offcanvas.is-open {
  transform: translateX(0);
}

.offcanvas__logo img {
  height: 90px;
  width: auto;
  margin-bottom: 24px;
}

.offcanvas__list,
.offcanvas__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas__list > li {
  border-bottom: 1px solid var(--grey-border);
  margin: 0;
}

.offcanvas__list a,
.offcanvas__list > li > span {
  display: block;
  padding: 15px 10px;
  color: var(--oc-item);
  font-size: 17px;
}

.offcanvas__list a:hover,
.offcanvas__list a:focus-visible,
.offcanvas__list a[aria-current="page"] {
  color: var(--teal);
  text-decoration: none;
}

.offcanvas__list ul a {
  padding-left: 26px;
  font-size: 16px;
}

.offcanvas__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--oc-item);
  cursor: pointer;
}

.backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ------------------------------------------------------- Seitenbuttons --- */

.side-buttons {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 900;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-buttons li {
  margin: 0;
  overflow: hidden;
}

/* Fähnchen: nur die 37px Symbolfläche ragt heraus, beim Überfahren fährt es ein */
.side-buttons a {
  display: flex;
  align-items: center;
  height: 36px;
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: translateX(calc(100% - 37px));
  transition: transform 0.3s ease;
}

.side-buttons li:hover a,
.side-buttons a:focus-visible {
  transform: translateX(0);
  text-decoration: none;
}

.side-buttons__ico {
  flex: 0 0 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 36px;
}

.side-buttons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.side-buttons__label {
  padding: 0 35px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 36px;
  text-transform: uppercase;
  white-space: nowrap;
}

.provenexpert-badge {
  position: fixed;
  top: var(--header-h);
  right: 0;
  z-index: 900;
  width: 190px;
  line-height: 0;
}

.provenexpert-badge img {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 0;
  color: var(--white);
  text-align: center;
  background-color: var(--teal);
  background-image: linear-gradient(
      180deg,
      rgba(26, 142, 130, 0.9) 0%,
      rgba(26, 142, 130, 0.9) 100%
    ),
    url("../img/header.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: scroll;
}

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 30px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
  margin: 0 auto 30px;
  max-width: none;
}

@media (max-width: 1199.98px) {
  .hero {
    padding: 100px 0;
  }
}

/* Kopfbereich der Unterseiten */

.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 0.2em;
}

.page-hero p {
  margin: 0;
  font-size: 18px;
  opacity: 0.95;
}

/* --------------------------------------------------------- Breadcrumbs --- */

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
}

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

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--grey);
}

.breadcrumb a {
  color: var(--grey);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* -------------------------------------------------------------- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: transparent;
  color: var(--white);
}

/* --------------------------------------------------------- Leistungen --- */

.service-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-btn:hover,
.service-btn:focus-visible {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

/* Leistungen: Inhalte 5 % größer, Unterzeile einzeilig */

#leistungen .section__head {
  max-width: none;
}



#leistungen .section__subtitle {
  max-width: none;
}

#leistungen .service-btn {
  font-size: 30px;
  line-height: 37.5px;
  padding: 8px 12px;
  border-width: 1px;
}

@media (max-width: 1199.98px) {
  #leistungen .service-btn {
    font-size: 20px;
    line-height: 25px;
  }
}

@media (max-width: 767.98px) {
  #leistungen .service-btn {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 1199.98px) {
  .service-btn {
    font-size: 20px;
  }
}

@media (max-width: 767.98px) {
  .service-btn {
    font-size: 16px;
  }

  .post-header h1,
  .post-body__h1 {
    font-size: 30px;
  }
}

#leistungen .downloads-cta {
  display: block;
  padding: 50px 0;
  margin-left: calc(50% - 50vw + 100px);
  margin-right: calc(50% - 50vw + 100px);
  margin-top: 150px;
}

@media (max-width: 1199.98px) {
  #leistungen .downloads-cta {
    margin-left: calc(50% - 50vw + 15px);
    margin-right: calc(50% - 50vw + 15px);
  }
}

.downloads-cta__inner {
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  gap: 40px;
  padding-left: 15px;
  padding-right: 15px;
}

#leistungen .downloads-cta h3 {
  font-size: 30px;
  line-height: 43.5px;
  letter-spacing: normal;
  max-width: none;
  text-wrap: normal;
}

#leistungen .downloads-cta__btn {
  font-size: 16px;
  line-height: 20px;
  padding: 8px 12px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 32px;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 142, 130, 0.9);
  transition: background 0.25s ease;
}

.service-card:hover::after {
  background: rgba(21, 122, 112, 0.92);
}

.service-card__body {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 0;
}

.service-card p {
  color: var(--white);
  margin-bottom: 1.4em;
}

.service-card a {
  color: var(--white);
}

.service-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
}

/* Downloads-Hinweis */

.downloads-cta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 40px;
  margin-top: 110px;
  margin-left: max(-30px, calc((100% - 100vw) / 2));
  margin-right: max(-30px, calc((100% - 100vw) / 2));
  padding: 60px 60px;
  background: var(--grey);
}

.downloads-cta h3 {
  max-width: none;
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--white);
}

.downloads-cta__btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.downloads-cta__btn:hover,
.downloads-cta__btn:focus-visible {
  background: transparent;
  color: var(--white);
  text-decoration: none;
}

/* ----------------------------------------------------- Aktuelles/News --- */

.news-rail-wrap {
  position: relative;
  padding: 0 54px;
}

.news-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.news-rail::-webkit-scrollbar {
  display: none;
}

.news-rail > * {
  scroll-snap-align: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.news-card__media {
  overflow: hidden;
  background: var(--grey-light);
}

.news-card__media img {
  width: 100%;
  height: auto;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px;
}

.news-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 10px;
}

.news-card__date .cal-ico {
  width: 13px;
  height: 13px;
  fill: var(--grey);
  flex: 0 0 auto;
}

.news-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  margin-bottom: 1.4em;
}

.news-card__title a {
  color: var(--teal);
}

.news-card__body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.4em;
}

.news-card__more {
  align-self: flex-end;
  margin-top: auto;
  padding: 8px 26px;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  background: var(--teal);
}

.news-card__more:hover,
.news-card__more:focus-visible {
  background: var(--teal-dark);
  color: var(--white);
  text-decoration: none;
}

.rail-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  padding: 25px 7px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(225, 225, 225, 0.53);
  color: var(--grey);
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rail-nav button[data-rail="prev"] {
  left: 0;
}

.rail-nav button[data-rail="next"] {
  right: 0;
}

.news-rail-wrap:hover .rail-nav button,
.rail-nav button:focus-visible {
  opacity: 1;
}

.rail-nav svg {
  display: block;
  width: 30px;
  height: 30px;
}

/* Im Mobil-Querformat ausgeblendet (data-hide-mobilelandscape) */
@media (max-width: 767.98px) and (orientation: landscape) {
  .rail-nav button {
    display: none;
  }

  .news-rail-wrap {
    padding: 0;
  }
}

/* ------------------------------------------------------------ Über uns --- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about__media {
  overflow: hidden;
}

.about__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0;
}

.about__panel {
  display: flex;
  align-items: center;
  background: var(--teal);
  padding: 60px 8%;
}

.about__inner {
  max-width: 560px;
}

.about__title {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.9em;
}

.about__panel p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 1.6em;
}

.about__panel p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------- Referenzen --- */

/* Referenzen: Unterzeile genau zweizeilig */

.section[aria-labelledby="referenzen-title"] .section__head {
  max-width: none;
}



.places {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  row-gap: 0;
  column-gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.places li {
  margin: 0;
}

.places h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--grey);
  background: none;
  border: 0;
}

.places .pin {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: var(--teal);
}

.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 50px 0;
}

.badge-row img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------ Downloads --- */

.download-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  margin: 0;
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-list a:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  color: var(--teal);
  text-decoration: none;
}

.download-list svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: var(--teal);
}

/* ------------------------------------------------------------- Inhalte --- */

/* Bildstreifen unter dem Header (Unterseiten) */

.page-strip {
  height: 213px;
  background-color: var(--teal);
  background-image: linear-gradient(
      180deg,
      rgba(26, 142, 130, 0.78) 0%,
      rgba(26, 142, 130, 0.78) 100%
    ),
    url("../img/header.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.article {
  padding: 150px 0;
}

.article--leistung {
  padding-bottom: 0;
}

.article__title,
.article--wws .article__body h2 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--grey);
  margin: 0 0 30px;
}

.article__lead {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.56;
  color: var(--text);
  margin: 0 0 30px;
}

.article__closing {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.56;
  text-align: center;
  color: var(--text);
  margin: 80px 0 0;
}

.article__cta {
  margin-top: 30px;
}

/* Fließtext und Zwischentitel im Artikel (Wrapper-Abstand 30px) */

.article__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
  margin: 0 0 30px;
}

.article__h2 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 30px;
}

/* Textkörper der Inhaltsseiten (Textblock-Addon, Farbe #1b1a18) */

.article__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
}

.article__body h2 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.article__body h3 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.article__body h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.article__body h5,
.article__body h6 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.article__body p {
  margin: 0 0 1rem;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1rem;
  padding-left: 1rem;
}

.article__body li {
  margin: 0;
}

/* News-Detailseite (article-details) */

.article--post {
  padding: 50px 0;
}

.post-header h1 {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  color: var(--grey);
  margin: 0 0 40px;
}

.post-title {
  font-family: var(--font-alt);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 30px;
}

.post-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
}

.post-body__h1 {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  color: var(--grey);
  margin: 0 0 0.5rem;
}

.post-body h3 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.post-body h4 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1rem;
  padding-left: 1rem;
}

.post-body li p {
  margin: 0;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--grey-border);
  margin: 1.5rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

.post-body th,
.post-body td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--grey-border);
}

.post-body th {
  font-weight: 600;
}

.related {
  margin-top: 60px;
}

.related__title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 30px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-item__title {
  font-family: var(--font-body);
  font-size: 19.2px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  margin: 0 0 8px;
}

.related-item__title a {
  color: var(--teal);
}

.related-item__meta {
  margin: 0;
  font-size: 14px;
  color: var(--grey);
}

@media (max-width: 991.98px) {
  .post-header h1,
  .post-body__h1 {
    font-size: 40px;
  }

  .post-body h4,
  .related__title {
    font-size: 25px;
  }

  .related__grid {
    grid-template-columns: 1fr;
  }
}

/* News-Übersicht (Blog-Layout) */

.article--blog {
  padding: 50px 0;
}

.blog-head h1 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: center;
  color: var(--grey);
  margin: 0 0 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #f5f5f5;
  border-radius: 3px;
}

.blog-item__media {
  display: block;
  margin: -20px -20px 20px;
  border-bottom: 1px solid #f5f5f5;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.blog-item__media img {
  border-radius: 3px 3px 0 0;
}

.blog-item__media img {
  width: 100%;
  height: auto;
}

.blog-item__body {
  padding: 20px 0 0;
}

.blog-item__title {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  margin: 0 0 20px;
}

.blog-item__title a {
  color: var(--text);
}

.blog-item__title a:hover,
.blog-item__title a:focus-visible {
  color: var(--teal);
}

/* Überschriften im Beitragsanfang der Karte (Quell-h1 / Quell-h2) */

.blog-intro__h1 {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.blog-intro__h2 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

@media (max-width: 991.98px) {
  .blog-intro__h1 {
    font-size: 40px;
  }
}

@media (max-width: 767.98px) {
  .blog-intro__h1 {
    font-size: 30px;
  }
}

.blog-item__intro {
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
}

.blog-item__intro p {
  margin: 0 0 1rem;
}

.blog-item__more {
  margin: 0;
  font-size: 14px;
}

.blog-item__more a {
  color: var(--text);
  font-weight: 500;
}

.blog-item__more a:hover,
.blog-item__more a:focus-visible {
  color: var(--teal);
}

.blog-links {
  margin-top: 50px;
}

.blog-links ol {
  margin: 0;
  padding-left: 1rem;
  font-size: 16px;
  line-height: 1.56;
}

.blog-links li {
  margin: 0 0 0.4em;
}

.pagination {
  margin-top: 50px;
  text-align: center;
}

.pagination__counter {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 12px;
}

.pagination ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--teal);
  border: 1px solid var(--grey-border);
}

.pagination a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.pagination span[aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

@media (max-width: 991.98px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

}

/* Zentrierter Seitentitel (Addon 1630937433222 mit text-align: center) */

.article__title--center {
  text-align: center;
}

/* Seitentitel auf h1-Skala (Original: h1 statt h3) */
.article__title.article__title--h1 {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .article__title.article__title--h1 {
    font-size: 40px;
  }
}

@media (max-width: 767.98px) {
  .article__title.article__title--h1 {
    font-size: 30px;
  }
}

/* Seitentitel in Versalien (Karriere, Schaden melden) */
.article__title--upper {
  text-transform: uppercase;
}

/* Schaden melden: Sektion 75px oben und unten */
.article--schaden {
  padding: 75px 0;
}

/* Kontakt: Sektion 150/50, Inhalt in der mittleren Spalte (16/66/16) */
.article--kontakt {
  padding: 150px 0 50px;
}

.article--kontakt .container > * {
  width: 66.666667%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .article--kontakt .container > * {
    width: 100%;
  }
}

/* Wer wir sind: Überschriften und Fließtext zentriert, Listen linksbündig */

.article__body--center {
  text-align: center;
}

.article__body--center ul,
.article__body--center ol {
  text-align: left;
}

/* Wer wir sind: farbige Kästen (Sektionen mit Hintergrund, 100px Seitenrand) */

.sec--box {
  padding: 50px 0;
  margin: 0 100px;
}

/* Kunde werden: Titel als h1 (45/700), Abschnitte als h3 (30/500) */

.page-kw .article__title {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
}

.page-kw .kw-kicker,
.page-kw .article__body h2 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--grey);
  margin: 0 0 30px;
}

.page-kw .article__body h2.kw-kicker {
  color: var(--teal);
  text-transform: uppercase;
}

.page-kw .sec--box .article__body h2 {
  color: var(--white);
}

.page-kw .sec--inset .article__body p {
  color: var(--grey);
}

@media (max-width: 991.98px) {
  .page-kw .article__title {
    font-size: 40px;
  }

  .page-kw .kw-kicker,
  .page-kw .article__body h2 {
    font-size: 25px;
  }
}

@media (max-width: 767.98px) {
  .page-kw .article__title {
    font-size: 30px;
  }
}

/* Sektion 150/150 und eingerückte Sektion ohne Hintergrund (Kunde werden) */
.sec--150 {
  padding: 150px 0;
}

.sec--inset {
  padding: 50px 0;
  margin: 0 100px;
}

@media (max-width: 1199.98px) {
  .sec--inset {
    margin: 0 15px;
  }
}

/* Kastenüberschriften auch außerhalb von „Wer wir sind“ */
.sec--box .box-title,
.sec--box .article__body h2.box-title {
  color: var(--white);
  text-align: left;
}

.sec--box-grey {
  background: var(--grey);
}

.sec--box-teal {
  background: var(--teal);
}

.article__body--onbox,
.article__body--onbox p,
.article__body--onbox li {
  color: var(--white);
}

.sec--box-grey .cols-66-33 .article__body {
  color: var(--text);
}

.box-title {
  color: var(--white) !important;
  text-align: left;
}

.article--wws .sec--box-grey .box-title {
  text-transform: uppercase;
}

/* Überschrift im grauen Kasten: Wrapper-Abstand 0px (türkis behält 30px) */
.article--wws .sec--box-grey .box-title {
  margin-bottom: 0;
}

/* Verweise im grauen Kasten weiß (#sppb-addon-57e16529… a { color: #fff }) */
.sec--box-grey .article__body a {
  color: var(--white);
}

.sec--box-grey .article__body a:hover,
.sec--box-grey .article__body a:focus-visible {
  color: var(--white);
}

.sec--box-grey .article__body a.box-btn {
  color: #1a4774;
}

.box-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #1a4774;
  background: var(--white);
  border: 1px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.box-btn:hover,
.box-btn:focus-visible {
  background: #1a4774;
  border-color: #1a4774;
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .sec--box {
    margin: 0 15px;
  }

  #leistungen .downloads-cta h3 {
    font-size: 25px;
    line-height: 36.25px;
  }
}

/* Wer wir sind: Sektionen mit eigenen Innenabständen */

.sec--150-75 {
  padding: 150px 0 75px;
}

.team-row {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.team-row--25-50-25 {
  grid-template-columns: 1fr 2fr 1fr;
}

.team-row--50-50 {
  grid-template-columns: 1fr 1fr;
}

.team-row--100 {
  grid-template-columns: 1fr;
}

.team-row img {
  width: 100%;
  height: auto;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cols-66-33 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

@media (max-width: 767.98px) {
  .team-row--25-50-25,
  .team-row--50-50,
  .two-cols,
  .cols-66-33 {
    grid-template-columns: 1fr;
  }
}

/* Sektionen mit eigenen Innenabständen (Kunde werden) */

.sec--50 {
  padding: 50px 0;
}

.sec--75 {
  padding: 75px 0;
}

.kw-kicker {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
}

@media (max-width: 767.98px) {
  .cta-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.cta-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 991.98px) {


  .kw-kicker {
    font-size: 25px;
  }
}

/* Downloads: zwei Spalten à 50 %, Buttons mit 30px Wrapper-Abstand */

.download-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  margin-top: 30px;
}

.download-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-col li {
  margin: 0 0 30px;
}

@media (max-width: 991.98px) {
  .download-cols {
    grid-template-columns: 1fr;
  }

  .download-col li {
    margin-bottom: 20px;
  }
}

/* Kontaktseite: Sektion 150px oben, 50px unten */
.article--kontakt {
  padding: 150px 0 50px;
}

/* Eingebettetes Formular (Schadenmeldung) */

.embed-form {
  width: 100%;
}

.embed-form iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
}

/* Button-Sektion mit 50px Innenabstand oben und unten */
.article__cta--spaced {
  margin: 80px 0 50px;
}

.btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--teal);
  transition: background 0.2s ease, color 0.2s ease;
}

@media (max-width: 1199.98px) {
  .btn-wide {
    font-size: 20px;
    line-height: 25px;
  }
}

@media (max-width: 767.98px) {
  .btn-wide {
    font-size: 16px;
    line-height: 20px;
  }
}

/* Kunde werden: CTA-Buttons 20 | 20 | 20 | 16 | 16 */
.cta-cols .btn-wide {
  font-size: 20px;
  line-height: 25px;
}

@media (max-width: 767.98px) {
  .cta-cols .btn-wide {
    font-size: 16px;
    line-height: 20px;
  }
}

.btn-wide:hover,
.btn-wide:focus-visible {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 80px;
  margin-top: 50px;
}

.task-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 80px;
}

.task-block {
  margin: 0;
}

.task-block h2 {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 30px;
}

.task-block ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
}

.task-block li {
  margin-bottom: 0;
}

.article h2,
.article h3,
.article h4,
.article h5 {
  text-transform: none;
}

.article figure {
  margin: 2em 0;
}

.article figcaption {
  font-size: 14px;
  color: var(--grey);
  margin-top: 8px;
}

.team-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.team-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.team-gallery figure {
  margin: 0;
}

.team-gallery--wide {
  grid-column: 1 / -1;
}

/* FAQ */

.faq {
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
}

.faq summary {
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 22px 20px;
}

/* Kontaktkarte */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h2 {
  color: var(--teal);
  margin-top: 0;
}

.contact-card address {
  font-style: normal;
  line-height: 1.8;
}

/* Formulare */

.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(26, 142, 130, 0.25);
  outline-offset: 0;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--teal);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
}

.form-note {
  font-size: 14px;
  color: var(--grey);
}@media (max-width: 768px) {}

/* --------------------------------------------------- Parallax-Leiste --- */

.pe-widget {
  display: flex;
  justify-content: center;
  padding: 150px 15px 50px;
  background: var(--white);
}

.pe-widget--home,
.pe-widget--tight {
  padding-top: 50px;
}

.section--aktuelles {
  padding: 150px 0;
}

.section--referenzen {
  padding: 150px 0 50px;
}

.pe-widget a {
  display: block;
  width: 100%;
}

@media (min-width: 576px) {
  .pe-widget a {
    max-width: 408px;
  }
}

@media (min-width: 768px) {
  .pe-widget a {
    max-width: 552px;
  }
}

@media (min-width: 992px) {
  .pe-widget a {
    max-width: 744px;
  }
}

@media (min-width: 1200px) {
  .pe-widget a {
    max-width: 888px;
  }
}

@media (min-width: 1400px) {
  .pe-widget a {
    max-width: 1032px;
  }
}

.pe-widget img {
  width: 100%;
  height: auto;
}

.parallax-strip {
  width: auto;
  max-width: none;
  margin: 0 100px;
  height: 400px;
  background-color: var(--grey-light);
  background-image: url("../img/bg-bottom.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
}

@media (max-width: 991px) {
  .parallax-strip {
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------- VDIV-Block --- */

.badge-section {
  display: flex;
  justify-content: center;
  padding: 50px 15px;
  background: var(--white);
}

.badge-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: none;
}

@media (min-width: 576px) {
  .badge-box {
    max-width: 510px;
  }
}

@media (min-width: 768px) {
  .badge-box {
    max-width: 690px;
  }
}

@media (min-width: 992px) {
  .badge-box {
    max-width: 930px;
  }
}

@media (min-width: 1200px) {
  .badge-box {
    max-width: 1110px;
  }
}

@media (min-width: 1400px) {
  .badge-box {
    max-width: 1290px;
  }
}

.badge-box img {
  width: 33.333333%;
  height: auto;
}

/* -------------------------------------------------------------- Footer --- */

.site-footer {
  font-size: 14px;
  line-height: 22.4px;
  background: #e1e1e1;
  padding: 130px 0 0;
  border-top: 0;
  text-align: left;
}

.footer-brand {
  margin-bottom: 95px;
}

.footer-logo {
  width: 330px;
  height: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.5fr;
  gap: 20px;
  align-items: start;
  text-align: left;
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #1b1a18;
  margin: 0 0 8px;
}

.footer-col__title--plain {
  text-transform: none;
}

.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 22.4px;
  color: #1b1a18;
  margin: 0 0 26px;
}

.footer-col address:last-child {
  margin-bottom: 0;
}

.footer-col address a {
  color: #1b1a18;
}

.footer-col address a:hover {
  color: var(--teal);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 22.4px;
}

.footer-col ul li {
  margin: 0;
}

.footer-col ul a {
  color: #1b1a18;
}

.footer-col ul a:hover {
  color: var(--teal);
}

.footer-col--se {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.footer-se {
  width: 255px;
  height: auto;
}

.footer-se__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 16px;
  color: #1a4774;
  background: var(--white);
  border: 1px solid var(--white);
}

.footer-se__btn:hover,
.footer-se__btn:focus-visible {
  background: #1a4774;
  border-color: #1a4774;
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  font-size: 14px;
  line-height: 21.8333px;
  color: #1b1a18;
  margin-top: 200px;
  padding: 26px 0 30px;
  border-top: 0;
  background: var(--white);
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0 0 2px;
  padding: 0;
  font-size: 16px;
}

.footer-legal li {
  margin: 0;
}

.footer-legal a {
  color: var(--text);
}

.footer-legal a:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------ Responsiv --- */

@media (max-width: 1199.98px) {
  .badge-box img {
    width: 66.666667%;
  }

  .parallax-strip {
    margin: 0 15px;
  }
}

@media (max-width: 1200px) {
  .news-rail {
    grid-auto-columns: calc((100% - 30px) / 2);
  }
}

@media (max-width: 991px) {
  body {
    font-size: 16px;
  }

  h1,
  .h1,
  .section__title,
  .about__title {
    font-size: 40px;
  }

  h3,
  .h3,
  .hero__sub {
    font-size: 25px;
  }

  .hero__sub {
    white-space: normal;
    max-width: 900px;
  }

  h4,
  .h4 {
    font-size: 18px;
  }

  h5,
  .h5 {
    font-size: 16px;
  }

  :root {
    --header-h: 50px;
    --header-h-sticky: 50px;
  }

  .logo img {
    height: 44px;
  }

  .site-header.is-sticky .logo img {
    height: 44px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section:not(.section--aktuelles):not(.section--referenzen) {
    padding: 60px 0;
  }

  .downloads-cta {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
    padding: 40px 30px;
  }

  .downloads-cta__btn {
    justify-self: start;
  }

  .downloads-cta h3 {
    font-size: 25px;
  }

  #leistungen .section__subtitle {
    white-space: normal;
  }

  .downloads-cta__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }

  #leistungen .downloads-cta h3 {
    white-space: normal;
    font-size: 25px;
  }

  .service-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .about,
  .contact-grid,
  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .page-strip {
    height: 139px;
  }

  .article__title,
  .article--wws .article__body h2 {
    font-size: 25px;
  }

  .article__lead {
    margin-bottom: 50px;
  }

  .task-grid,
  .task-grid--2 {
    grid-template-columns: 1fr;
    row-gap: 45px;
  }

  .task-grid--2 {
    margin-top: 45px;
  }

  .article__closing {
    margin-top: 60px;
  }


  .task-block h2,
  .article__h2 {
    font-size: 22px;
  }



  .places {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, auto);
    row-gap: 40px;
  }

  .places h4 {
    font-size: 18px;
  }

  .about__media img {
    min-height: 320px;
  }

  .about {
    margin-left: 15px;
    margin-right: 15px;
  }

  .about__panel {
    padding: 50px 0;
  }

  .site-footer {
    padding: 60px 0 0;
  }

  .footer-brand {
    margin-bottom: 50px;
    text-align: center;
  }

  .footer-logo {
    width: 240px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-col--se {
    align-items: center;
  }

  .footer-se {
    width: 240px;
  }

  .footer-bottom {
  font-size: 14px;
  line-height: 21.8333px;
  color: #1b1a18;
    margin-top: 50px;
  }

  .news-rail {
    grid-auto-columns: calc((100% - 30px) / 2);
  }

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

  .provenexpert-badge {
    width: 130px;
  }


}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1,
  .h1,
  .section__title,
  .about__title {
    font-size: 30px;
  }

  h2,
  .h2,
  .section__subtitle {
    font-size: 20px;
  }

  h3,
  .h3,
  .hero__sub {
    font-size: 22px;
  }

  h4,
  .h4,
  h5,
  .h5 {
    font-size: 16px;
  }

  .news-rail {
    grid-auto-columns: 100%;
  }

  .rail-nav button {
    display: none;
  }

  .team-gallery {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .provenexpert-badge {
    display: none;
  }

  .badge-box img {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .offcanvas,
  .backdrop,
  .side-buttons,
  .provenexpert-badge,
  .rail-nav {
    display: none !important;
  }
}
