/* ==========================================================================
   IT Professionals AG — Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Typography ---------- */
h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #3a5ba0;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a5ba0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a5ba0;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #444;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  height: 56px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  background: #3a5ba0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 18px;
  font-weight: 300;
  color: #3a5ba0;
  letter-spacing: 0.3px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: inline-block;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #3a5ba0;
}

.nav-link.active {
  color: #3a5ba0;
  font-weight: 600;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 4px 4px;
  z-index: 999;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: #f4f7fb;
  color: #3a5ba0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.lang-switcher a {
  display: flex;
  align-items: center;
}

.lang-flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lang-flag:hover,
.lang-flag.active {
  opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #3a5ba0;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero Banner ---------- */
.hero {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(58, 91, 160, 0.25) 0%,
    rgba(58, 91, 160, 0.05) 30%,
    rgba(58, 91, 160, 0.05) 70%,
    rgba(58, 91, 160, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ---------- Content Area ---------- */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

.content-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

/* ---------- Two-Column Layout (for Permanent Recruitment, etc.) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ---------- Approach / Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 60px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 48px;
  color: #5a7fbf;
  margin-bottom: 16px;
  display: block;
}

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Engagements List (Permanent Recruitment) ---------- */
.engagements-list {
  margin-top: 10px;
}

.engagements-list h3 {
  color: #3a5ba0;
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.engagement-item {
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #444;
  border-left: 3px solid transparent;
  transition: background 0.2s;
}

.engagement-item:nth-child(odd) {
  background: #f4f7fb;
}

.engagement-item:nth-child(even) {
  background: #fff;
}

/* ---------- Advantages / Bullet List ---------- */
.advantages-list {
  margin-top: 15px;
}

.advantages-list h3 {
  color: #3a5ba0;
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.advantages-list ul {
  padding-left: 0;
}

.advantages-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.advantages-list li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #3a5ba0;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #2c4e8a;
  color: #d0ddf0;
  padding: 45px 30px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-address {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #c8d8f0;
}

.footer-address a {
  color: #c8d8f0;
  transition: color 0.2s;
}

.footer-address a:hover {
  color: #fff;
}

/* ---------- Legal Bar ---------- */
.legal-bar {
  background: #333;
  padding: 12px 30px;
}

.legal-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-bar a {
  color: #aaa;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.legal-bar a:hover {
  color: #fff;
}

.legal-bar .separator {
  color: #666;
  font-size: 0.82rem;
  user-select: none;
}

/* ---------- Legal Pages (Privacy, Impressum, etc.) ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.legal-content h3 {
  color: #3a5ba0;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #444;
  list-style: disc;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 15px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 20px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .lang-switcher {
    margin-left: 0;
    padding: 12px 20px;
  }

  .mobile-toggle {
    display: block;
  }

  h1 {
    font-size: 1.5rem;
  }

  .content,
  .content-wide {
    padding: 30px 20px 40px;
  }
}
