html {
  scroll-behavior: smooth;
}

html #wpadminbar {
  overflow: hidden;
}
div {
  scroll-margin-top: 100px;
}

input {
  accent-color: var(--kb-accent-dark);
}
textarea {
  width: 100%;
  min-height: 8rem;
  field-sizing: content;
}

a[href^="tel:"] {
  cursor: default;
}

a {
  transition: all 0.3s ease-in-out;
}

.kb-section {
  position: relative;
}
.pad-big {
  padding-top: 170px;
  padding-bottom: 170px;
}
.pad-medium {
  padding-top: 100px;
  padding-bottom: 100px;
}
.pad-small {
  padding-top: 60px;
  padding-bottom: 60px;
}
.pad-t-big {
  padding-top: 170px;
}
.pad-t-medium {
  padding-top: 100px;
}
.pad-t-small {
  padding-top: 60px;
}
.pad-b-big {
  padding-bottom: 170px;
}
.pad-b-medium {
  padding-bottom: 100px;
}
.pad-b-small {
  padding-bottom: 60px;
}
.row-grey {
  background-color: #f8f8f8;
}
.row-dark {
  background-color: #333;
  color: #fff;
}
.row-dark h1,
.row-dark h2,
.row-dark h3,
.row-dark h4,
.row-dark h5,
.row-dark h6 {
  color: #fff;
}
.row-color {
  background-color: var(--kb-accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  .pad-big,
  .pad-medium {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .pad-small {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .pad-t-big,
  .pad-t-medium {
    padding-top: 60px;
  }
  .pad-b-big,
  .pad-b-medium {
    padding-bottom: 60px;
  }
}

/* ---------------------------------------------------------------- Buttons */
.btn-kb {
  display: inline-block;
  border: 3px solid var(--kb-accent);
  color: var(--kb-accent);
  background: transparent;
  padding: 12px 28px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}
.btn-kb:hover,
.btn-kb:focus {
  background: var(--kb-accent);
  color: #fff;
  text-decoration: none;
}
.btn-kb-white {
  border-color: #fff;
  color: #fff;
}
.btn-kb-white:hover {
  background: #fff;
  color: var(--kb-accent);
}
.btn-kb-solid {
  background: var(--kb-accent);
  color: #fff;
}
.btn-kb-solid:hover {
  background: var(--kb-accent-dark);
  border-color: var(--kb-accent-dark);
  color: #fff;
}

/* ==========================================================================
   Navbar  – Markup + Werte 1:1 von der bisherigen Seite (Boston):
   100px hohe, dunkle Fixleiste; weiße Logobox 20 % breit; weißes
   Border-Dreieck als Diagonale; Menü rechts, Links weiß 16px/400/uppercase,
   aktiv/hover rot + 3px roter Unterstrich.
   ========================================================================== */
#kb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 100px;
  background: rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  border: none;
}
#kb-nav .navbar-header {
  float: left;
  width: 20%;
  height: 100px;
  background: #fff;
  position: relative;
  z-index: 2;
}
#kb-nav .navbar-brand {
  float: left;
  display: block;
  padding: 10px;
  margin-left: 60px;
  height: 100px;
  line-height: 50px;
}
#kb-nav .navbar-brand img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
}

#kb-nav .triangle {
  position: absolute;
  left: 20%;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 100px 0 0 100px;
  border-color: transparent transparent transparent #fff;
  z-index: 2;
}

#kb-nav .navbar-collapse {
  padding: 0;
}
#kb-nav ul#nav {
  display: flex;
  flex-direction: row;
  float: right;
  margin: 0 60px 0 0;
  padding: 0;
  list-style: none;
}
#kb-nav ul#nav > li {
  display: block;
  float: none;
  height: 100px;
}
#kb-nav ul#nav > li > a {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 15px;
  line-height: 60px;
  height: 100px;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
#kb-nav ul#nav > li > a:hover,
#kb-nav ul#nav > li > a:focus,
#kb-nav ul#nav > li.active > a {
  color: var(--kb-accent);
  border-bottom-color: var(--kb-accent);
  text-decoration: none;
}

