/* ========== BASE STYLES ========== */
body {
  font-family: 'Barlow', sans-serif;
  background-color: #fff;
  color: #333333;
  padding-top: 240px; /* Space for fixed header */
}

html {
  scroll-behavior: smooth;
}

.about-section, 
.philosophy-section, 
.zusammenarbeit-section, 
.kontakt-section {
  scroll-margin-top: 300px; 
}

/* light 300 */
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/barlow-lightitalic-webfont.woff2') format('woff2');
  font-display: swap;
}

/* Regular 400 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/barlow-regular-webfont.woff2') format('woff2');
  font-display: swap;
}

/* Medium 500 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/barlow-medium-webfont.woff2') format('woff2');
  font-display: swap;
}

/* Semibold 600 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/barlow-semibold-webfont.woff2') format('woff2');
  font-display: swap;
}

/* Bold 700 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/barlow-bold-webfont.woff2') format('woff2');
  font-display: swap;
}

/* ========== HEADER STYLES ========== */
#main-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0; 
  z-index: 900; 
}

.top-strip {
  background-color: #045644;
  height: 15px;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  top: 30px;
  z-index: 950;
}

@media (min-width: 768px) {
.logo {
  width: 436px;
  height: auto;
  margin-top: -25px;
  display: block;
  z-index: 950;
}
}

@media (max-width: 767px) {
  .logo {
    width: 290px; /* smaller logo for mobile */
    height: auto;
    margin-top: -20px; /* optional, adjust if needed */
    display: block;
    z-index: 950;
  }
}

.header-background-box {
  background-color: #fff;
  width: 100%;
  height: 250px;
  position: absolute;
  top: -30px;
  left: 0;
  z-index: 800;
  box-shadow: 0px 4px 10px rgba(51, 51, 51, 0.025);
}

/* ========== NAVIGATION ========== */
#main-nav {
  position: fixed;
  top: 175px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 60px;
  background-color: #fff;
  padding: 10px 0;
  border-radius: 4px 4px 25px 25px;
  box-shadow: 0px 4px 10px rgba(51, 51, 51, 0.25);
  z-index: 1000;
}

.nav-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-item {
  padding: 10px;
}

.nav-link {
  text-decoration: none;
  color: #045644;
  font-weight: 500;
  font-size: 20px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:active {
  color: #333;
}

/* ========== HERO SECTION ========== */
.hero-img {
  height: 590px;
  width: 100%;
  background-image: url('img/rechtanwalt-stefan-brettschneider.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 4px 4px 50px 50px;
  position: relative;
	margin-top: -40px;
}

.slogan-box {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 66.66%;
  height: 60px;
  background-color: #045644;
  border-radius: 4px 4px 25px 25px;
  box-shadow: 0 4px 4px rgba(51, 51, 51, 0.25);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  overflow: hidden;
  padding: 0 30px;
  display: flex;
  align-items: center;
}

.scrolling-text-wrapper {
  width: 100%;
  overflow: hidden;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ========== MAIN CONTENT ========== */
.main-content {
  position: relative;
  z-index: 1;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  margin-top: 80px;
  text-align: center;
  max-width: 100%;
  padding: 0;
}

.about-section h1 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #045644;
  margin-bottom: 30px;
}

.about-text-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.about-section p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 26px;
  text-align: left;
  margin: 0 auto;
}

.bold-term {
  font-weight: 600; /* Using semibold (600) as requested */
}

/* ========== PHILOSOPHY SECTION ========== */
.philosophy-section {
  margin-top: 100px; /* Gap after previous paragraph */
}

.philosophy-photo {
  height: 475px;
  overflow: hidden;
  border-radius: 4px 4px 25px 25px; /* Top corners 4px, bottom 25px */
}

.philosophy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-text h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #045644;
  text-align: left;
  margin-bottom: 30px; /* Gap after headline */
}

.philosophy-text p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 26px;
  text-align: left;
  margin: 0;
}

/* ========== ZUSAMMENARBEIT SECTION ========== */
.zusammenarbeit-section {
  margin-top: 100px; /* 100px gap after previous section */
}

.zusammenarbeit-text h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #045644;
  text-align: left;
  margin-bottom: 30px; /* 30px gap after headline */
}

