/* === SoniTrace Theme — Based on StartBootstrap Agency === */

:root {
  --bs-primary: #ffc800;
  --bs-dark: #212529;
  --bs-light: #f8f9fa;
}

/* === General Typography === */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #212529;
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.section-subheading {
  font-family: 'Roboto Slab', serif;
  font-style: italic;
  color: #6c757d;
}

/* === Navbar === */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--bs-dark);
  transition: padding 0.2s ease-in, background-color 0.2s ease-in;
}
#mainNav.navbar-shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: var(--bs-dark);
}
#mainNav .navbar-brand img {
  height: 28px;
}
#mainNav .navbar-nav .nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.0625em;
  color: #fff;
  transition: color 0.2s ease;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}
.beta-badge {
  font-size: 0.7rem;
  background: #ffd166;
  color: #111;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 700;
}

/* === Masthead === */
.masthead {
  position: relative;
  width: 100%;
  padding-top: calc(6rem + 72px);
  padding-bottom: 6rem;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
              url('../assets/img/header-bg.jpg') left center/cover no-repeat;
  text-align: center;
  color: #fff;
}
.masthead .masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
}
.masthead .masthead-heading {
  font-size: 3.25rem;
  line-height: 3.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 992px) {
  .masthead {
    padding-top: 17rem;
    padding-bottom: 12.5rem;
  }
  .masthead .masthead-subheading {
    font-size: 2.25rem;
    line-height: 2.25rem;
  }
  .masthead .masthead-heading {
    font-size: 4.5rem;
    line-height: 4.5rem;
  }
}

/* === Sections === */
.page-section {
  padding: 6rem 0;
}
.section-heading {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.section-subheading {
  font-size: 1rem;
  margin-bottom: 4rem;
}

/* === Buttons === */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #d3a800;
  --bs-btn-hover-border-color: #d3a800;
  --bs-btn-active-bg: #b99000;
  --bs-btn-active-border-color: #b99000;
  color: #fff;
}
.btn-xl {
  padding: 1.25rem 2.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 0.5rem;
  letter-spacing: 0.0625em;
}

/* === Portfolio Grid === */
.portfolio-item {
  position: relative;
}
.portfolio-link {
  position: relative;
  display: block;
  margin: 0 auto;
}
.portfolio-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: rgba(255, 200, 0, 0.9);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-link:hover .portfolio-hover {
  opacity: 1;
}
.portfolio-hover-content {
  font-size: 1.25rem;
  color: #fff;
}
.portfolio-caption {
  text-align: center;
  background: #fff;
  padding: 1.25rem;
}
.portfolio-caption-heading {
  font-size: 1.1rem;
  font-weight: 700;
}
.portfolio-caption-subheading {
  font-style: italic;
  font-family: 'Roboto Slab', serif;
}

/* === Timeline (About Section) === */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 2px;
  margin-left: -1.5px;
  content: "";
  background-color: #e9ecef;
}
.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}
.timeline > li:after, .timeline > li:before {
  display: table;
  content: " ";
}
.timeline > li:after {
  clear: both;
}
.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 0 20px 100px;
  text-align: left;
}
.timeline > li .timeline-panel:before {
  right: auto;
  left: -15px;
  border-right-width: 15px;
  border-left-width: 0;
}
.timeline > li .timeline-panel:after {
  right: auto;
  left: -14px;
  border-right-width: 14px;
  border-left-width: 0;
}
.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 100px;
  height: 100px;
  margin-left: 0;
  text-align: center;
  color: white;
  border: 7px solid #e9ecef;
  border-radius: 100%;
  background-color: #ffc800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.timeline > li .timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline > li .timeline-image h4, .timeline > li .timeline-image .h4 {
  font-size: 10px;
  line-height: 14px;
  margin-top: 12px;
}
.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
  padding: 0 20px 0 100px;
  text-align: left;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  right: auto;
  left: -15px;
  border-right-width: 15px;
  border-left-width: 0;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  right: auto;
  left: -14px;
  border-right-width: 14px;
  border-left-width: 0;
}
.timeline > li:last-child {
  margin-bottom: 0;
}
.timeline .timeline-heading h4, .timeline .timeline-heading .h4 {
  margin-top: 0;
  color: inherit;
}
.timeline .timeline-heading h4.subheading, .timeline .timeline-heading .subheading.h4 {
  text-transform: none;
}
.timeline .timeline-body > ul,
.timeline .timeline-body > p {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .timeline > li .timeline-panel {
    padding: 0 20px 20px 20px;
    text-align: right;
  }
  .timeline > li .timeline-image {
    left: 0px;
    margin-left: 180px;
    width: 75px;
    height: 75px;
  }
  .timeline > li {
    position: relative;
    min-height: 0px;
    margin-bottom: 0px;
    margin-top: 0px; /* Diese Zeile hinzufügen */
    margin-left: 0px;
    margin-right: 0;
  }
  .timeline:before {
    left: 0px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 0 0 0;
  }
}

@media (max-width: 600px) {
  .timeline:before {
    display: none;
  }
  .timeline > li .timeline-image {
    position: relative; 
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
  }

  .timeline > li .timeline-panel {
    padding: 0 20px;
    width: 100%;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 20px;
  }
}

@media (min-width: 768px) {
  .timeline:before {
    left: 50%;
  }
  .timeline > li {
    min-height: 100px;
    margin-bottom: 100px;
  }
  .timeline > li .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: right;
  }
  .timeline > li .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }
  .timeline > li .timeline-image h4, .timeline > li .timeline-image .h4 {
    font-size: 13px;
    line-height: 18px;
    margin-top: 16px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: left;
  }
}
@media (min-width: 992px) {
  .timeline > li {
    min-height: 150px;
  }
  .timeline > li .timeline-panel {
    padding: 0 20px 20px;
  }
  .timeline > li .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }
  .timeline > li .timeline-image h4, .timeline > li .timeline-image .h4 {
    font-size: 18px;
    line-height: 26px;
    margin-top: 30px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 20px 20px;
  }
}
@media (min-width: 1200px) {
  .timeline > li {
    min-height: 170px;
  }
  .timeline > li .timeline-panel {
    padding: 0 20px 20px 100px;
  }
  .timeline > li .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }
  .timeline > li .timeline-image h4, .timeline > li .timeline-image .h4 {
    margin-top: 40px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 100px 20px 20px;
  }
}
.team-member {
  margin-bottom: 3rem;
  text-align: center;
}
.team-member img {
  width: 14rem;
  height: 14rem;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
}
.team-member h4, .team-member .h4 {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.img-brand {
  height: 2.75rem;
}

/* === Team === */
.team-member img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
}

/* === Footer === */
.footer {
  background: var(--bs-light);
}
.btn-social {
  border-radius: 100%;
}

/* === Modals === */
.portfolio-modal .modal-content {
  padding: 2rem;
  border: 0;
  border-radius: 0.5rem;
}
.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: 0;
}

/* === Contact Form === */
.form-group-textarea textarea {
  min-height: 10rem;
}
