:root {
  --bs-primary: #18181b;
  --bs-primary-rgb: 24, 24, 27;
  --bs-link-color: #18181b;
  --bs-link-color-rgb: 24, 24, 27;
  --bs-link-hover-color: #3f3f46;
  --bs-link-hover-color-rgb: 63, 63, 70;
}

.btn-primary {
  --bs-btn-bg: #18181b;
  --bs-btn-border-color: #18181b;
  --bs-btn-hover-bg: #3f3f46;
  --bs-btn-hover-border-color: #3f3f46;
  --bs-btn-active-bg: #3f3f46;
  --bs-btn-active-border-color: #3f3f46;
  --bs-btn-disabled-bg: #18181b;
  --bs-btn-disabled-border-color: #18181b;
}

/* geist-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Geist";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/geist-v5-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* geist-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/geist-v5-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* geist-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/geist-v5-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
html {
  overflow-x: hidden;
}

body {
  background: #ffffff;
  color: #27272a;
  font-family: "Geist", sans-serif;
}

.navbar-brand img {
  height: 32px;
  margin: 5px 0;
  transition: height 0.25s ease;
}

#mainNavbar {
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  z-index: 1030;
  border-bottom-color: rgba(17, 19, 24, 0.07) !important;
}
#mainNavbar.is-scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
}
#mainNavbar.is-scrolled .navbar-brand img {
  height: 25px;
}
#mainNavbar .navbar-nav {
  gap: 0.375rem;
}
@media (min-width: 992px) {
  #mainNavbar .navbar-nav {
    gap: 1.75rem;
  }
}
#mainNavbar .nav-link {
  color: #5B606B;
  transition: color 0.2s ease;
}
#mainNavbar .nav-link.active {
  color: #ba1717;
}
#mainNavbar .nav-link:hover {
  color: #ba1717;
}

body.has-hero #mainNavbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
body.has-hero #mainNavbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(17, 19, 24, 0.07) !important;
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.04);
}
body.has-hero #mainNavbar:has(.navbar-collapse.show) {
  background: #fff !important;
  border-bottom-color: rgba(17, 19, 24, 0.07) !important;
}
body.has-hero .hero-v2 {
  padding-top: 4rem;
}
@media (min-width: 992px) {
  body.has-hero .hero-v2 {
    padding-top: 7rem;
  }
}

.team-avatar-wrapper {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-wrapper img {
  transform: scale(1.1);
  width: 100%;
}

.card {
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card.dark {
  background: #faf8f9;
  border-color: #efe9e9;
}
.card:hover {
  border-color: #c4c4cb;
  transform: translateY(-2px);
}

section h2 {
  margin-bottom: 1rem;
}

/* ----- Project showcase ----- */
.project-panel {
  transition: transform 0.2s ease;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 130px 0;

  @media (max-width: 767px) {
    padding: 66px 0;
  }
}

.project-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.project-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
}
.project-logo img {
  width: 220px;
}

/* ----- Full-bleed content bands ----- */
.band {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;

  @media (max-width: 767px) {
    padding: 3.5rem 0;
  }
}
.band-light {
  background: #f4f4f5;
}
.band-white {
  background: #ffffff;
}
.band-dark {
  background: #18181b;
  color: #fff;
}
.band-hero {
  background: radial-gradient(1150px 720px at 84% -8%, rgba(216, 35, 42, 0.1), transparent 72%), radial-gradient(1050px 660px at 2% 90%, rgba(216, 35, 42, 0.09), transparent 72%), linear-gradient(180deg, #fbfbfc 0%, #ffffff 55%);
  padding: 8rem 0;

  @media (max-width: 767px) {
    padding: 4rem 0;
  }
}
.band-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(17, 19, 24, 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(17, 19, 24, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 45%, transparent 90%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 45%, transparent 90%);
}
.band-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(216, 35, 42, 0.35) 45%, rgba(216, 35, 42, 0.35) 55%, transparent);
}
.band-hero > .container {
  position: relative;
  z-index: 1;
}

