/*-------------------------
	Simple reset
--------------------------*/


* {
  margin: 0;
  padding: 0;
}

/*fonts*/
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  src: local('Roboto'),
    local('Roboto-Regular'),
    url(/font/roboto/Roboto-Regular.eot),
    url(/font/roboto/Roboto-Regular.woff2),
    url(/font/roboto/Roboto-Regular.woff),
    url(/font/roboto/Roboto-Regular.ttf);
  font-display: swap;
}

/* Required height of parents of the Full Page Intro and Intro itself */
html,
body,
header,
.view {
  height: 100%;
}

/* Navbar animation */
.navbar {
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-transition: all 0.6s ease-out;
  -moz-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
  -ms-transition: all 0.6s ease-out;
  transition: all 0.6s ease-out;
}

.navbar.scrolled {
  background: rgb(68, 68, 68) !important;
  /* IE */
  background: rgba(0, 0, 0, 0.78) !important;
  /* NON-IE */
}

.top-nav-collapse {
  background-color: #1C2331;
}

/* responsive settings */
@media (max-width: 559px) {

  html,
  body,
  header,
  .view {
    height: 1000px;
  }
}

@media (min-width: 560px) and (max-width: 740px) {

  html,
  body,
  header,
  .view {
    height: 700px;
  }
}

@media (min-width: 800px) and (max-width: 850px) {

  html,
  body,
  header,
  .view {
    height: 600px;
  }
}

@media (min-width: 800px) and (max-width: 850px) {
  .navbar:not(.top-nav-collapse) {
    background: #1C2331 !important;
  }
}

/* Adding color to the Navbar on mobile */
@media only screen and (max-width: 768px) {
  .navbar {
    background-color: #1C2331;
  }
}

/* Footer color for sake of consistency with Navbar */
.page-footer {
  background-color: #1C2331;
  color: #ffffff !important;
}

/* Footer Titel/Überschriften */
.page-footer h5 {
  color: #9acd32 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #9acd32;
  padding-bottom: 0.5rem;
}

/* Footer Inhalte/Listen */
.page-footer .list-unstyled li {
  color: #e3f2fd !important;
  font-weight: 400;
  line-height: 1.8;
}

.page-footer .list-unstyled a {
  color: #e3f2fd !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-footer .list-unstyled a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* Footer Social Media Links */
.page-footer table a {
  color: #e3f2fd !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-footer table a:hover {
  color: #9acd32 !important;
  transform: scale(1.1);
}

/* Footer Impressum/Datenschutz Links - besondere Hervorhebung */
.page-footer .legal-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

.page-footer .legal-links a {
  color: #ffd54f !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.page-footer .legal-links a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(255, 213, 79, 0.5);
}

/* Icons im Footer */
.page-footer .fas, .page-footer .fab {
  color: #e3f2fd !important;
  transition: all 0.3s ease;
}

.page-footer .fas:hover, .page-footer .fab:hover {
  color: #9acd32 !important;
  transform: scale(1.1);
}

#time-counter {
  font-size: 5rem;
}

/* spacing */
.ml-6 {
  margin-left: 6rem !important;
}

.mr-6 {
  margin-right: 6rem !important;
}

.mt-6 {
  margin-top: 6rem !important;
}

.mb-6 {
  margin-bottom: 6rem !important;
}

.mx-6 {
  margin-left: 6rem !important;
  margin-right: 6rem !important;
}

.my-6 {
  margin-top: 6rem !important;
  margin-bottom: 6rem !important;
}

/* Prevent main sections with my-6 from creating extra scroll space */
main.my-6 {
  margin-bottom: 0 !important;
  padding-bottom: 6rem;
}

.backpic {
  background-image: url(/img/nightshade31920x1200.webp);
}

/* Navigationbar picture */
#foto {
  height: 21%;
  width: 21%;
  border-radius: 5px;
}

/* Button Rounded */
.btn-rounded {
  border-radius: 10px !important;
}

/* digital clock */
#clock {
  position: relative;
  top: 1%;
  right: 1%;
  font-family: 'Roboto';
  font-size: 1.5em;
  color: #ffffff;
  letter-spacing: 7px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* coloring on mouseover - konsistent mit Navbar und Footer */
.btn-primary {
  background-color: #9acd32 !important;
  border-color: #9acd32 !important;
  color: #1C2331 !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #8bc34a !important;
  border-color: #8bc34a !important;
  color: #1C2331 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(154, 205, 50, 0.3);
}

.btn-primary:focus {
  background-color: #8bc34a !important;
  border-color: #8bc34a !important;
  color: #1C2331 !important;
  box-shadow: 0 0 0 0.2rem rgba(154, 205, 50, 0.25) !important;
}

.btn-primary:active {
  background-color: #7cb342 !important;
  border-color: #7cb342 !important;
  color: #1C2331 !important;
}

/* Navbar improvements */
.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link {
  color: #e3f2fd !important;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Navbar Buttons - konsistent mit Footer-Design */
.btn-outline-white {
  color: #e3f2fd !important;
  border-color: #e3f2fd !important;
  background-color: transparent !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  color: #1C2331 !important;
  background-color: #9acd32 !important;
  border-color: #9acd32 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(154, 205, 50, 0.3);
}

.btn-outline-white:focus {
  color: #1C2331 !important;
  background-color: #9acd32 !important;
  border-color: #9acd32 !important;
  box-shadow: 0 0 0 0.2rem rgba(154, 205, 50, 0.25) !important;
}

.btn-outline-white:active {
  color: #1C2331 !important;
  background-color: #9acd32 !important;
  border-color: #9acd32 !important;
}

/* Language Flag Styling */
#flag {
  border-radius: 3px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

#flag:hover {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(154, 205, 50, 0.4);
}

/* Navbar Toggle Button */
.navbar-toggler {
  border-color: #e3f2fd !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(227, 242, 253, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e3f2fd' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Footer left */
#footer-left {
  position: relative;
}
/* Freelancermap size */
#freelancermap {
  height: 30px;
  width: 30px;
}

/* Youracclaim size */
#youracclaim {
  height: 30px;
  width: 30px;
}

/* Flagsizes} */
#flag {
  height: 10%;
  width: 10%;
}

/* Certificate Overlay */
.certificate-overlay {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.certificate-overlay-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  flex-direction: column;
}

.certificate-overlay img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  background: white;
  padding: 10px;
}

.certificate-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.certificate-close:hover {
  background-color: #9acd32;
  color: #1C2331;
  transform: scale(1.1);
}

.certificate-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 25px;
  text-align: center;
  max-width: 80%;
}

.certificate-info h4 {
  color: #9acd32;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.certificate-info p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Hover-Effekt für Zertifikatskarten */
.card-img-top {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