/* Hamburger (nur mobil sichtbar) */
#kb-nav .navbar-toggle {
  display: none;
  float: right;
  margin: 33px 15px 0 0;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 0;
}
#kb-nav .navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccc;
}
#kb-nav .navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

/* Desktop: Menü immer offen */
@media (min-width: 992px) {
  #kb-nav .navbar-collapse {
    display: block !important;
  }
}

/* Mobil: volle weiße Leiste, Hamburger, Dropdown in #333 */
@media (max-width: 991.98px) {
  #kb-nav,
  #kb-nav .navbar-header {
    height: 100px;
  }
  #kb-nav .navbar-header {
    float: none;
    width: 100%;
  }
  #kb-nav .navbar-brand {
    margin-left: 0;
  }
  #kb-nav .triangle {
    display: none;
  }
  #kb-nav .navbar-toggle {
    display: block;
  }
  #kb-nav .navbar-collapse {
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    background: #333;
  }
  #kb-nav .navbar-collapse:not(.show) {
    display: none;
  }
  #kb-nav ul#nav {
    display: block;
    float: none;
    margin: 0;
  }
  #kb-nav ul#nav > li {
    float: none;
    height: auto;
  }
  #kb-nav ul#nav > li > a {
    height: auto;
    line-height: 1.4;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Standard-Seiten: Platz für die 100px-Fixleiste; Startseite: Hero liegt darunter */
body {
  padding-top: 100px;
}
body.kb-has-hero {
  padding-top: 0;
}
@media (max-width: 991.98px) {
  body {
    padding-top: 100px;
  }
}

