/*

Template 2103 Central

http://www.tooplate.com/view/2103-central
	
*/

@font-face {
  font-family: "PP Mori";
  src: url("fonts/PPMori-Regular.woff2") format("woff2"),
       url("fonts/PPMori-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}


body {
  font-family: "PP Mori", sans-serif;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: #779490;
}

a:hover,
a:focus,
.tm-text-gray {
  color: #666666;
}

.tm-text-black {
  color: #212529;
}

h1 {
  font-size: 3rem;
}

h2 {
    margin-bottom: 20px; /* adjust as needed */
}


p {
  line-height: 1.8;
}

/* Contact links black */
.contact-info a {
  color: black;
  text-decoration: none;
}

/* Black links */
.black-link {
  color: black;
  text-decoration: none;
}

.navbar-toggler {
  border-color: #000000;
  cursor: pointer;
}

#mainNav {
  background: white;
  padding: 5px 15px;
  width: 180px;
  position: absolute;
  top: 50px;
  right: 15px;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  -moz-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  z-index: 1000;
}

.navbar {
  justify-content: flex-end;
}
button {
  cursor: pointer;
}
button:focus {
  outline: none;
}
.tm-section-mb {
  margin-bottom: 90px;
}


#top {
  padding-top: 65px;
}

#tm-section-2,
#tm-section-7 {
  padding-top: 60px;
}
#tm-section-3 {
  padding-bottom: 60px;
}


.tm-section-4 {
  padding: 500px;
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url(../img/zug.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  height: 300px;
}

.menu {
  float: right;
}

.tm-box-3 {
  padding: 40px 50px;
  background: #ABC4C0;
}

.tm-box-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 25px;
  padding-right: 25px;
  min-height: 280px;
  background: #ABC4C0;
}

.tm-media {
  margin-bottom: 25px;
}

.slick-dots li button:before {
  font-size: 20px;
  color: white;
  opacity: 1;
}

.tm-img-slider-item {
  position: relative;
}

.tm-slider-caption {
  color: white;
  font-size: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  margin-bottom: 0;
  padding: 8px 30px;
  background-color: rgba(206, 212, 218, 0.5);
  color: #111;
}

.tm-img-container {
  width: 96%;
  max-width: 1020px;
}

.slick-dots {
  position: absolute;
  bottom: -50px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-prev:before,
.slick-next:before {
  color: #f8f9fa;
}

.slick-prev {
  left: 5px;
  z-index: 1000;
}

.slick-next {
  right: 5px;
}
.tm-slider-img {
  width: 100%;
}

.tm-slider-img,
.slick-slide {
  min-height: 250px;
}

.tm-slider-img {
  min-width: 500px;
}

.footer {
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  text-align: center;
  width: 100%;
}

a {
  transition: all 0.3s ease;
}

.btn {
  background-color: white;
  border-color: gray;
  border-radius: 0;
  color: #666666;
  font-size: 1.3rem;
  margin-top: 5px;
  padding: 12px 30px;
}

.btn-big {
  padding: 10px 45px;
}

.btn:hover,
.btn:focus {
  background-color: gray;
  color: white;
}

.tm-media-img {
  width: 400px;
  height: 280px;
}

.float-right {
  float: right;
}

.tm-fa-toggler-icon {
  font-size: 30px;
  padding: 0;
  color: black;
}

.tm-2col-l {
  padding-right: 40px;
}
.tm-2col-r {
  padding-left: 40px;
}

.form-control {
  border-radius: 0;
  font-size: 1.2rem;
  padding: 13px 19px;
}

.form-control:focus {
  border-color: #b5b5b5;
  box-shadow: 0 0 0 0.2rem #a3a3a329;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

/* Loader */

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3498db;

  -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

  z-index: 1001;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #e74c3c;

  -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #f9c922;

  -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}

#loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  width: 51%;
  height: 100%;
  background: #222222;
  z-index: 1000;
  -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(0); /* IE 9 */
  transform: translateX(0); /* Firefox 16+, IE 10+, Opera */
}

#loader-wrapper .loader-section.section-left {
  left: 0;
}

#loader-wrapper .loader-section.section-right {
  right: 0;
}

/* Loaded */
.loaded #loader-wrapper .loader-section.section-left {
  -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(-100%); /* IE 9 */
  transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
  -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(100%); /* IE 9 */
  transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.loaded #loader-wrapper {
  visibility: hidden;

  -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateY(-100%); /* IE 9 */
  transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.3s 1s ease-out;
  transition: all 0.3s 1s ease-out;
}

/* JavaScript Turned Off */
.no-js #loader-wrapper {
  display: none;
}

@media screen and (max-width: 1199px) {
  .tm-2col-l {
    padding-right: 30px;
  }
  .tm-2col-r {
    padding-left: 30px;
  }
}

