/* css/index.css */

.main-bedrijfsoverzicht {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background-color: #fff;
}

.top-bedrijven h2 {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  color: #222;
}

.logo-grid {
	list-style: none;
    padding-left: 0;
    margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.bedrijf-box {
  text-align: center;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.bedrijf-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #eef6ff;
}

.bedrijf-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
}

.bedrijf-naam {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  word-wrap: break-word;
}
.intro-container {
  position: relative;
  margin-bottom: 20px;
}

.intro-tekst {
  font-size: 1.1em;
  color: #222;
  background-color: #fdfdfd;
  border-left: 5px solid #007acc;
  padding: 15px 20px;
  margin-bottom: 0;
  line-height: 1.7;
  max-height: 8.5em;
  overflow: hidden;
  transition: max-height 0.5s ease;
  text-align: left;
  position: relative;
}

.intro-tekst.expanded {
  max-height: 100em;
}

.fade-out {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to top, #fdfdfd, rgba(253, 253, 253, 0));
  pointer-events: none;
}

.lees-meer-wrapper {
  padding: 0 20px 15px 25px;
  background-color: #fdfdfd;
}

.ellipsis {
  font-weight: bold;
  color: #444;
}

.lees-meer-knop {
  background: none;
  border: none;
  color: #007acc;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95em;
  padding: 0;
}

.intro-tekst.expanded + .lees-meer-wrapper .ellipsis {
  display: none;
}

.intro-tekst.expanded + .lees-meer-wrapper .lees-meer-knop::before {
  content: none;
}

@media (max-width: 768px) {
  main.main-bedrijfsoverzicht {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  .top-bedrijven {
    width: 100% !important;
    padding: 0 10px !important;
  }

  .intro-container {
    padding: 0 !important;
    margin-bottom: 20px;
  }

  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  .intro-tekst {
    font-size: 0.8em;
  }
}