/* ---------------------------------------------------------------- Hero */
.kb-hero {
  position: relative;
  width: 100%;
  height: 705px;
  max-height: 82vh;
  min-height: 460px;
  margin-top: 0;
  background: #eee;
  overflow: hidden;
}
.kb-hero .kb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-hero .kb-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.kb-hero .kb-slide-solid {
  background-color: #e7e7e7;
}
.kb-hero .kb-cap {
  font-size: 40px;
  line-height: 34px;
  text-align: center;
  padding: 0 20px;
  color: #000;
}
.kb-hero .kb-slide-photo .kb-cap {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}
.kb-hero .kb-slide-photo .kb-cap a {
  color: var(--kb-accent);
}
/* Slide 1: Logo links neben dem Text, als eine zentrierte Gruppe */
.kb-hero .kb-slide-photo .kb-hero-group {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.kb-hero .kb-slide-photo .kb-logo-sm {
  max-height: 64px;
  width: auto;
  flex: 0 0 auto;
}
.kb-hero .kb-slide-photo .kb-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.kb-hero .kb-slide-photo .kb-inner .kb-cap {
  text-align: left;
  padding: 0;
}

.kb-hero .kb-slide-solid .kb-logo-lg {
  max-width: 480px;
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

/* Gestaffeltes Einfliegen der Hero-Elemente (Ersatz für die Revolution-Slider-Layer) */
.kb-hero .kb-fly {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.kb-hero .kb-fly-right {
  transform: translateX(50px);
}
.kb-hero .kb-fly-up {
  transform: translateY(30px);
}
.kb-hero .kb-fly-fade {
  transform: none;
}
.kb-hero .kb-fly.kb-play {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .kb-hero .kb-fly {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
@media (max-width: 575.98px) {
  .kb-hero .kb-slide-photo .kb-hero-group {
    flex-direction: column;
    gap: 12px;
  }
  .kb-hero .kb-slide-photo .kb-inner {
    text-align: center;
  }
  .kb-hero .kb-slide-photo .kb-inner .kb-cap {
    text-align: center;
  }
}
.kb-hero .kb-arrow {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  z-index: 5;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}
.kb-hero .kb-arrow:hover {
  color: var(--kb-accent);
}
.kb-hero .kb-prev {
  left: 20px;
}
.kb-hero .kb-next {
  right: 20px;
}
.kb-hero .kb-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 5;
}
.kb-hero .kb-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8f8f8f;
  margin: 0 5px;
  cursor: pointer;
}
.kb-hero .kb-dots span.is-active {
  background: #333;
}
@media (max-width: 767.98px) {
  .kb-hero {
    height: 420px;
    margin-top: 64px;
  }
  .kb-hero .kb-cap {
    font-size: 22px;
    line-height: 1.2;
  }
}

/* ---------------------------------------------------------------- Leistungen / Services (1:1 Live) */
.kb-leistungen-wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.kb-leistungen {
  row-gap: 90px;
}
.kb-leistungen > [class*="col-"] {
  position: relative;
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
}
.kb-leistungen .services {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.kb-leistungen .services-box {
  flex: 1 1 auto;
}
.kb-leistungen .services-box {
  background-color: #fff;
  border: 2px solid #e5e5e5;
  padding: 120px 20px 30px;
  margin-top: 90px;
  transition: all 0.3s ease-out;
}
.kb-leistungen .services-box .circleBox {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -90px;
  width: 180px;
}
.kb-leistungen .circle-border-outside {
  position: relative;
  border: 10px solid var(--kb-accent);
  border-radius: 50%;
  transition: all 0.3s ease-out;
}
.kb-leistungen .circle-border-inside {
  border: 10px solid #333;
  border-radius: 50%;
  transition: all 0.3s ease-out;
}
.kb-leistungen .circle {
  position: relative;
  box-sizing: content-box;
  width: 100%;
  height: 0;
  padding: 50% 0;
  border-radius: 50%;
  background: #fff;
}
.kb-leistungen .circle-content {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
}
.kb-leistungen .circle-triangle {
  position: absolute;
  margin-left: 65px;
  bottom: -23px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 15px 0 15px;
  border-color: var(--kb-accent) transparent transparent transparent;
  transition: all 0.3s ease-out;
}
/* Hover: Box rot, Aussenring dunkel, Innenring rot, Dreieck dunkel */
.kb-leistungen .services-box:hover {
  background-color: var(--kb-accent);
  border-color: var(--kb-accent);
  color: #fff;
}
.kb-leistungen .services-box:hover .circle-border-outside {
  border-color: #333;
}
.kb-leistungen .services-box:hover .circle-border-inside {
  border-color: var(--kb-accent);
}
.kb-leistungen .services-box:hover .circle-triangle {
  border-top-color: #333;
}
/* Texte im Kasten */
.kb-leistungen .services-box .text-center h5 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #333;
  margin: 10px 0 5px;
}
.kb-leistungen .services-box .text-center p {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-transform: none;
  color: #333;
  margin: 0 0 20px;
}
.kb-leistungen .services-box .text-center p:last-child {
  margin-bottom: 0;
}
.kb-leistungen .services-box .text-center h6 {
  margin: 10px 0 5px;
}
.kb-leistungen .services-box .text-center h6 a {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #dd5555;
}
.kb-leistungen .services-box .text-center h6 a:hover {
  color: var(--kb-accent);
}
.kb-leistungen .services-box:hover .text-center h5,
.kb-leistungen .services-box:hover .text-center p,
.kb-leistungen .services-box:hover .text-center h6 a {
  color: #fff;
}
@media (max-width: 991.98px) {
  .kb-leistungen .services-box {
    padding-top: 160px;
    margin-bottom: 60px;
  }
  .kb-leistungen .services-box .circleBox {
    top: -50px;
  }
}
@media (max-width: 767.98px) {
  .kb-leistungen .services-box .circleBox {
    top: -90px;
  }
}

/* ---------------------------------------------------------------- Navbar (gescrollt) */
#kb-nav.kb-nav-scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------- Firma in Zahlen (easyPieChart, 1:1 Live) */
.kb-zahlen .pie-chart {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}
.kb-zahlen .easyPieChart canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.kb-zahlen .pie-chart .border-chart-outer {
  position: absolute;
  inset: 0;
  padding: 10px;
}
.kb-zahlen .pie-chart .border-chart-outer .border-chart {
  width: 100%;
  height: 100%;
  border: 20px solid #333;
  border-radius: 50%;
  background-clip: padding-box;
}
.kb-zahlen .pie-chart > span {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 48px;
  color: var(--kb-accent);
}
.kb-zahlen h5 {
  text-transform: uppercase;
  font-weight: 600;
  margin: 10px 0 5px;
}
@media (max-width: 575.98px) {
  .kb-zahlen .pie-chart {
    transform: scale(0.9);
  }
}

/* ---------------------------------------------------------------- Referenzen-Grid */
/* Filter – 1:1 wie .portfolioFilter der Live-Seite:
   rote Umriss-Buttons, normale Schreibweise, aktiver Button grau (#333). */
.kb-filter {
  text-align: center;
  margin: 25px 0;
}
.kb-filter a {
  display: inline-block;
  margin: 0 10px 10px 10px;
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--kb-accent);
  color: var(--kb-accent);
  transition: all 0.3s ease-out;
}
.kb-filter a:hover {
  background-color: var(--kb-accent);
  color: #fff;
}
.kb-filter a.is-active,
.kb-filter a.is-active:hover {
  border-color: #333;
  color: #333;
  background-color: transparent;
}
.kb-projects {
  margin: 0;
  font-size: 0;
}
.kb-project {
  position: relative;
  overflow: hidden;
  float: left;
  width: 19.97%;
}
.kb-projects.cols-4 .kb-project {
  width: 24.97%;
}
.kb-projects.cols-3 .kb-project {
  width: 33%;
}
.kb-project img {
  width: 100%;
  height: auto;
  display: block;
  /* Höhe schon vor dem Bild-Load reservieren – sonst legt Isotope
     beim ersten Layout alles in eine Zeile. Referenzbilder sind 3:2. */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    filter 0.3s,
    transform 0.3s;
}
.kb-project:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}
.kb-project .kb-project-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(38, 38, 38, 0);
  opacity: 0;
  transition: all 0.3s;
}
.kb-project:hover .kb-project-hover {
  background: rgba(38, 38, 38, 0.55);
  opacity: 1;
}
.kb-project .kb-project-hover a {
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  font-size: 18px;
}
.kb-project .kb-project-hover a:hover {
  color: var(--kb-accent);
}
@media (max-width: 991.98px) {
  .kb-project,
  .kb-projects.cols-4 .kb-project {
    width: 50%;
  }
}
@media (max-width: 575.98px) {
  .kb-project,
  .kb-projects.cols-4 .kb-project,
  .kb-projects.cols-3 .kb-project {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Team (1:1 Live) */
.kb-team-member {
  text-align: center;
  margin-bottom: 30px;
}
.kb-team .team-container {
  text-align: center;
}
.kb-team .person-image {
  margin: auto;
  position: relative;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}
/* Bilder farbig (nicht schwarz-weiss) – wie Live */
.kb-team .person-image img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}
.kb-team .person-image .person-hover {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  background: rgba(206, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-team .person-image:hover .person-hover {
  opacity: 1;
}
.kb-team .person-hover .btn-white {
  display: inline-block;
  background: transparent;
  border: 3px solid #fff;
  color: #fff;
  padding: 12px 26px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}
.kb-team .person-hover .btn-white:hover {
  background: #fff;
  color: var(--kb-accent);
}
.kb-team h5 {
  margin: 14px 0 5px;
}
.kb-team h5 .color-font.light {
  font-weight: 300;
}
.kb-team .kb-social {
  font-size: 24px;
}
.kb-team .kb-social ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.kb-team .kb-social li {
  display: inline-block;
  margin: 5px;
}
.kb-team .circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--kb-accent);
  color: var(--kb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}
.kb-team .circle-btn:hover {
  background: var(--kb-accent);
  color: #fff;
}

/* ---------------------------------------------------------------- Logo-Slider */
.kb-logos .owl-item img {
  max-width: 100%;
  width: auto;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- Parallax-Trennband */
.kb-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}
.kb-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.kb-parallax > .container {
  position: relative;
  z-index: 1;
}
.kb-parallax a {
  color: var(--kb-accent);
  text-shadow: 1px 1px 0 #000;
  max-width: 800px;
  margin: 0 auto;
  display: inline-block;
}
.kb-parallax a:hover {
  text-decoration: none;
  opacity: 0.8;
  color: var(--kb-accent);
}

/* Variante mit Icon (media-with-icon wie Live) */
.kb-parallax .kb-media {
  display: table;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.kb-parallax .kb-media-icon {
  display: table-cell;
  width: 25%;
  vertical-align: middle;
  text-align: center;
  font-size: 120px;
  line-height: 1;
}
.kb-parallax .kb-media-body {
  display: table-cell;
  width: 75%;
  vertical-align: middle;
  padding: 0 30px;
}
.kb-parallax .kb-media-text {
  color: inherit;
}
.kb-parallax .kb-media--accent .kb-media-icon {
  color: var(--kb-accent);
}
.kb-parallax .kb-media--accent .kb-media-body {
  border-left: 3px solid var(--kb-accent);
}
.kb-parallax .kb-media--white .kb-media-icon {
  color: #fff;
}
.kb-parallax .kb-media--white .kb-media-body {
  border-left: 3px solid #fff;
}

@media (max-width: 991.98px) {
  .kb-parallax {
    background-attachment: scroll;
  }
}
@media (max-width: 767.98px) {
  .kb-parallax .kb-media,
  .kb-parallax .kb-media-icon,
  .kb-parallax .kb-media-body {
    display: block;
    width: auto;
  }
  .kb-parallax .kb-media {
    text-align: center;
  }
  .kb-parallax .kb-media-icon {
    font-size: 80px;
    padding-bottom: 10px;
  }
  .kb-parallax .kb-media--accent .kb-media-body,
  .kb-parallax .kb-media--white .kb-media-body {
    padding: 20px 0 0;
    border-left: none;
    border-top: 3px solid #fff;
  }
  .kb-parallax .kb-media--accent .kb-media-body {
    border-top-color: var(--kb-accent);
  }
}

/* ---------------------------------------------------------------- Footer */
.kb-footer {
  background: #9b0506;
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.kb-footer h6 {
}
.kb-footer a {
  color: #fff;
}
.kb-footer h6 {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 36px;
}
.kb-footer .kb-copy {
  padding: 36px 0 0 0;
  font-size: 14px;
  opacity: 0.6;
}
.kb-footer .kb-copy a {
  text-decoration: none;
}
.kb-footer .kb-copy a:hover {
  opacity: 0.8;
}

/* ---------------------------------------------------------------- Back to top */
#kb-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #333;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    background 0.3s;
}
#kb-totop.show {
  opacity: 1;
  pointer-events: auto;
}
#kb-totop:hover {
  background: var(--kb-accent);
  color: #fff;
}

/* ---------------------------------------------------------------- Scroll-Animation
   Inhalt nur verstecken, wenn JS läuft (html.kb-js) – sonst immer sichtbar. */
.kb-js .kb-anim {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transform: translateY(24px);
}
.kb-js .kb-anim.animated {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .kb-js .kb-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ---------------------------------------------------------------- Modal (Magnific) */
.mfp-bg {
  background: #0b0b0b;
  opacity: 0.9;
}
.kb-modal {
  background: #fff;
  max-width: 1100px;
  margin: 30px auto;
  position: relative;
  padding: 40px;
}
.kb-modal h2 {
  margin-top: 0;
  font-size: 36px;
  padding-top: 24px;
}
.kb-modal .kb-modal-meta p {
  margin-bottom: 6px;
}
/* Fließtext im Modal */
.kb-modal p {
  font-size: 16px;
  line-height: 1.6;
}

.kb-modal-text,
.kb-modal-meta {
  max-width: 720px;
  margin: 0 auto;
}

/* Medien-Bereich (Slider / Einzelbild / Video) – schmal wie Live */
.kb-modal-media {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.kb-modal-media img {
  display: block;
  width: 100%;
  height: auto;
}
.kb-modal-slider .item img {
  width: 100%;
}
.kb-modal-slider .owl-nav button.owl-prev,
.kb-modal-slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--kb-accent);
  font-size: 24px;
  line-height: 1;
  font-family: Arial, "Helvetica Neue", sans-serif;
  transition: all 0.2s ease;
}
.kb-modal-slider .owl-nav button.owl-prev span,
.kb-modal-slider .owl-nav button.owl-next span {
  display: block;
  line-height: 1;
}
.kb-modal-slider .owl-nav button.owl-prev {
  left: 12px;
}
.kb-modal-slider .owl-nav button.owl-next {
  right: 12px;
}
.kb-modal-slider .owl-nav button.owl-prev:hover,
.kb-modal-slider .owl-nav button.owl-next:hover {
  background: var(--kb-accent);
  color: #fff;
}
.kb-modal-slider .owl-dots {
  text-align: center;
  margin-top: 12px;
}
.kb-modal-slider .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 4px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
}
.kb-modal-slider .owl-dots .owl-dot.active span {
  background: var(--kb-accent);
}