@media screen and (max-width: 991px) {
  .tm-img-container {
    max-width: 490px;
    width: 90%;
  }
  .tm-address-box {
    padding-left: 10px;
  }
  .fit {
    margin-bottom: 50px;
  }
  .tm-slider-caption {
    font-size: 1rem;
    padding: 8px 10px;
  }
  .tm-2col-l {
    padding-right: 20px;
  }
  .tm-2col-r {
    padding-left: 20px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    justify-content: flex-end;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: end;
  }
  #mainNav {
    top: 90px;
    right: 30px;
  }

  .tm-2col-l {
    padding-right: 15px;
  }
  .tm-2col-r {
    padding-left: 15px;
  }
  .tm-address-box {
    padding-left: 0;
    padding-top: 40px;
  }
  .tm-form-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .tm-box-5 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .tm-section-mb {
    margin-bottom: 60px;
  }
  .tm-mb-sm-4 {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 540px) {
  .tm-address-box {
    margin-bottom: 50px;
  }
  .tm-page-4-content {
    margin-bottom: 50px;
  }

  .tm-slider-caption {
    right: 0;
    left: 0;
    bottom: 0;
  }

  .tm-slider-col {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 430px) {
  .tm-media {
    flex-direction: column;
  }
  .navbar {
    padding: 0;
  }
}

@media (min-width: 768px) {
  .tm-contact-right {
    padding-left: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1310px;
  }
}

.header-logo {
    width: 350px;   /* adjust size as needed */
    height: auto;
}

/* ===== FINAL MOBILE FIXES ===== */

/* 1) Menu alignment under logo */
@media (max-width:768px){
  .navbar {
    position: relative;
    width: 100%;
    right: 0;
  }

  #mainNav {
    position: absolute;
    right: 10px;
    top: 60px;
    width: 200px;
  }
}

/* 2) Word breaking */
.tm-box-3, .tm-box-5 {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 3) About section alignment */
@media (max-width:768px){
  #tm-section-5 .media {
    flex-direction: column;
  }
  #tm-section-5 img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
}

/* Desktop alignment */
@media (min-width:769px){
  #tm-section-5 .media {
    display: flex;
    align-items: flex-start;
  }
  #tm-section-5 .media-body {
    margin-left: 20px;
  }
}

/* 4) Contact header spacing */
#tm-section-7 h2 {
  margin-bottom: 20px;
}



/* FIX: tm-section-4 overflow (zug.png) */
.tm-section-4 {
  padding: 100px 20px !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  overflow: hidden;
}

@media (max-width:768px){
  .tm-section-4 {
    padding: 80px 15px !important;
    background-attachment: scroll;
  }
}


/* ===== FINAL IMAGE + TEXT ALIGNMENT FIXES ===== */

/* Make all project/network images fully responsive */
.tm-media-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers never overflow */
.tm-media {
  max-width: 100%;
  overflow: hidden;
}

/* MOBILE: stack image + text perfectly aligned */
@media (max-width: 768px) {

  .tm-media {
    display: flex;
    flex-direction: column;
  }

  .tm-media-img {
    width: 100%;
    height: auto;
  }

  .tm-box-5 {
    width: 100%;
    margin: 0;
    padding: 20px 15px;
    box-sizing: border-box;
  }

}

/* DESKTOP: keep side-by-side alignment */
@media (min-width: 769px) {

  .tm-media {
    display: flex;
    align-items: stretch;
  }

  .tm-media-img {
    width: 400px;
    flex-shrink: 0;
  }

  .tm-box-5 {
    flex: 1;
  }

}


/* ===== V5 REFINED FIXES ===== */

/* 1) Better spacing mobile (logo, menu, slider) */
@media (max-width: 768px) {
  header {
    margin-bottom: 20px;
  }

  nav.navbar {
    margin-bottom: 20px;
  }

  #tm-section-1 {
    margin-top: 15px;
  }
}

/* 3) Responsive headings without line break */
.tm-box-3 h2 {
  font-weight: bold;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  white-space: nowrap;
}


/* ===== CONSISTENT SECTION SPACING ===== */

/* Reset uneven spacing */
.tm-section-1,
.tm-section-2,
.tm-section-3,
.tm-section-4,
.tm-section-5,
.tm-section-6,
.tm-section-7 {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Remove conflicting spacing */
.tm-section-mb {
  margin-bottom: 0 !important;
}

/* Fine tuning for mobile */
@media (max-width: 768px) {
  .tm-section-1,
  .tm-section-2,
  .tm-section-3,
  .tm-section-4,
  .tm-section-5,
  .tm-section-6,
  .tm-section-7 {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}


/* 1) Remove gap in Über mich (tm-section-5) */
#tm-section-5 .tm-media {
  display: flex;
  align-items: stretch;
  gap: 0 !important;
}

#tm-section-5 .tm-media-img {
  margin-right: 0 !important;
}

#tm-section-5 .tm-box-5 {
  margin-left: 0 !important;
  padding-left: 20px;
}

/* 2) Reduce spacing around tm-section-4 */
#tm-section-4 {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

@media (max-width: 768px) {
  #tm-section-4 {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
  }
}


/* ===== ALIGN WIDTHS CONSISTENTLY ===== */

/* make all main sections same width as tm-section-4 */
.tm-section-3,
.tm-section-5,
.tm-section-6 {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* align inner content */
.tm-section-3 .col-lg-12,
.tm-section-5 .col-lg-12,
.tm-section-6 .col-lg-12 {
  padding-left: 0;
  padding-right: 0;
}

/* ===== FURTHER REDUCE tm-section-4 SPACING ===== */
#tm-section-4 {
  margin-top: 25px !important;
  margin-bottom: 25px !important;
}

@media (max-width: 768px) {
  #tm-section-4 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}
