/* Two original brand assets, arranged together without altering either logo. */
a.brand-pair {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: 450px;
  max-width: 100%;
  vertical-align: middle;
}
.brand-pair img.brand-nock {
  width: calc((100% - 16px) * .62);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.brand-pair img.brand-partner {
  width: calc((100% - 16px) * .38);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
/* Match the more specific existing header and footer image rules. */
.main-header .logo .brand-pair img.brand-nock,
.footer-section-2 .brand-pair img.brand-nock { width: calc((100% - 16px) * .62); }
.main-header .logo .brand-pair img.brand-partner,
.footer-section-2 .brand-pair img.brand-partner { width: calc((100% - 16px) * .38); }
.mobile-menu .nav-logo .brand-pair { width: 250px; }
.mobile-menu .nav-logo .brand-pair img { max-height: none; }
.footer-section-2 .brand-pair { width: 420px; }
@media (max-width: 1399.98px) {
  .main-header .brand-pair { width: 340px; }
}
@media (max-width: 575.98px) {
  .main-header .brand-pair,
  .footer-section-2 .brand-pair { width: 260px; }
}

/* White rendering of the transparent approved petrol logo on dark surfaces. */
.brand-pair img.brand-nock-light { filter: brightness(0) invert(1); }

/* Crop to the visible wordmark and match the contact and review card width. */
.hero-6 .banner-content h1 .hero-brand-logo {
  display: block;
  width: calc(var(--hero-logo-width) * .905);
  max-width: 90.5%;
  height: auto;
  aspect-ratio: 1333 / 456;
  overflow: hidden;
  margin: 0;
  filter: brightness(0) invert(1);
}
@media (max-width: 575.98px) {
  .hero-6 .banner-content { --hero-logo-gap: 24px; }
}
.hero-6 .banner-content .banner-user {
  position: relative;
  bottom: auto;
  margin-top: 32px;
  padding-top: 0;
}
/* Compact welcome line and monochrome rating badge in the dark hero area. */
.hero-6 .banner-content h1 {
  display: flex;
  flex-direction: column;
  gap: var(--hero-logo-gap, 32px);
  width: 100%;
  margin-bottom: 0;
  text-align: left;
  font-family: var(--text-font);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.3;
}
.hero-6 .banner-content .banner-user { margin-top: 20px; }
.hero-6 .banner-content .google-review-logo {
  filter: brightness(0) invert(1);
}
/* Vertically center the welcome content beside the portrait. */
@media (min-width: 992px) {
  .hero-6 .banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 48px;
  }
}
/* Compact, clickable review card below the main call to action. */
.hero-6 .banner-content .banner-user {
  left: 0;
  padding-right: 0;
}
.hero-6 .banner-content .google-review-badge {
  flex-direction: row;
  gap: 20px;
  width: 350px;
  max-width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease;
}
.hero-6 .banner-content .google-review-logo {
  width: 138px;
  flex: 0 0 138px;
}
.hero-6 .banner-content .google-review-text {
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}
.hero-6 .banner-content .google-review-text strong { font-size: 30px; }
.hero-6 .banner-content .google-review-text span { font-size: 14px; }
.hero-6 .banner-content .google-review-badge:hover,
.hero-6 .banner-content .google-review-badge:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: var(--theme-color1);
}
.hero-6 .banner-content .google-review-badge:focus-visible {
  outline: 2px solid var(--theme-color1);
  outline-offset: 4px;
}

/* Keep the contact button aligned with the review card below it. */
.hero-6 .banner-content .hero-button .btn-style-three {
  width: 350px;
  max-width: 100%;
}