/* Blätter-Buttons oben rechts, neben dem Schließen-Symbol (wie Live-Colorbox) */
.kb-modal-nav {
  position: absolute;
  top: 10px;
  right: 58px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.kb-modal-nav button,
.kb-mfp .mfp-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  line-height: 1;
  border-radius: 50%;
  border: 2px solid var(--kb-accent);
  background: #fff;
  color: var(--kb-accent);
  font-size: 22px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  opacity: 1;
  transition: all 0.2s ease;
}
.kb-mfp .mfp-close {
  position: absolute;
  top: 10px;
  right: 12px;
}
.kb-modal-nav button:hover,
.kb-mfp .mfp-close:hover {
  background: var(--kb-accent);
  color: #fff;
}
.kb-modal hr {
  margin: 18px 0;
  border-top: 1px solid #ccc;
}
/* Kontaktzeilen (E-Mail / Telefon) im Team-Popup groesser */
.kb-modal .kb-contact {
  font-size: 20px;
  line-height: 1.7;
}
.kb-modal .kb-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.kb-modal .kb-contact li:last-child {
  margin-bottom: 0;
}
.kb-modal .kb-contact i {
  font-size: 22px;
  width: 24px;
  text-align: center;
  flex: 0 0 auto;
}
.kb-modal .kb-contact a {
  color: inherit;
}
.kb-modal .kb-contact a:hover {
  color: var(--kb-accent);
}
.kb-spacer {
  width: 100%;
}

