html {
  overflow-x: hidden;
}

html, body {
  font-family: 'Roboto', Helvetica Neue, Verdana, Arial, sans-serif;
  color: var(--dunkelblau);
  scroll-behavior: smooth;
}

body {
  background-color: var(--weiss);
  overflow-x: clip; /* Verhindert horizontalen Scroll durch Bootstrap-Row-Margins */
}

:root {
  --dunkelblau: #0C2A3E;
  --hellblau: #578197;
  --weiss: #ffffff;
  --grau: #4c575d;
  --rot: #9f2b2b;
  --bg: #f5f7f9;
}

section {
  scroll-margin-top: 80px; /* Fallback für Nicht-JS-Umgebungen */
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Helvetica Neue, Verdana, Arial, sans-serif;
}

.sub-title {
    font-family: 'Roboto', Helvetica Neue, Verdana, Arial, sans-serif;
    font-size: clamp(1rem, 0.8313rem + 0.4688vw, 1.3rem);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--hellblau);
    margin-bottom: 1.5rem;
}

.title1 {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(2rem, 1.55rem + 1.25vw, 2.8rem);
    font-weight: 500;
    letter-spacing: normal;
    color: var(--dunkelblau);
}

.title2 {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(2rem, 1.55rem + 1.25vw, 2.8rem);
    font-weight: 400;
    letter-spacing: normal;
    color: var(--weiss);
}

img {
  max-width: 100%;
}

p, ul, li {
  font-size: clamp(1rem, 0.8594rem + 0.3906vw, 1.25rem);
  color: var(--dunkelblau);
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
/*---------------- Navigation -------------*/
.navbar-brand {
  display: flex;
  align-items: flex-start;
}

.navbar-brand img {
  height: 144px;
  transition: height 0.2s ease;
}

#navbar {
  z-index: 1030;
}

#navbar.scrolled .navbar-brand img {
  height: 72px;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 72px;
  }

  #navbar.scrolled .navbar-brand img {
    height: 56px;
  }
}

.bg-nav {
  background-color: var(--dunkelblau);
  transition: background-color 0.3s ease;
}

.navbar .container {
  align-items: flex-start;
}

.navbar .navbar-collapse {
  align-items: flex-start;
}

.navbar .navbar-nav {
  align-items: flex-start;
}

.navbar .navbar-nav .nav-item {
  position: relative;
  padding-bottom: 0.35rem;
  margin-right: 0.8rem;
  padding-right: 0.8rem;
}

.navbar .navbar-nav .nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 1.2rem;
  background-color: var(--hellblau);
}

.navbar .navbar-nav .nav-item:last-child::after {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-item {
    padding-bottom: 0.6rem;
    margin-right: 0;
    padding-right: 0;
    margin-top: 0.35rem;
  }

  .navbar .navbar-nav .nav-item::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    height: 1px;
  }
}