/* Align both cards with the visible logo, excluding its transparent margins. */
.hero-6 .banner-content { --hero-logo-width: 440px; }
.hero-6 .banner-content .google-review-badge,
.hero-6 .banner-content .hero-button .btn-style-three {
  width: calc(var(--hero-logo-width) * .905);
  max-width: 90.5%;
}
@media (max-width: 575.98px) {
  .hero-6 .banner-content { --hero-logo-width: 320px; }
}
/* Locally hosted handwriting for the homepage tagline. */
@font-face {
  font-family: 'Courgette';
  src: url('../fonts/webfonts/Courgette-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.hero-6 .banner-content .hero-subtitle {
  font-family: var(--text-font);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
}

/* Align the tagline left and give the logo more breathing room. */
.hero-6 .banner-content .text-item:has(.hero-subtitle) {
  margin-top: 44px;
  width: calc(var(--hero-logo-width) * .905);
  max-width: 90.5%;
  justify-content: flex-start;
  text-align: left;
}
.hero-6 .banner-content .google-review-badge {
  justify-content: center;
}
/* Center the service group while aligning each list with its heading text. */
#leistungen .container-fluid { max-width: 1900px; padding-inline: 20px; margin-inline: auto; }
#leistungen .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch !important;
  row-gap: 40px;
}
#leistungen .row > div { flex: 0 0 620px; width: 620px; max-width: 100%; }
#leistungen .service-card-items-4 {
  --service-icon-size: 70px;
  --service-heading-gap: 30px;
  padding: 24px;
  width: 100%;
  min-height: 360px;
  max-width: 100%;
}
#leistungen .service-icon { justify-content: flex-start; gap: var(--service-heading-gap); }
#leistungen .service-icon .icon {
  width: var(--service-icon-size);
  height: var(--service-icon-size);
  flex: 0 0 var(--service-icon-size);
}
#leistungen .service-icon .icon svg { width: 100%; height: 100%; }
#leistungen .service-icon .number { font-size: 80px; }
#leistungen .content {
  margin-top: 20px;
  padding-left: calc(var(--service-icon-size) + var(--service-heading-gap));
  text-align: left;
}
#leistungen .service-benefits { max-width: 410px; text-align: left; }
#leistungen .service-benefits li { justify-content: flex-start; }
@media (max-width: 767.98px) {
  #leistungen .service-card-items-4 { --service-icon-size: 42px; --service-heading-gap: 14px; padding: 16px 0; }
  #leistungen .service-icon .number { font-size: clamp(28px, 6.5vw, 48px); }
  #leistungen .row > div { flex-basis: min(100%, 520px); width: min(100%, 520px); }
  #leistungen .service-card-items-4 { width: 100%; min-height: 0; }
}

/* Show Sascha below the welcome content on mobile and tablet screens. */
@media (max-width: 991.98px) {
  .hero-6 .banner-image {
    display: block;
    width: min(100%, 300px);
    margin: 12px auto 0;
  }
  .hero-6 .banner-image > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }
  .hero-6 .banner-image .circle-shape {
    display: none;
  }
}

/* Footer contacts follow the rounded review card, with a green hover glow. */
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 {
  width: min(320px, calc(100vw - 96px));
}
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 li {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
}
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 .footer-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  line-height: 1.5;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.footer-contact-link .footer-contact-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.footer-contact-link span { min-width: 0; overflow-wrap: anywhere; }
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 .footer-contact-link:hover,
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 .footer-contact-link:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: var(--theme-color1);
  box-shadow: 0 0 18px rgba(200, 241, 105, .3);
}
.footer-widget-wrapper.style-2 .footer-content .contact-list-2 .footer-contact-link:focus-visible {
  outline: 2px solid var(--theme-color1);
  outline-offset: 4px;
}

/* Two curtains open from the centre; the logo settles once, then stays still. */
.preloader {
  background: #f5f5f5;
  overflow: hidden;
  /* The light sweep ends at 3.2 s; fade immediately and finish at 3.5 s. */
  animation: nock-loader-dismiss .3s ease-out 3.2s forwards;
}
.preloader .animation-preloader {
  width: min(740px, calc((100vw - 40px) / 1.22));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.preloader .preloader-brand {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-bottom: 28px;
  animation: nock-loader-enter .5s ease-out .4s both,
    nock-loader-pop .7s ease-in-out .95s forwards;
}
.preloader .preloader-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55% -15%;
  background: radial-gradient(ellipse, rgba(3, 147, 151, .12), rgba(200, 241, 105, .05) 42%, transparent 68%);
  pointer-events: none;
}
.preloader .preloader-logo {
  display: block;
  width: 100%;
  height: auto;
}
.preloader .animation-preloader p {
  width: 100%;
  margin: 0;
  padding-left: 4px; /* Balance the final letter spacing around the centre. */
  text-align: center;
  font-size: 12px;
  letter-spacing: 4px;
  animation: nock-loader-caption .4s ease-out .9s both;
}
.preloader .loader {
  z-index: 1100;
  display: flex;
}
.preloader .loader-panel {
  width: 50%;
  height: 100%;
  background: #003f43;
  animation: nock-loader-open .9s cubic-bezier(.77, 0, .175, 1) .1s both;
}
.preloader .loader-panel-left {
  --opening-direction: -100%;
  border-right: 1px solid rgba(200, 241, 105, .25);
}
.preloader .loader-panel-right {
  --opening-direction: 100%;
  border-left: 1px solid rgba(200, 241, 105, .25);
}
@keyframes nock-loader-dismiss {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes nock-loader-open {
  from { transform: translateX(0); }
  to { transform: translateX(var(--opening-direction)); }
}
@keyframes nock-loader-enter {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes nock-loader-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.22); }
}
@keyframes nock-loader-caption {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader .preloader-brand,
  .preloader .animation-preloader p { animation: none; }
  .preloader .loader { display: none; }
  .preloader.loaded .animation-preloader { transition: none; }
}