/* ---------------------------------------------------------------- Headline-Modul
   Layout/Typo 1:1 wie #dasbietenwir auf der Live-Seite: alles zentriert,
   Titillium uppercase 600, Fließtext ebenfalls uppercase 600, Akzent #e33411. */
.kb-headline {
}
.kb-headline > h2,
.kb-headline > h3,
.kb-headline > h4,
.kb-headline > h5,
.kb-headline > h6 {
  margin: 10px 0 5px; /* wie Boston h1–h6 */
}
.kb-headline .color-font.light {
  font-weight: 300;
}

.kb-kicker {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #333;
  margin: 10px 0 5px;
}
.row-dark .kb-kicker {
  color: #fff;
}

.kb-headline-intro {
  max-width: 970px; /* entspricht der Live-Container-Breite */
  margin: 0 auto;
}
.kb-headline-intro h5,
.kb-headline-intro h6 {
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
  margin: 10px 0 5px;
}
.kb-headline-intro h5 {
  font-size: 24px;
  line-height: 1.1;
}
.kb-headline-intro h6 {
  font-size: 18px;
  line-height: 1.1;
}
.kb-headline-intro p {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.kb-headline-intro p:last-child {
  margin-bottom: 0;
}
.kb-headline-intro .color-font {
  color: var(--kb-accent);
}

.kb-headline.text-start .kb-headline-intro,
.kb-headline.text-end .kb-headline-intro {
  margin: 0;
}

/* ---------------------------------------------------------------- Historie / Timeline
   Nutzt das jQuery-Timeline-Plugin ("timelineFlat") wie die Live-Seite.
   Styling: assets/vendor/timeline/css/flat.css + Inline-Overrides in inc/enqueue.php. */
.kb-historie {
  position: relative;
  margin-top: 20px;
}

/* ---------------------------------------------------------------- eRecht24 / Prosa-Seiten */
.kb-page-content {
  max-width: 1140px;
}
.kb-page-content h1,
.kb-page-content h2,
.kb-page-content h3 {
  margin-top: 1.4em;
  text-transform: none;
}
.kb-page-content h4,
.kb-page-content h5 {
  text-transform: none;
}

/* ---------------------------------------------------------------- Logo-/Partner-Grid */
.kb-logogrid {
  margin: 10px 0 0;
}
.kb-logogrid .kb-logo {
  margin: 0;
  padding: 20px 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kb-logogrid.text-start .kb-logo {
  align-items: flex-start;
  text-align: left;
}
.kb-logogrid .kb-logo img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}
.kb-logogrid .kb-logo a {
  display: inline-block;
}
.kb-logogrid .kb-logo a:hover img {
  opacity: 0.7;
}
.kb-logogrid .kb-logo a.kb-lightbox {
  cursor: zoom-in;
}
.kb-logogrid .kb-logo-cap {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.kb-logogrid .kb-logo-cap p {
  margin: 0 0 8px;
}

/* ==========================================================================
   Kein horizontales "Schwimmen"
   ========================================================================== */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}
#kb-main {
  overflow-x: clip;
}