/* ----- Poster-style headings ----- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  color: #ba1717 !important;
}

/* ----- Office masonry & map ----- */
.office-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 14rem;
  gap: 0.75rem;

  @media (max-width: 991px) {
    grid-auto-rows: 8rem;
  }
}
.office-masonry-item {
  grid-column: span 1;
  grid-row: span 1;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 1rem;
  background: #f4f4f5;
  display: block;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.office-masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.office-masonry-item:hover::after, .office-masonry-item:focus-visible::after {
  background: rgba(0, 0, 0, 0.15);
}
.office-masonry-item:focus-visible {
  outline: 3px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}
.office-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.office-masonry-item:hover img, .office-masonry-item:focus-visible img {
  transform: scale(1.08);
}
.office-masonry-item:nth-child(1) {
  grid-column: 1/3;
  grid-row: 1/3;
}
.office-masonry-item:nth-child(2) {
  grid-column: 3/4;
  grid-row: 1/2;
}
.office-masonry-item:nth-child(3) {
  grid-column: 4/5;
  grid-row: 1/2;
}
.office-masonry-item:nth-child(4) {
  grid-column: 1/2;
  grid-row: 3/4;
}
.office-masonry-item:nth-child(5) {
  grid-column: 2/3;
  grid-row: 3/4;
}
.office-masonry-item:nth-child(6) {
  grid-column: 3/5;
  grid-row: 2/4;
}

@media (max-width: 767px) {
  .office-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 8rem;
    gap: 0.5rem;
  }

  .office-masonry-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .office-masonry-item:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: span 1;
  }

  .office-masonry-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: span 1;
  }

  .office-masonry-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: span 1;
  }

  .office-masonry-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: span 1;
  }

  .office-masonry-item:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
}

.office-gallery-modal .modal-content {
  background: #000;
}
.office-gallery-modal .btn-close {
  z-index: 5;
}
.office-gallery-modal .carousel-control-prev-icon,
.office-gallery-modal .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(3px 0 0 #555);
}

