:root {
  --bg-dark: #222222;
  --bg-medium: #333333;
  --bg-light: #444444;
  --text-light: #bbbbbb;
  --text-white: #ffffff;
  --accent: #008800;
}

/* Roboto Regular 400 */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
}

/* Roboto Slab Regular 400 */
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-slab/RobotoSlab-Regular.ttf') format('truetype');
}

.sh-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.sh-talk {
  color: var(--text-white);
}

body {
  font-family: 'Liberation Sans', 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Liberation Serif', 'Roboto Slab', serif;
  color: var(--text-white);
}

.section-title {
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.navbar {
  background-color: var(--bg-dark);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.7);

}

.navbar-brand {
  color: var(--accent) !important;
  font-family: 'Liberation Serif', 'Roboto Slab', serif;
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-nav.center-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  .navbar-nav.center-menu {
    position: static;
    transform: none;
  }
  
  .navbar-nav.language-menu {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .col-md-6 {
    width: 100%;
  }
}

.navbar-nav.language-menu {
  margin-left: auto;
}

.nav-link {
  color: var(--text-light) !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

.language-switch {
  cursor: pointer;
}

.language-switch.active {
  color: var(--accent) !important;
  font-weight: bold;
}

.dropdown-menu {
  background-color: var(--bg-medium);
  border: 1px solid var(--accent);
}

.dropdown-item {
  color: var(--text-light);
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--bg-dark);
  color: var(--accent);
}

.flag-icon {
  width: 24px;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}

.hero {
  background-color: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-img {
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
}

.logo-img-sm {
  max-width: 35px;
  max-height: 35px;
  width: auto;
  height: auto;
}

.hero-slogan {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(odd) {
  background-color: var(--bg-medium);
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.section-divider .shape-fill {
  fill: var(--bg-medium);
}

.section:nth-child(odd) .section-divider .shape-fill {
  fill: var(--bg-light);
}

.section:nth-child(even) .section-divider .shape-fill {
  fill: var(--bg-medium);
}

/* Specific divider for training to interests section */
#training .section-divider {
  transform: rotate(0deg);
}

/* Specific divider for interests to contact section */
#interests .section-divider {
  transform: rotate(180deg);
}

/* Specific divider for contact to impressum section */
#contact .section-divider {
  transform: rotate(0deg);
}

#contact {
  padding-bottom: 8rem; /* More space below contact section */
}

.impressum-section {
  padding-top: 5rem;
}

.skill-item {
  margin-bottom: 1rem;
  padding: 3rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

@media (hover: hover) {
  .skill-item:hover {
    background-color: rgba(0, 136, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent);
  }
}

.skill-title {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.skill-title i {
  color: var(--accent);
  font-size: 3rem;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-description {
  color: var(--text-light);
  text-align: justify;
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.skill-description p {
  margin-bottom: 1.5rem;
}

.contact-section {
  background-color: var(--bg-medium);
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  text-align: center;
}

.contact-text {
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  background-color: var(--accent);
  color: var(--text-white);
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  max-width: 200px;
  min-width: 200px;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 0 auto;
}

.contact-btn:hover {
  background-color: #006600;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
  color: var(--text-white);
}

footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
}

footer a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #000000;
  color: var(--accent);
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
}

#back-to-top:hover {
  background-color: #111111;
  color: #00aa00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo-img {
    max-width: 200px;
    max-height: 200px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .skill-item {
    padding: 2rem;
  }
  
  .impressum-section {
    padding-top: 5rem;
  }
}