/* Subsequent pages get only a brief fade, capped independently of asset loading. */
.quick-page-loader .preloader {
  pointer-events: none;
  animation: nock-quick-loader .3s ease-out .05s forwards;
}
.quick-page-loader .preloader .animation-preloader,
.quick-page-loader .preloader .loader { display: none; }
@keyframes nock-quick-loader {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-page-loader .preloader { display: none; animation: none; }
}

#kundenbewertungen .testimonial-wrapper-2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: clamp(4px, 1vw, 16px);
}
#kundenbewertungen .testimonial-slider-2 { width: 100%; }
#kundenbewertungen .review-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #00696d;
  background: #fff;
  border: 1px solid #00696d;
  border-radius: 50%;
  cursor: pointer;
}
#kundenbewertungen .review-arrow:hover {
  color: #fff;
  background: #00696d;
}
#kundenbewertungen .review-arrow:focus-visible {
  outline: 2px solid #039397;
  outline-offset: 2px;
}
#kundenbewertungen .review-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Review cards scale with their own width, including during window resizing. */
#kundenbewertungen .swiper-slide { container-type: inline-size; }
#kundenbewertungen .testimonial-card-item {
  --review-padding: clamp(18px, 5cqw, 32px);
  --review-avatar: clamp(48px, 16cqw, 80px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: var(--review-padding);
  text-align: left;
  border-radius: 18px;
}
#kundenbewertungen .testimonial-card-item::before {
  width: 100%;
  height: calc(var(--review-avatar) + var(--review-padding) * 2);
  border-radius: 18px 18px 0 0;
}
#kundenbewertungen .testimonial-card-item .box-shape { display: none; }
#kundenbewertungen .testimonial-card-item .client-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 4cqw, 20px);
  flex: 0 0 auto;
  min-height: var(--review-avatar);
  min-width: 0;
  text-align: left;
}
#kundenbewertungen .client-item .client-image { flex: 0 0 var(--review-avatar); }
#kundenbewertungen .client-item .client-image img {
  width: var(--review-avatar);
  height: var(--review-avatar);
}
#kundenbewertungen .client-item .client-image::before {
  width: calc(var(--review-avatar) + 8px);
  height: calc(var(--review-avatar) + 8px);
}
#kundenbewertungen .client-item .info-text { margin-top: 0; min-width: 0; text-align: left; }
#kundenbewertungen .client-item .info-text h5 {
  font-size: clamp(15px, 4.4cqw, 20px);
  line-height: 1.25;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
#kundenbewertungen .client-item .info-text span {
  display: block;
  font-size: clamp(11px, 3cqw, 13px);
  line-height: 1.4;
}
#kundenbewertungen .testimonial-card-item .content {
  align-self: stretch;
  min-width: 0;
  margin-top: calc(var(--review-padding) * 2);
}
#kundenbewertungen .testimonial-source {
  --source-icon-size: clamp(30px, 8cqw, 42px);
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(12px, 4cqw, 20px);
  gap: 12px;
}
#kundenbewertungen .quote-icon { display: grid; place-items: center; border-radius: 7px; }
#kundenbewertungen .quote-icon > svg { width: 65%; height: 65%; }
#kundenbewertungen .quote-icon .arrow-shape { display: none; }
#kundenbewertungen .google-testimonial-logo { height: clamp(25px, 7cqw, 36px); }
#kundenbewertungen .testimonial-card-item .content p {
  max-width: none;
  margin: 0;
  color: var(--headings-color);
  font-size: clamp(14px, 3.8cqw, 18px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#kundenbewertungen .reviews-enhanced .testimonial-card-item:not(.review-expanded) .review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
#kundenbewertungen .review-toggle {
  display: block;
  margin-top: 14px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--headings-color);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#kundenbewertungen .review-toggle[hidden] { display: none; }