.office-gallery-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.office-map {
  position: relative;
  height: 100%;
  min-height: 30rem;
  border-radius: 1rem;
  background: #f4f4f5;
  overflow: hidden;
  border: 1px solid #dddddd;
}
.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ----- Hero v2 (Startseite) ----- */
@keyframes heroFloatA {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes heroFloatB {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(11px);
  }
}
@keyframes heroFloatC {
  0%, 100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(9px);
  }
}
@keyframes heroPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.hero-v2 {
  background: #FAFAFB;
  color: #111318;
  padding: 4.5rem 0 3rem;
}
@media (min-width: 992px) {
  .hero-v2 {
    padding: 5.25rem 0 5rem;
  }
}
.hero-v2 a {
  color: #111318;
  text-decoration: none;
}
.hero-v2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.hero-v2-grid-fine {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(17, 19, 24, 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(17, 19, 24, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-v2-grid-coarse {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(17, 19, 24, 0.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(17, 19, 24, 0.16) 1px, transparent 1px);
  background-size: 320px 320px;
}
.hero-v2-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(216, 35, 42, 0.5), transparent);
  display: none;
}
@media (min-width: 992px) {
  .hero-v2-vline {
    display: block;
  }
}
.hero-v2-hline {
  position: absolute;
  left: 0;
  right: 0;
  top: 220px;
  height: 1px;
  background: linear-gradient(to right, rgba(216, 35, 42, 0.45), rgba(216, 35, 42, 0.06) 55%, transparent);
}
.hero-v2-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 78% 38%, rgba(216, 35, 42, 0.1), transparent 70%), radial-gradient(700px 480px at 8% 92%, rgba(40, 90, 200, 0.07), transparent 70%);
}
.hero-v2-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(250, 250, 251, 0.9) 100%);
}
.hero-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  color: #5B606B;
}
.hero-v2-badge-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}
.hero-v2-badge-dot span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #D8232A;
}
.hero-v2-badge-dot span:last-child {
  animation: heroPulseRing 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2-badge-dot span:last-child {
    animation: none;
  }
}
.hero-v2-title {
  margin: 24px 0 0;
  font-size: clamp(2.25rem, 4.5vw + 1rem, 4.125rem);
  line-height: 1.05;
  font-weight: 600;
}
.hero-v2-lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #4A4F5A;
}
.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 8px;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hero-v2-actions .hero-v2-btn-primary {
  background: #111318;
  color: #fff;
  border-color: #111318;
}
.hero-v2-actions .hero-v2-btn-primary:hover {
  background: #D8232A;
  border-color: #D8232A;
  color: #fff;
}
.hero-v2-actions .hero-v2-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #111318;
  border-color: rgba(17, 19, 24, 0.18);
}
.hero-v2-actions .hero-v2-btn-secondary:hover {
  border-color: #111318;
  color: #111318;
}
.hero-v2-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  max-width: 580px;
  background: rgba(17, 19, 24, 0.12);
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.hero-v2-stat {
  background: rgba(255, 255, 255, 0.86);
  padding: 20px 12px;
}
@media (min-width: 400px) {
  .hero-v2-stat {
    padding: 20px 22px;
  }
}
.hero-v2-stat-value {
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  font-weight: 600;
  line-height: 1;
}
.hero-v2-stat-value-accent {
  color: #D8232A;
}
.hero-v2-stat-label {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #5B606B;
}
.hero-v2-orbit {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .hero-v2-orbit {
    max-width: 560px;
    margin: 0 0 0 auto;
  }
}
.hero-v2-ring {
  position: absolute;
  border-radius: 999px;
}
.hero-v2-ring-1 {
  inset: 8%;
  border: 1px dashed rgba(17, 19, 24, 0.14);
}
.hero-v2-ring-2 {
  inset: 24%;
  border: 1px dashed rgba(17, 19, 24, 0.12);
}
.hero-v2-ring-3 {
  inset: 40%;
  border: 1px solid rgba(216, 35, 42, 0.22);
}
.hero-v2-node {
  position: absolute;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-v2-node-center {
  left: 30%;
  top: 32%;
  width: 40%;
  height: 36%;
  flex-direction: column;
  gap: 4px;
  background: #111318;
  color: #fff;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.28);
}
.hero-v2-node-value {
  font-size: clamp(1.125rem, 2.4vw, 1.875rem);
  font-weight: 600;
}
.hero-v2-node-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero-v2-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 19, 24, 0.1);
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.1);
  font-size: clamp(7px, 1.6vw, 10px);
  text-transform: uppercase;
  color: #9AA0AB;
  line-height: 1.3;
}
.hero-v2-bubble-dashed {
  border: 1px dashed rgba(17, 19, 24, 0.2);
  box-shadow: none;
}
.hero-v2-bubble-1 {
  left: 2%;
  top: 6%;
  width: 23%;
  height: 23%;
}
.hero-v2-bubble-2 {
  left: 34%;
  top: 0%;
  width: 19%;
  height: 19%;
}
.hero-v2-bubble-3 {
  right: 0%;
  top: 10%;
  width: 26%;
  height: 26%;
}
.hero-v2-bubble-4 {
  left: 0%;
  top: 42%;
  width: 21%;
  height: 21%;
}
.hero-v2-bubble-5 {
  right: 2%;
  top: 46%;
  width: 24%;
  height: 24%;
}
.hero-v2-bubble-6 {
  left: 12%;
  bottom: 4%;
  width: 22%;
  height: 22%;
}
.hero-v2-bubble-7 {
  right: 16%;
  bottom: 2%;
  width: 18%;
  height: 18%;
}
.hero-v2-bubble-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2-bubble-logo {
    transition: none;
  }
}
.hero-v2-bubble-logo-fading {
  opacity: 0;
}
.hero-v2-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(216, 35, 42, 0.35);
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.1);
  font-size: 13px;
  white-space: nowrap;
}
.hero-v2-tag span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #D8232A;
}
.hero-v2-tag-1 {
  left: -4%;
  top: 24%;
}
.hero-v2-tag-2 {
  right: 6%;
  bottom: 24%;
}
.hero-v2-float-a {
  animation: heroFloatA 7.5s ease-in-out infinite;
}
.hero-v2-float-b {
  animation: heroFloatB 8.5s ease-in-out infinite;
}
.hero-v2-float-c {
  animation: heroFloatC 9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2-float {
    animation: none;
  }
}
.hero-v2-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 3rem;
  padding: 0 0 1rem;
  font-size: 12px;
  text-transform: uppercase;
  color: #9AA0AB;
}
.hero-v2-slash {
  color: rgba(17, 19, 24, 0.2);
}
.hero-v2-footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(17, 19, 24, 0.16), transparent);
}

/* ----- Scroll-reveal ----- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

.text-mostdata-first {
  color: #bb1819;
}

.text-mostdata-second {
  color: black;
  font-weight: 300;
}

main .band h2 {
  font-size: 40px;

  @media (max-width: 767px) {
    font-size: 30px;
  }
}

main .band h3 {
  font-size: 24px;
  font-weight: bold;
}

/* ----- Kontaktformular ----- */
.contact-form-wrap {
  max-width: 32rem;
}
.contact-form-wrap .form-group {
  margin-bottom: 1rem;
}
.contact-form-wrap .privacy__text {
  margin-bottom: 0;
}
.contact-form-wrap .form-control-sm {
  padding: 10px 22px;
  min-height: 1px;
}
.contact-form-wrap .form__appearance select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235B606B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

/* ----- Cookie-Hinweis ----- */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.6);
}
.cookie-banner-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #18181b;
  max-width: 30rem;
  width: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
  text-align: center;
}
.cookie-banner-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.cookie-banner-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Google Maps Platzhalter ----- */
.office-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  background: #f4f4f5;
}
.office-map-placeholder[hidden] {
  display: none;
}
.office-map-placeholder p {
  margin: 0;
  max-width: 22rem;
}
