/**
 * tpl_schule – bereiche.css
 * 5 Teilbereich-Blöcke
 */

.tpl-bereiche {
  background: var(--gray-light);
  padding: 52px 0;
}

/* Überschrift "Abteilungen" */
.tpl-bereiche .tpl-section-header {
  margin-bottom: 28px;
}

.tpl-bereiche .tpl-section-title {
  color: var(--blue-secondary);
}

.tpl-bereiche__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* Jeder Block – mod_custom gibt direkt Inhalt aus */
.tpl-bereich {
  background: var(--blue-primary);
  border-radius: var(--radius);
  color: var(--white);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.tpl-bereich:hover {
  background: var(--blue-secondary);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,122,184,0.22);
}

/* Typografie innerhalb Bereich-Modul */
/* Überschrift: feste Mindesthöhe für 2 Zeilen → alle gleich hoch */
.tpl-bereich h3,
.tpl-bereich h2,
.tpl-bereich .bereich-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.25;
  min-height: 2.5em; /* Platz für 2 Zeilen = gleiche Höhe */
  display: flex;
  align-items: flex-start;
}

.tpl-bereich p {
  font-size: 15px;
  color: rgba(255,255,255,0.87);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Links in den Bereich-Blöcken: weiß + Unterstrich */
.tpl-bereich a {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  text-transform: none;
  margin: 0;
  padding: 0;
  display: inline;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.tpl-bereich a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

.tpl-bereich .bereich-icon {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.16);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .tpl-bereiche__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .tpl-bereiche__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .tpl-bereiche__grid { grid-template-columns: 1fr; }
}