#kundenbewertungen .review-toggle:focus-visible { outline: 2px solid #039397; outline-offset: 4px; }
/* Preserve useful reading width on phones instead of stacking nested gutters. */
#kundenbewertungen { margin-inline: 0; padding-inline: 0; }
#kundenbewertungen .sec-title h2 {
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.18;
}

/* Google is the single, left-aligned source mark on review cards. */
#kundenbewertungen .testimonial-source { justify-content: flex-start; }

/* Lower the role banner beside Sascha by 50px. */
.hero-6 .banner-image .banner-quote { bottom: 58px; }
@media (max-width: 1199.98px) {
  .hero-6 .banner-image .banner-quote { bottom: 120px; }
}

/* Equal spacing above and below the logo, without heading or paragraph margins. */
.hero-6 .banner-content h1 + .text-item {
  margin-top: var(--hero-logo-gap, 32px);
}
.hero-6 .banner-content h1 + .text-item .benefits-line {
  margin-block: 0;
}

/* Mobile only: tighter hero top, one-line benefits, wider call-to-action button. */
@media (max-width: 575.98px) {
  .hero-6 { padding-top: 100px; }
  .hero-6 .banner-content h1 + .text-item .benefits-line {
    flex-wrap: nowrap;
    column-gap: clamp(8px, 3.5vw, 14px);
    font-size: clamp(12px, 3.75vw, 14px);
    white-space: nowrap;
  }
  .hero-6 .banner-content h1 + .text-item .benefits-line i {
    font-size: 12px;
    margin-right: 2px;
  }
  .hero-6 .banner-content .hero-button .btn-style-three {
    width: 100%;
    max-width: 100%;
    padding-left: 28px;
    padding-right: 80px;
  }
}

/* Mobile only: pull the footer company block closer to the logos;
   shift the menu logos left so the close X stays clear. */
@media (max-width: 575.98px) {
  .footer-section-2 .footer-top-wrapper { padding-top: 40px; padding-bottom: 24px; }
  .footer-section-2 .footer-widget-wrapper { padding-top: 24px; }
  .footer-section-2 .footer-widget-wrapper .row > div:first-child .footer-widget-items { margin-top: 0 !important; }
  .mobile-menu .nav-logo .brand-pair { width: 225px; }
}

/* Mobile only: smaller bank logos so several fit per row; same speed and
   same staggered second row as on desktop (scaled to the shorter rows). */
@media (max-width: 767.98px) {
  .bank-logos-first .marquee,
  .bank-logos-second .marquee { --duration: 100s; }
  .bank-logos-first .marquee .marquee-group,
  .bank-logos-second .marquee .marquee-group { gap: 14px; }
  .bank-logos-first .marquee .text,
  .bank-logos-second .marquee .text { margin: 0 14px; font-size: 0; line-height: 1; }
  .bank-logos-first .marquee .text img,
  .bank-logos-second .marquee .text img { max-height: 28px; }
  .bank-logos-second .marquee-group {
    -webkit-animation-delay: -7.14s;
    animation-delay: -7.14s;
  }
}

/* Mobile: keep "Leharstraße 6" and the postcode on separate lines in the footer
   (the theme hides every <br> below 768px). */
@media (max-width: 767.98px) {
  .footer-section-2 .footer-content p br { display: inline; }
}

/* Dots below the reviews show the current position in the carousel (desktop and mobile). */
#kundenbewertungen .review-pagination {
  grid-column: 1 / -1;
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
#kundenbewertungen .review-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: #c9d7d8;
  opacity: 1;
  transition: width .3s ease, background-color .3s ease;
}
#kundenbewertungen .review-pagination .swiper-pagination-bullet-active {
  width: 26px;
  background: #00696d;
}
#kundenbewertungen .review-pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #039397;
  outline-offset: 2px;
}

/* Small "KI generiert" label at the bottom of AI-generated images. */
.ki-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(14, 44, 52, .4);
  color: rgba(255, 255, 255, .95);
  font-size: 10px;
  font-weight: 400;
  text-shadow: 0 0 2px rgba(0, 0, 0, .35);
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
}
figure:has(> .ki-badge) { position: relative; }
/* Über uns, large picture: the two small pictures overlap its lower corners,
   so the label sits on the left, just above the planning picture. */
.nock-about .image-column-3 .image1 .ki-badge { left: 8px; right: auto; bottom: 21%; }