.navbar .navbar-nav .nav-link {
  color: var(--weiss);
  font-size: clamp(0.8rem, 0.557rem + 0.5063vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  display: inline-block;
  white-space: nowrap;
  transition: text-shadow 0.25s ease, color 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  /* Fake-Bold ohne Layoutshift + dezenter Schein */
  text-shadow: 0 0 0.65px var(--weiss), 0 0 0.65px var(--weiss), 0 0 8px rgba(53, 123, 143, 0.5);
  color: var(--weiss);
}

.navbar .btn-nav-cta {
  background-color: var(--hellblau);
  color: var(--weiss);
  border: 1px solid var(--hellblau);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1rem;
  margin-top: 0.2rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar .btn-nav-cta:hover,
.navbar .btn-nav-cta:focus {
  background-color: #2c6877;
  border-color: #2c6877;
  color: var(--weiss);
  box-shadow: 0 0 8px 2px rgba(53, 123, 143, 0.25);
}

@media (min-width: 992px) {
  .w-lg-auto {
    width: auto !important;
  }
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/*---------------- Header -------------*/

.hero-section {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: var(--weiss);
  overflow: hidden;
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content {
    max-width: 58%;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 134vh;
    align-items: start;
  }
}

.hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}

.hero-content-layer {
  position: relative;
  z-index: 1;
  padding-block: 2rem;
}

.hero-content {
  padding: 2rem 0;
}

@media (max-width: 575.98px) { 
.hero-content {
  padding: 1rem 0;
}


}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .lead {
  color: var(--dunkelblau);
}

.hero-content h1 {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 500;
}

.hero-content h4 {
  font-family: 'Roboto';
  font-weight: 500;
color: var(--dunkelblau);
}

.hero-card {
  background: rgba(255,255,255,0.95);
  color: var(--dunkelblau);
  border: 1px solid rgba(0,36,51,0.08);
}

.hero-content .btn {
  background-color: var(--hellblau);
  color: var(--weiss);
  border: 1px solid var(--hellblau);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-content .btn:hover,
.hero-content .btn:focus {
  background-color: #2c6877;
  border-color: #2c6877;
  color: var(--weiss);
}

.intro-section {
  background-color: var(--weiss);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hellblau);
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  color: var(--dunkelblau);
  margin-bottom: 1rem;
  font-weight: 700;
}

/*---------------- Counter -------------*/

.counter-section {
  background-color: var(--dunkelblau);
  color: var(--weiss);
}

.counter-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0.5rem;
}

.counter-number {
  color: var(--hellblau);
  font-family: 'Bitter', sans-serif;
  font-size: clamp(1.3rem, 0.2846rem + 2.1154vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.counter-divider {
  align-self: flex-start;
  width: 100px;
  max-width: 100%;
  height: 1px;
  background-color: var(--hellblau);
}

@media (max-width: 991.98px) {
  .counter-cell {
    align-items: center;
    text-align: center;
  }

  .counter-number {
    font-size: 2.4rem;
  }

  .counter-divider {
    align-self: center;
    width: 100%;
  }

  .counter-caption {
    text-align: center;
  }

  .counter-cell p {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .counter-cell {
    padding: 1rem 0.25rem;
  }

  .counter-number {
    font-size: 2.2rem;
  }

  .counter-label {
    font-size: 1rem;
  }

  .counter-caption {
    font-size: 0.95rem;
  }
}

.counter-label {
  color: var(--weiss);
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
}

.counter-caption {
  color: var(--weiss);
  font-size: clamp(0.8rem, 0.4308rem + 0.7692vw, 1.2rem);
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
  text-align: left;
}

@media (max-width: 767.98px) {
.counter-caption {
  font-size: 1.2rem;
}    
}

/*---------------- Strategie -------------*/
@media (min-width: 768px) {
  .box-strategie {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 2rem;
  }

  .box-strategie > [class*="col"] {
    display: contents;
  }

  .strategie-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .box-strategie > [class*="col"]:last-child .strategie-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .box-strategie {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 0;
  }
}

.strategie-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  border: 1px solid var(--dunkelblau);
  padding: 2.5rem 1rem;
}

.strategie-card h4{
  font-size: 1.6rem;
  font-weight: 600;
  align-self: start;
}

.strategie-card .card-strich{
  display: block;
  height: 1px;
  width: 100px;
  background-color: var(--hellblau);
  margin-block: 1rem;
  align-self: start;
}

.strategie-card p {
  align-self: start;
}
/*------Marktbeobachtung ----*/
 #marktbeobachtung {
    background-color: var(--dunkelblau);
 }

/*---------------- Marktbeobachtung -------------*/

.mb-boxen {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  row-gap: 0;
}

.mb-box {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  border: 1px solid var(--hellblau);
  color: var(--weiss);
  padding: 1.5rem;
}

.mb-zahl {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hellblau);
  line-height: 1;
  margin-bottom: 1rem;
}

.mb-titel {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--weiss);
  margin: 0;
   margin-bottom: 1rem;
}

.mb-box p {
  font-size: 0.9rem;
  color: var(--weiss);
  margin: 0;
}

@media (max-width: 991.98px) {
  .mb-boxen {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .mb-boxen {
    grid-template-columns: 1fr;
  }
}

.vertrieb {
    position: relative;
}

.vertrieb-box {
    position: absolute;
    top: 10%;
    right: 10%;
    color: var(--weiss);
    background-color: rgba(53, 123, 143,0.7);
    text-align: center;
    padding: 1.4rem 1.1rem;
    max-width: clamp(24rem, 18.4898rem + 23.5102vw, 42rem);
}

@media (max-width: 575.98px) { 
.vertrieb-box {
    position: relative;
    top: 0;
    right: 0;
    color: var(--weiss);
    background-color: rgba(53, 123, 143,0.7);
    text-align: center;
    padding: 1.4rem 1.1rem;
    max-width: 100%;
}

 }

.vertrieb-box h2{
font-family: 'Bitter', Georgia, serif;
font-size: clamp(1.5rem, 0.7688rem + 2.0312vw, 2.8rem);
font-weight: 100;
text-align: left;
font-style: italic;
}

.vertrieb-box h2 span{
font-weight: 600;

}
/*---------------- Leistungen -------------*/

.table-leistungen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto auto);
  column-gap: 4rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-rows: subgrid;
  grid-row: span 2;
  column-gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(53, 123, 143, 0.35);
}

/* Spalte 1: Items 01–04 */
.tl-item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.tl-item:nth-child(2) { grid-column: 1; grid-row: 3 / span 2; }
.tl-item:nth-child(3) { grid-column: 1; grid-row: 5 / span 2; }
.tl-item:nth-child(4) { grid-column: 1; grid-row: 7 / span 2; }