/* WPBakery-Rows (vc_row-fluid) blenden standardmäßig mit -15px Rand aus dem
   Viewport – ohne umschließenden .container erzeugt das einen H-Scrollbalken.
   Rand aufheben; die Innen-Spalten behalten ihr 15px-Padding. */
.wpb-content-wrapper .vc_row-fluid,
#kb-main .vc_row-fluid {
  margin-left: 0;
  margin-right: 0;
}

/* Eigene .row-Blöcke der Module liegen direkt in .vc_column-inner (15px Padding).
   Deren negativen Gutter-Rand hier neutralisieren, damit nichts übersteht. */
#kb-main .vc_column-inner > .row,
#kb-main .kb-referenzen,
#kb-main .kb-historie {
  margin-left: 0;
  margin-right: 0;
}

/* Owl-Carousel: interne Bühne sicher clippen */
.kb-logos,
.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

/* ----------------------------------------------------------------------------
   Reihenbreite (Row-Option „Knittel: Reihenbreite")
   kb-w-full   – volle Breite (Standard, wie bisher)
   kb-w-boxed  – Inhalt auf 1200 px zentriert
   kb-w-narrow – Inhalt auf 970 px zentriert

   Die Reihe bleibt 100 % breit – nur der Innen-Inhalt wird über seitliches
   Padding in eine zentrierte Spur gelegt. Dadurch reicht die Hintergrundfarbe
   (row-grey / row-dark / row-color) weiterhin ohne Tricks bis zum Fensterrand,
   und die WPBakery-Spaltenbreiten (10/12, 8/12 …) + Offsets wirken.
   ========================================================================== */