.zusammenarbeit-text p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 26px;
  text-align: left;
  margin-bottom: 20px;
}

.zusammenarbeit-text .hinweis {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; /* light */
  font-style: italic;
  color: #333333;
}

.zusammenarbeit-text .hinweis strong {
  font-weight: 600; /* semibold */
  color: #045644;
}

.zusammenarbeit-photo {
  height: 475px;
  overflow: hidden;
  border-radius: 4px 4px 25px 25px; /* Matching previous section */
}

.zusammenarbeit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Impressum SECTION ========== */
.impressum-section {
  max-width: 100%;
  padding: 0;
}

.impressum-section h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #045644;
  margin-bottom: 30px;
  text-align: left;
}

.impressum-text-container {
  max-width: 1200px;
}

.impressum-section p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 26px;
  text-align: left;
  margin: 0 auto;
}

.impressum-section p strong {
  color: #045644;
  font-weight: 600;
}

.impressum-section p a {
  color: #045644;
  text-decoration: underline; 
}

.bold-term {
  font-weight: 600; /* Using semibold (600) as requested */
}

/* ========== Datenschutz SECTION ========== */
.datenschutz-section {
  max-width: 100%;
  padding: 0;
}

.datenschutz-section h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #045644;
  margin-bottom: 30px;
  text-align: left;
}

.datenschutz-text-container {
  max-width: 1200px;
}

.datenschutz-section p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 26px;
  text-align: left;
  margin: 0 auto;
}

.datenschutz-section p strong {
  color: #045644;
  font-weight: 600;
}

.datenschutz-section p a {
  color: #045644;
  text-decoration: underline; 
}

.bold-term {
  font-weight: 600; /* Using semibold (600) as requested */
}

/* ========== FOOTER SECTION ========== */
.footer {
  margin-top: 100px; /* 100px gap after previous section */
  background-color: #f4f4f4;
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 115px;
  height: 85px;
  object-fit: contain;
  margin-right: auto;
  margin-left: 0; /* Ensure no left margin */
}

.kontakt-info h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #045644;
  line-height: 23px;
  margin-bottom: 5px;
}

.kontakt-info p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  line-height: 23px;
  margin: 0;
}

.kontakt-info p strong {
  color: #045644;
  font-weight: 600;
}

.kontakt-info p a {
  color: #333333;
  text-decoration: none; 
}

.kontakt-info p a:hover {
 color: #045644;
  text-decoration: underline; 
}	

.back-to-top {
  background-color: #ffffff;
  border: none;
  border-radius: 2px 2px 15px 15px;
  box-shadow: 0 4px 10px rgba(51, 51, 51, 0.25);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto; 
  text-decoration: none;	
}

.back-to-top:hover {
  background-color: #045644;
}

.back-to-top:hover span {
  color: #ffffff;
}

.back-to-top:hover .arrow-icon {
  filter: brightness(0) invert(1); /* Turns icon white */
}

.arrow-icon {
  width: 31px;
  height: 18px;
  margin-right: 12px;
}

.back-to-top span {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #045644;
  transition: color 0.3s ease;
}

.social-icons {
  display: flex;
  justify-content: flex-end;;
  margin-top: 15px;
  width: 80px;/* 30px icons + 20px gap */
  margin-left: auto;
}

.social-icons img {
  width: 30px;
  height: 30px;
  margin-left: 15px;
}

/* ========== FOOTER MENU ========== */
.footer-menu-container {
  background-color: #045644;
  height: 45px;
  width: 100%;
  display: flex;
  align-items: center;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px; /* Space between menu items */
}

.footer-menu li {
  display: inline-block;
}

.footer-menu a {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 0.8;
}

.copyright-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  text-align: right;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .footer-menu {
    gap: 15px;
  }
  
  .footer-menu a {
    font-size: 14px;
  }
  
  .copyright-text {
    font-size: 12px;
    text-align: left;
    margin-top: 10px;
  }
  
  .footer-menu-container {
    height: auto;
    padding: 15px 0;
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .footer {
    height: auto;
    padding: 30px 0;
  }
  
  .footer-content > div {
    margin-bottom: 20px;
  }
  
  .back-to-top {
    margin-bottom: 20px;
  }
}