/* Spalte 2: Items 05–07 */
.tl-item:nth-child(5) { grid-column: 2; grid-row: 1 / span 2; }
.tl-item:nth-child(6) { grid-column: 2; grid-row: 3 / span 2; }
.tl-item:nth-child(7) { grid-column: 2; grid-row: 5 / span 2; }

.tl-zahl {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hellblau);
  line-height: 1;
  align-self: start;
  padding-top: 0.15rem;
}

.tl-titel {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--weiss);
  margin: 0;
  align-self: start;
  margin-bottom: 0.8rem;
}

.tl-item p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
  color: var(--weiss);
  margin: 0;
  align-self: start;
}

@media (max-width: 767.98px) {
  .table-leistungen {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tl-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto / span 2;
  }
}
#leistungen {
 background-color: var(--dunkelblau);   
}

#leistungen {
 background-color: var(--dunkelblau);   
}

.section-aktuelles {
  background-color: var(--dunkelblau);    
}

.section-aktuelles h4, .section-aktuelles p{
color: var(--weiss);    
}

.section-aktuelles .card-strich {
  display: block;
  height: 1px;
  width: 100px;
  background-color: var(--hellblau);
  margin-block: 1rem;
  align-self: start;
}

.stationen {
  color: var(--weiss);  
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.5rem, 0.7688rem + 2.0312vw, 2.8rem);
  font-weight: 400;
  text-align: center;
}


/*---------------- Profil -------------*/

/* Äußeres Layout: Foto | Tabelle */
.profil-tabelle {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.profil-foto img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Career-Tabelle: 3-spaltiges Grid mit Subgrid-Zeilen */
.profil-career {
  display: grid;
  grid-template-columns: 9rem 1fr 1fr;
  grid-template-rows: auto;
}

.career-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(53, 123, 143, 0.35);
}

.career-row:first-child {
  border-top: 1px solid rgba(53, 123, 143, 0.35);
}

.career-year {
  color: var(--hellblau);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.career-role {
  font-weight: 600;
  color: var(--dunkelblau);
  font-size: 0.95rem;
}

.career-company {
  color: var(--dunkelblau);
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .profil-tabelle {
    grid-template-columns: 1fr;
  }

  .profil-career {
    grid-template-columns: 8rem 1fr;
  }

  .career-row {
    grid-template-rows: auto auto;
  }

  .career-year {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .career-role {
    grid-column: 2;
    grid-row: 1;
  }

  .career-company {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 575.98px) {
  .profil-career {
    grid-template-columns: 7rem 1fr;
  }
}

/*---------------- Kontakt -------------*/

.col-lg-2-4 {
  flex: 0 0 20%;
  max-width: 20%;
}

@media (max-width: 991.98px) {
  .col-lg-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.card-hover,
.service-card {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 36, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 36, 51, 0.14);
}

.project-card img,
.service-card img {
  height: 220px;
  object-fit: cover;
}

.bg-kontakt {
  background-color: var(--dunkelblau);
  color: var(--weiss);
}

/* Kontakt-Inhalte */
.kontakt-headline {
font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.8rem);
  font-weight: 400;
  color: var(--weiss);
  line-height: 1.2;
  margin: 0;
}

.kontakt-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.btn-kontakt {
  display: inline-block;
  background-color: var(--hellblau);
  color: var(--weiss);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-kontakt:hover {
  background-color: #2c6877;
  color: var(--weiss);
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kontakt-logo {
  height: 140px;
  width: auto;
}

.kontakt-name {
  font-weight: 700;
  color: var(--weiss);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.kontakt-details {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.kontakt-link {
  color: var(--hellblau);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.kontakt-link:hover {
  color: #5aa8be;
}

/* Button primär allgemein */
.btn-primary {
  background-color: var(--hellblau);
  border-color: var(--hellblau);
  border-radius: 0;
}

.btn-primary:hover {
  background-color: #2c6877;
  border-color: #2c6877;
}

.btn-secondary {
  background-color: var(--hellblau);
  border-color: var(--hellblau);
  border-radius: 0;
}

.btn-secondary:hover {
  background-color: #2c6877;
  border-color: #2c6877;
}

/* Footer */
.footer {
  background-color: var(--dunkelblau);
  color: var(--weiss);
  font-size: 0.8rem;
  font-weight: 200;
  border-top: 1px solid var(--weiss);

}

.footer span {
  color: var(--weiss);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

.footer a {
color: var(--weiss); 
  text-decoration: none;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.modal-body {
  background-color: #fff;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
  color: var(--dunkelblau);
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--hellblau);
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 0;
  font-size: 18px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#myBtn:hover {
  background-color: #66747b;
  box-shadow: 0 0 8px 2px rgba(53, 123, 143, 0.25);
}