#kb-main .vc_row.kb-w-boxed {
  padding-left: max(15px, calc(50% - 600px));
  padding-right: max(15px, calc(50% - 600px));
}
#kb-main .vc_row.kb-w-narrow {
  padding-left: max(15px, calc(50% - 485px));
  padding-right: max(15px, calc(50% - 485px));
}

#kb-main .vc_row.kb-w-full > .vc_column_container > .vc_column-inner {
  padding-left: 0;
  padding-right: 0;
}

figure {
  margin: 0;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}
button,
input {
  line-height: normal;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
.wpcf7-form label {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
label {
  font-size: 22px;
  font-weight: normal !important;
}
input,
textarea {
  margin-top: 8px;
  border: 1px solid #333 !important;
  padding: 10px;

  box-sizing: border-box;
}
input[type="submit"] {
  border: 2px solid #333;
  background-color: #fff;
  font-size: 22px;
  color: #333;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
}
input[type="submit"]:hover {
  border: 2px solid #333;
  background-color: #333;
  color: #fff;
}
body:is(.page-id-777, .page-id-779) h1 {
  font-size: 36px;
  font-weight: 600;
}

body:is(.page-id-777, .page-id-779) h2 {
  font-size: 30px;
  font-weight: 600;
  padding: 30px 0 12px 0;
}

body:is(.page-id-777, .page-id-779) h3 {
  font-size: 24px;
  font-weight: 600;
  padding: 24px 0 10px 0;
}
body:is(.page-id-777, .page-id-779) h4 {
  font-size: 20px;
  font-weight: 600;
  padding: 24px 0 10px 0;
}
