/* --------------------------------------------------
   1) Base Styles (apply to all screen sizes)
-------------------------------------------------- */

/* --- Basic reset and structure --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
    overflow-y: auto;
  }
  
  a {
    text-decoration: none;
  }
  
  /* --- Header & Nav --- */
  header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .header-content {
    /* For desktop, overridden in media query if needed */
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo {
    height: 50px; /* Overridden in mobile if needed */
  }
  
  .site-title {
    font-weight: 600;
    color: #0021A7;
    /* font-size adjusted in media queries */
  }
  
  nav {
    display: flex;
    align-items: center;
  }

  /* Social nav with Instagram icon and button list */
  .social-nav {
    display: flex;
    align-items: center;
    gap: 15px; /* space between icon and the button list */
  }

  .social-nav img {
    width: 24px;
    height: 24px;
  }
  
  /* 
     For the main navigation, assume we wrap each nav item in <li>. 
     If you keep separate <ul> blocks, adapt accordingly. 
  */
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* This gives spacing between list items */
    padding: 0;
    margin: 0;
  }
  
  nav ul li {
    background-color: #0021A7;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer; /* So the whole li looks clickable */
  }
  
  nav ul li:hover {
    background-color: #0055A6;
    text-decoration: none;
  }
  
  /* 
     If you have <a> inside <li>, make sure the link inherits color 
     instead of forcing white-on-white or black-on-white. 
  */
  nav ul li a {
    color: inherit;
    text-decoration: none;
  }
  
  /* 
     If you have something like <span id="scroll-to-about">Über uns</span> 
     inside an li, it inherits white text. 
  */
  nav ul li span {
    color: inherit;
  }
  
  /* --- Title/CTA Section --- */
  .title-cta {
    color: black;
    width: 100%;
    display: flex;
    gap: 15px;
    padding: 30px 0 20px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  /* Remove extra margins from headings in .title-cta */
  .title-cta h1,
  .title-cta h2 {
    margin-block-start: 0;
    margin-block-end: 0;
  }
  
  /* 
     We'll fine-tune the subheader styling in media queries, 
     matching your original “looks different than before” feedback 
  */
  
  /* --- Job Listing Container --- */
  .job-listing {
    background-color: #f0f0f0;
    margin: 20px auto 0;
    max-width: 1200px;
    /* padding tweaked in media queries */
  }
  
  /* --- Job Cards --- */
  .job-card {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 20px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
  }
  
  .job-card:hover {
    background-color: #fafafa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .job-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .job-info h2 {
    margin: 5px 0;
    color: black;
    text-decoration: none;
  }
  
  .job-info h3 {
    margin: 5px 0;
    font-weight: 500;
    color: black;
    text-decoration: none;
  }
  
  .job-header {
    display: flex;
    justify-content: space-between;
  }
  
  .posting-date {
    display: flex;
    gap: 20px;
    font-size: small;
    color: #525252;
    white-space: nowrap;
    margin-block-start: 0;
    margin-block-end: 0;
  }
  
  /* --- Tags --- */
  .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 5px;
    column-gap: 10px;
  }
  
  .tags span {
    color: #0021A7;
    background-color: #f1f1f1;
    font-size: small;
    line-height: 15px;
    padding: 5px 10px;
    border-radius: 20px;
  }
  
  /* --- About Us Section --- */
  .about-us {
    max-width: 1200px;
    margin: 20px auto 0;
    /* padding changed in media queries if needed */
  }
  
  .about {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 20px;
    padding: 15px 50px; /* overwritten for mobile if needed */
  }
  
  .about-passage,
  .about-people {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .about-text {
    font-size: small;
    width: 60%;
    text-align: justify;
  }
  
  .about-people {
    margin-block-start: 1em;
    margin-block-end: 1em;
    width: 40%;
    align-items: center;
    gap: 10px;
  }
  
  .about-foto {
    width: 120px;
    height: auto;
    border-radius: 20px;
  }
  
  .foto-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .about-name,
  .about-role {
    font-size: small;
    margin-block-end: 0;
    margin-block-start: 0;
  }
  
  .about-icon {
    width: 16px;
    height: auto;
  }
  
  .sm-link {
    line-height: 14px;
  }
  
  /* --- Footer --- */
  .footer {
    padding: 15px 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  /* 
     If you want different link color in the footer, 
     override the default nav/a color here:
  */
  .footer nav a {
    color: black; /* or #0021A7, whichever you prefer */
    text-decoration: none;
    font-size: medium;
  }
  
  /* --------------------------------------------------
     2) Desktop Styles (≥ 769px)
  -------------------------------------------------- */
  @media only screen and (min-width: 769px) {
    .header-content {
      padding: 0 50px;
    }
  
    .site-title {
      font-size: 1.2rem;
    }
  
    .job-listing {
      padding: 0 50px;
    }
  
    .job-card {
      align-items: center; /* vertically center on desktop */
    }
  
    /* Subheader (H2) style matching original desktop style */
    .title-cta h2 {
      font-size: 1.2em;
      font-weight: normal;
      color: #666666;
      margin-top: 10px;
      margin-bottom: 0;
      padding: 0 50px; /* matches your original code */
    }
  }
  
  /* --------------------------------------------------
     3) Mobile Styles (≤ 768px)
  -------------------------------------------------- */
  @media only screen and (max-width: 768px) {
    .header-content {
      padding: 0 20px;
    }
  
    .logo {
      height: 40px;
    }
  
    .site-title {
      font-size: medium;
    }
  
    nav ul {
      gap: 15px;
      margin-left: 0; /* remove extra margin if desired on mobile */
    }
  
    nav ul li {
      font-size: smaller;
      padding: 10px; /* Tighter padding on mobile */
    }

    .social-nav {
      gap: 12px; /* keep compact spacing on mobile */
    }
  
    .job-listing {
      padding: 0 20px;
    }
  
    .job-card {
      align-items: flex-start;
    }
  
    /* Hide logos if desired on mobile */
    .company-logo {
      display: none;
    }
  
    /* Smaller tags/date text on mobile */
    .tags span {
      font-size: x-small;
      line-height: 10px;
    }
  
    .posting-date {
      display: none;
    }
  
    .about {
      padding: 15px;
    }
  
    .about-passage {
      flex-direction: column;
    }
  
    .about-text,
    .about-people {
      width: 100%;
    }
  
    .footer {
      padding: 10px 20px 20px;
      flex-direction: column;
    }
  
    /* Subheader (H2) style matching original mobile style */
    .title-cta h2 {
      font-size: 0.9em;
      font-weight: normal;
      color: #666666;
      margin-top: 8px;
      margin-bottom: 0;
      padding: 0 15px;
    }
  }
  

  /* CTA card styling */
.cta-card {
  border: 2px solid #0021A7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row; /* or column if you prefer */
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.instagram-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.cta-text p {
  margin: 0;
  color: #0021A7;
  font-weight: 500;
  text-align: center;
}
