/* ========= Scroll-Offset für Anker-Links ========= */
#hardware,
#cloud,
#netzwerke,
#support,
#overview,
#prozess,
#cases,
#usp,
#cta {
  scroll-margin-top: 80px; /* Höhe der fixen Navbar */
}

/* ========= Navigation Sichtbarkeit ========= */
/* Aktive Links auf transparentem Hintergrund (Hero) */
.navbar a.active {
  color: var(--white) !important;
  font-weight: 600;
  position: relative;
}

.navbar a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.navbar a:hover {
  color: var(--white) !important;
  opacity: 0.85;
}

/* Aktive Links auf weißem Hintergrund (nach Scroll) */
.navbar.scrolled a.active {
  color: var(--black) !important;
  font-weight: 600;
}

.navbar.scrolled a.active::after {
  background: var(--brand);
}

.navbar.scrolled a:hover {
  color: var(--brand) !important;
  opacity: 0.85;
}

/* ========= IT Hero (kurz) ========= */
.it-hero{
  background: var(--it); /* #0B3D91 aus :root */
  color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.it-hero .hero-inner{
  text-align: center;
  padding: 64px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.it-hero h1{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.it-hero p{
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  opacity: .95;
  max-width: 720px;
  margin: 0 auto 28px;
}
.it-hero .hero-buttons{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Hero Button - Indigo gefüllt */
.it-hero .btn-contact {
  background: var(--brand);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.it-hero .btn-contact:hover {
  background: #5a4ce0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* ========= Überblick / Mini-Navigation ========= */
.service-overview{
  background: var(--white);
  padding: 88px 20px;
}
.overview-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.overview-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  color: var(--black);
}
.overview-card:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.ov-icon{
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--it); /* IT-Blau als Iconfarbe */
}
.ov-icon svg{ width: 100%; height: 100%; }
.overview-card h3{
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}
.overview-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}
.overview-card:hover .ov-icon{ color: var(--brand); } /* Hover → Indigo */

@media (max-width: 1024px){
  .overview-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .overview-grid{ grid-template-columns: 1fr; }
}

/* ========= Overlay Close (X) – falls global nicht vorhanden ========= */
.overlay-close{
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  font-size: 2rem; color: var(--white);
  cursor: pointer;
  z-index: 1001;
  transition: transform .2s ease;
}
.overlay-close:hover{ transform: scale(1.12); }

/* ========= Service-Abschnitte (Haupt-IT-Dienstleistungen) ========= */
.services-section {
  padding: 100px 20px;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  text-align: center;
  padding: 40px 20px;
  background: #fafafa;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 48px;
  color: var(--it);
  margin-bottom: 24px;
  transition: color 0.3s ease;
  display: block;
}

.service-item:hover .service-icon {
  color: #315fc0; /* helleres Blau */
}

.service-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--it);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-item p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 24px;
}

.service-item .btn {
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .service-item {
    padding: 32px 20px;
  }
  
  .service-icon {
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  .service-item h3 {
    font-size: 1.3rem;
  }
}

/* Outline IT Button */
.btn-outline-it {
  background: transparent;
  border: 2px solid var(--it);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-it:hover {
  background: var(--it);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========= So arbeiten wir (Prozess) ========= */
.process {
  background: #F9FAFB;
  padding: 88px 20px;
  text-align: center;
}

.process h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}

.process-subline {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, #e5e7eb, var(--brand), #e5e7eb);
  z-index: 1;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.process-icon {
  font-size: 2rem;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 50%;
  padding: 10px;
  width: 50px;
  height: 50px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.process-icon svg {
  width: 24px;
  height: 24px;
}

.process-step:hover .process-icon {
  background: var(--brand);
  color: var(--white);
  transform: scale(1.1);
}

.process-step h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Tablet: 2 pro Reihe + 1 unten */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
  }
  
  .process-step:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .process-steps::before {
    display: none;
  }
}

/* Mobile: untereinander */
@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
  }
  
  .process-step:nth-child(5) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  
  .process-step {
    padding: 1rem;
  }
}

/* ========= Kundenbeispiele ========= */
.cases{
  background: var(--white);
  padding: 88px 20px;
  text-align: center;
}

.cases h2{
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--it);
  margin-bottom: 16px;
}

.cases-subline{
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.cases-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-card{
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.case-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.case-icon{
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-icon svg{
  width: 100%;
  height: 100%;
}

.case-card h3{
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}

.case-card p{
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.4;
}

/* Tablet: 2 Spalten */
@media (max-width: 1024px){
  .cases-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
  }
  
  .case-card{
    padding: 24px 18px;
  }
}

/* Mobile: 1 Spalte */
@media (max-width: 768px){
  .cases-grid{
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }
  
  .case-card{
    padding: 24px 20px;
  }
}

/* ========= Warum AZH (USP) ========= */
.usp{
  background: #F9FAFB;
  padding: 88px 20px;
  text-align: center;
}

.usp h2{
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}

.usp-subline{
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.usp-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.usp-item{
  text-align: center;
  max-width: 320px;
  flex: 1;
  min-width: 280px;
}

.usp-icon{
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.usp-icon svg{
  width: 100%;
  height: 100%;
}

.usp-item:hover .usp-icon{
  transform: scale(1.1);
}

.usp-item h3{
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}

.usp-item p{
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
}

@media (max-width: 768px){
  .usp-grid{
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  .usp-item{
    max-width: 400px;
  }
}

/* ========= CTA ========= */
.cta {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.cta .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons a {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-buttons .btn-cta-contact {
  background: #FFFFFF;
  color: #4338CA;
  border: 2px solid #FFFFFF;
  font-weight: 600;
}

.cta-buttons .btn-cta-contact:hover {
  background: #4338CA;
  color: #FFFFFF;
  border: 2px solid #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .cta {
    padding: 80px 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .cta-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
